24 #ifndef vtkGL2PSUtilities_h
25 #define vtkGL2PSUtilities_h
28 #include "vtkRenderingGL2PSModule.h"
44 this->Superclass::PrintSelf(os, indent);
51 static void DrawString(
const char *str,
vtkTextProperty *tprop,
double pos[3],
52 double backgroundDepth);
69 return vtkGL2PSUtilities::RenderWindow;
78 double rasterPos[3],
unsigned char actorColor[4],
79 const char *label = NULL);
91 static void DrawPath(
vtkPath *path,
double rasterPos[3],
double windowPos[2],
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; }
116 static void StartExport();
117 static void FinishExport();
120 { vtkGL2PSUtilities::PointSizeFactor = f; }
123 { vtkGL2PSUtilities::LineWidthFactor = f; }
127 vtkGL2PSUtilities::TextAsPath = b;
132 vtkGL2PSUtilities::RenderWindow = renWin;
135 static void DrawPathPS(
vtkPath *path,
double rasterPos[3],
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);
139 static void DrawPathPDF(
vtkPath *path,
double rasterPos[3],
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);
143 static void DrawPathSVG(
vtkPath *path,
double rasterPos[3],
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);
165 static
void ProjectPoint(
double point[4],
vtkMatrix4x4 * transformMatrix,
166 double viewportOrigin[2],
double halfWidth,
167 double halfHeight,
double zfact1,
double zfact2);
177 static
void UnprojectPoint(
double point[4],
vtkMatrix4x4 *invTransformMatrix,
178 double viewportOrigin[2],
double halfWidth,
179 double halfHeight,
double zfact1,
double zfact2);
180 static
void UnprojectPoints(
double *points3D,
vtkIdType numPoints,
Helper functions for using GL2PS within VTK.
abstract base class for most VTK objects
represent and manipulate 4x4 transformation matrices
static float GetPointSizeFactor()
Get a scaling factor for the point size or line width used by GL2PS.
concrete dataset representing a path defined by Bezier curves.
static bool GetTextAsPath()
Get whether all text will be exported as paths.
static void SetLineWidthFactor(float f)
static void SetRenderWindow(vtkRenderWindow *renWin)
a simple class to control print indentation
topologically and geometrically regular array of data
static float GetLineWidthFactor()
OpenGL2 implementation of GL2PS exporter.
represent text properties.
vtkWeakPointer< vtkRenderWindow > RenderWindow
create a window for renderers to draw into
static void SetTextAsPath(bool b)
static vtkRenderWindow * GetRenderWindow()
Get the current RenderWindow that is being exported.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points
static void SetPointSizeFactor(float f)