 |
VTK
9.0.1
|
Go to the documentation of this file.
22 #ifndef vtkOpenGLGL2PSHelperImpl_h
23 #define vtkOpenGLGL2PSHelperImpl_h
26 #include "vtkRenderingGL2PSOpenGL2Module.h"
47 void DrawPath(
vtkPath* path,
double rasterPos[3],
double windowPos[2],
unsigned char rgba[4],
48 double scale[2] =
nullptr,
double rotateAngle = 0.0,
float strokeWidth = -1,
49 const char* label =
nullptr)
override;
52 unsigned char actorColor[4],
vtkRenderer* ren,
const char* label =
nullptr)
override;
75 vtkMatrix4x4* xform,
double vpOrigin[2],
double halfSize[2],
double zfact[2]);
82 static void ProjectPoint(
double point[4],
vtkMatrix4x4* transformMatrix,
double viewportOrigin[2],
83 double halfWidth,
double halfHeight,
double zfact1,
double zfact2);
84 static void ProjectPoints(
94 double viewportOrigin[2],
double halfWidth,
double halfHeight,
double zfact1,
double zfact2);
95 static void UnprojectPoints(
99 void DrawPathPS(
vtkPath* path,
double rasterPos[3],
double windowPos[2],
unsigned char rgba[4],
100 double scale[2],
double rotateAngle,
float strokeWidth,
const std::string& label);
101 void DrawPathPDF(
vtkPath* path,
double rasterPos[3],
double windowPos[2],
unsigned char rgba[4],
102 double scale[2],
double rotateAngle,
float strokeWidth,
const std::string& label);
103 void DrawPathSVG(
vtkPath* path,
double rasterPos[3],
double windowPos[2],
unsigned char rgba[4],
104 double scale[2],
double rotateAngle,
float strokeWidth,
const std::string& label);
111 #endif // vtkOpenGLGL2PSHelperImpl_h
represent and manipulate 3D points
virtual void DrawImage(vtkImageData *image, double pos[3])=0
Draw the image at pos.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void DrawString(const std::string &str, vtkTextProperty *tprop, double pos[3], double backgroundDepth, vtkRenderer *ren)=0
Format the text in str according to tprop and instruct GL2PS to draw it at pixel coordinate pos.
concrete dataset representing a path defined by Bezier curves.
virtual void ProcessTransformFeedback(vtkTransformFeedback *tfc, vtkRenderer *ren, vtkActor *act)=0
Parse the vertex information in tfc and inject primitives into GL2PS.
virtual void Draw3DPath(vtkPath *path, vtkMatrix4x4 *actorMatrix, double rasterPos[3], unsigned char actorColor[4], vtkRenderer *ren, const char *label=nullptr)=0
Transform the path using the actor's matrix and current GL state, then draw it to GL2PS.
static vtkOpenGLGL2PSHelper * New()
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
represent text properties.
abstract specification for renderers
Access GL2PS functionality.
vtkOpenGLGL2PSHelper override implementation.
virtual void DrawPath(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=nullptr, double rotateAngle=0.0, float strokeWidth=-1, const char *label=nullptr)=0
Generate PS, EPS, or SVG markup from a vtkPath object, and then inject it into the output using the g...