Go to the documentation of this file.
27 #ifndef vtkContext3D_h
28 #define vtkContext3D_h
30 #include "vtkRenderingContext2DModule.h"
96 unsigned char *colors,
int nc_comps);
102 const unsigned char *colors,
int nc);
168 void operator=(
const vtkContext3D &) VTK_DELETE_FUNCTION;
171 #endif // VTKCONTEXT3D_H
provides a brush that fills shapes drawn by vtkContext2D.
void DrawLine(const vtkVector3f &start, const vtkVector3f &end)
Draw a line between the specified points.
void PushMatrix()
Push/pop the transformation matrix for the painter (sets the underlying matrix for the device when av...
vtkContextDevice3D * GetDevice()
Get access to the underlying 3D context.
static vtkContext3D * New()
Creates a 3D context object.
void DrawPoints(const float *points, int n)
Draw a sequence of points at the specified locations.
Abstract class for drawing 3D primitives.
abstract base class for most VTK objects
void AppendTransform(vtkTransform *transform)
Append the transform for the context, the underlying device will use the matrix of the transform.
vtkSmartPointer< vtkContextDevice3D > Device
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void DrawTriangleMesh(const float *mesh, int n, const unsigned char *colors, int nc)
Draw triangles to generate the specified mesh.
void DisableClippingPlane(int i)
a simple class to control print indentation
void DrawPoint(const vtkVector3f &point)
Draw a point at the point in 3D space.
bool End()
Ends painting on the device, you would not usually need to call this as it should be called by the de...
vtkTransform * GetTransform()
Compute the current transform applied to the context.
void DrawPoints(const float *points, int n, unsigned char *colors, int nc_comps)
Draw a sequence of points at the specified locations.
void SetTransform(vtkTransform *transform)
Set the transform for the context, the underlying device will use the matrix of the transform.
void DrawPoly(const float *points, int n)
Draw a poly line between the specified points.
void ApplyPen(vtkPen *pen)
Apply the supplied pen which controls the outlines of shapes, as well as lines, points and related pr...
Class for drawing 3D primitives to a graphical context.
void ApplyBrush(vtkBrush *brush)
Apply the supplied brush which controls the outlines of shapes, as well as lines, points and related ...
bool Begin(vtkContextDevice3D *device)
Begin painting on a vtkContextDevice3D, no painting can occur before this call has been made.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
vtkSmartPointer< vtkTransform > Transform
void EnableClippingPlane(int i, double *planeEquation)
Enable/Disable the specified clipping plane.