Go to the documentation of this file.
24 #ifndef vtkGL2PSUtilities_h
25 #define vtkGL2PSUtilities_h
28 #include "vtkRenderingGL2PSModule.h"
44 this->Superclass::PrintSelf(os, indent);
52 double backgroundDepth);
69 return vtkGL2PSUtilities::RenderWindow;
78 double rasterPos[3],
unsigned char actorColor[4],
79 const char *label = NULL);
92 unsigned char rgba[4],
double scale[2] = NULL,
93 double rotateAngle = 0.0,
float strokeWidth = -1,
94 const char *label = NULL);
101 return vtkGL2PSUtilities::TextAsPath;
109 {
return vtkGL2PSUtilities::PointSizeFactor; }
111 {
return vtkGL2PSUtilities::LineWidthFactor; }
120 { vtkGL2PSUtilities::PointSizeFactor = f; }
123 { vtkGL2PSUtilities::LineWidthFactor = f; }
127 vtkGL2PSUtilities::TextAsPath = b;
132 vtkGL2PSUtilities::RenderWindow = renWin;
136 double windowPos[2],
unsigned char rgba[4],
137 double scale[2] = NULL,
double rotateAngle = 0.0,
138 float strokeWidth = -1,
const char *label = NULL);
140 double windowPos[2],
unsigned char rgba[4],
141 double scale[2] = NULL,
double rotateAngle = 0.0,
142 float strokeWidth = -1,
const char *label = NULL);
144 double windowPos[2],
unsigned char rgba[4],
145 double scale[2] = NULL,
double rotateAngle = 0.0,
146 float strokeWidth = -1,
const char *label = NULL);
166 double viewportOrigin[2],
double halfWidth,
167 double halfHeight,
double zfact1,
double zfact2);
178 double viewportOrigin[2],
double halfWidth,
179 double halfHeight,
double zfact1,
double zfact2);
180 static void UnprojectPoints(
double *points3D,
vtkIdType numPoints,
represent and manipulate 3D points
static void DrawPathPS(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
static void Draw3DPath(vtkPath *path, vtkMatrix4x4 *actorMatrix, double rasterPos[3], unsigned char actorColor[4], const char *label=NULL)
Transform the path using the actor's matrix and current GL state, then draw it to GL2PS.
OpenGL2 implementation of GL2PS exporter.
static const char * TextPropertyToPSFontName(vtkTextProperty *tprop)
Translate the tprop's fontname into a Postscript font name.
static void FinishExport()
static vtkRenderWindow * GetRenderWindow()
Get the current RenderWindow that is being exported.
static void SetTextAsPath(bool b)
concrete dataset representing a path defined by Bezier curves.
static int TextPropertyToGL2PSAlignment(vtkTextProperty *tprop)
Convert the alignment hint in tprop to a GL2PS text alignment constant.
abstract base class for most VTK objects
static void SetPointSizeFactor(float f)
Helper functions for using GL2PS within VTK.
static void DrawPathSVG(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
static float GetLineWidthFactor()
static vtkGL2PSUtilities * New()
static bool GetTextAsPath()
Get whether all text will be exported as paths.
static void DrawString(const char *str, vtkTextProperty *tprop, double pos[3], double backgroundDepth)
Format the text in str according to tprop and instruct GL2PS to draw it at world coordinate pos.
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
static void SetLineWidthFactor(float f)
static void StartExport()
represent text properties.
static void SetRenderWindow(vtkRenderWindow *renWin)
static void DrawPath(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
Generate PS, EPS, or SVG markup from a vtkPath object, and then inject it into the output using the g...
static void DrawPathPDF(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
static float GetPointSizeFactor()
Get a scaling factor for the point size or line width used by GL2PS.
create a window for renderers to draw into
vtkRenderWindow * RenderWindow