25 #ifndef vtkOpenGLContextDevice3D_h
26 #define vtkOpenGLContextDevice3D_h
28 #include "vtkRenderingContextOpenGL2Module.h"
53 void DrawPoly(
const float *verts,
int n,
const unsigned char *colors,
int nc);
59 void DrawLines(
const float *verts,
int n,
const unsigned char *colors,
int nc);
65 const unsigned char *colors,
int nc);
71 const unsigned char *colors,
int nc);
166 const float *v,
int nv,
167 const unsigned char *coolors,
int nc,
provides a brush that fills shapes drawn by vtkContext2D.
Abstract class for drawing 3D primitives.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
Class for drawing 2D primitives using OpenGL 1.1+.
OpenGL class drawing 3D primitives.
vtkOpenGLContextDevice3D()
void SetMatrices(vtkShaderProgram *prog)
std::vector< double > ClippingPlaneValues
virtual void DisableDepthBuffer()
End drawing, turn off the depth buffer.
void CoreDrawTriangles(std::vector< float > &tverts)
void GetMatrix(vtkMatrix4x4 *m)
Set the model view matrix for the display.
virtual bool HaveWideLines()
void DrawPoly(const float *verts, int n, const unsigned char *colors, int nc)
Draw a polyline between the specified points.
void Initialize(vtkRenderer *, vtkOpenGLContextDevice2D *)
This must be set during initialization.
void ApplyPen(vtkPen *pen)
Apply the supplied pen which controls the outlines of shapes, as well as lines, points and related pr...
virtual void EnableDepthBuffer()
Begin drawing, turn on the depth buffer.
void ApplyBrush(vtkBrush *brush)
Apply the supplied brush which controls the outlines of shapes, as well as lines, points and related ...
void EnableClipping(bool enable)
Enable or disable the clipping of the scene.
static vtkOpenGLContextDevice3D * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void DisableClippingPlane(int i)
std::vector< bool > ClippingPlaneStates
vtkTransform * ModelMatrix
void SetMatrix(vtkMatrix4x4 *m)
Set the model view matrix for the display.
vtkOpenGLRenderWindow * RenderWindow
The OpenGL render window being used by the device.
void DrawPoints(const float *verts, int n, const unsigned char *colors, int nc)
Draw points at the vertex positions specified.
void SetClipping(const vtkRecti &rect)
Supply a float array of length 4 with x1, y1, width, height specifying clipping region for the device...
void EnableClippingPlane(int i, double *planeEquation)
Enable/Disable the specified clipping plane.
void DrawTriangleMesh(const float *mesh, int n, const unsigned char *colors, int nc)
Draw triangles to generate the specified mesh.
~vtkOpenGLContextDevice3D()
void PushMatrix()
Push the current matrix onto the stack.
void MultiplyMatrix(vtkMatrix4x4 *m)
Multiply the current model view matrix by the supplied one.
void BuildVBO(vtkOpenGLHelper *cbo, const float *v, int nv, const unsigned char *coolors, int nc, float *tcoords)
vtkRenderer * Renderer
We need to store a pointer to get the camera mats.
virtual void Begin(vtkViewport *viewport)
Begin drawing, pass in the viewport to set up the view.
void PopMatrix()
Pop the current matrix off of the stack.
void DrawLines(const float *verts, int n, const unsigned char *colors, int nc)
Draw lines defined by specified pair of points.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
abstract specification for renderers
The ShaderProgram uses one or more Shader objects.
abstract specification for Viewports