VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkOpenGLContextDevice3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLContextDevice3D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
24 #ifndef __vtkOpenGLContextDevice3D_h
25 #define __vtkOpenGLContextDevice3D_h
26 
27 #include "vtkRenderingContext2DModule.h" // For export macro
28 #include "vtkContextDevice3D.h"
29 #include "vtkNew.h" // For ivars.
30 
31 class vtkBrush;
32 class vtkPen;
33 
35 {
36 public:
38  void PrintSelf(ostream &os, vtkIndent indent);
39 
40  static vtkOpenGLContextDevice3D * New();
41 
43  void DrawPoly(const float *verts, int n, const unsigned char *colors, int nc);
44 
46 
47  void DrawPoints(const float *verts, int n,
48  const unsigned char *colors, int nc);
50 
52 
53  void DrawTriangleMesh(const float *mesh, int n,
54  const unsigned char *colors, int nc);
56 
61  void ApplyPen(vtkPen *pen);
62 
67  void ApplyBrush(vtkBrush *brush);
68 
70  void SetMatrix(vtkMatrix4x4 *m);
71 
73  void GetMatrix(vtkMatrix4x4 *m);
74 
77 
79  void PushMatrix();
80 
82  void PopMatrix();
83 
86  void SetClipping(const vtkRecti &rect);
87 
89  void EnableClipping(bool enable);
90 
92 
97  void EnableClippingPlane(int i, double *planeEquation);
98  void DisableClippingPlane(int i);
100 
101 protected:
104 
106  virtual void EnableDepthBuffer();
107 
109  virtual void DisableDepthBuffer();
110 
111 private:
112  vtkOpenGLContextDevice3D(const vtkOpenGLContextDevice3D &); // Not implemented.
113  void operator=(const vtkOpenGLContextDevice3D &); // Not implemented.
114 
116 
117  class Private;
118  Private *Storage;
120 
121  vtkNew<vtkBrush> Brush;
122  vtkNew<vtkPen> Pen;
123 };
124 
125 #endif
virtual void MultiplyMatrix(vtkMatrix4x4 *m)=0
virtual void DrawTriangleMesh(const float *mesh, int n, const unsigned char *colors, int nc)=0
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:38
Abstract class for drawing 3D primitives.
virtual void DisableClippingPlane(int i)=0
virtual void ApplyPen(vtkPen *pen)=0
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
provides a brush that fills shapes drawn by vtkContext2D.
Definition: vtkBrush.h:36
#define VTKRENDERINGCONTEXT2D_EXPORT
virtual void SetMatrix(vtkMatrix4x4 *m)=0
virtual void DrawPoints(const float *verts, int n, const unsigned char *colors=0, int nc=0)=0
a simple class to control print indentation
Definition: vtkIndent.h:38
const GLfloat * m
Definition: vtkgl.h:18169
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void EnableClipping(bool enable)=0
virtual void SetClipping(const vtkRecti &rect)=0
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition: vtkPen.h:38
virtual void PopMatrix()=0
virtual void ApplyBrush(vtkBrush *brush)=0
GLboolean enable
Definition: vtkgl.h:18647
OpenGL class drawing 3D primitives.
GLclampd n
Definition: vtkgl.h:14370
static vtkObject * New()
virtual void PushMatrix()=0
virtual void GetMatrix(vtkMatrix4x4 *m)=0
virtual void DrawPoly(const float *verts, int n, const unsigned char *colors=0, int nc=0)=0
virtual void EnableClippingPlane(int i, double *planeEquation)=0