24 #ifndef vtkGL2PSUtilities_h
25 #define vtkGL2PSUtilities_h
28 #include "vtkRenderingGL2PSModule.h"
43 void PrintSelf(ostream& os,
vtkIndent indent) VTK_OVERRIDE
45 this->Superclass::PrintSelf(os, indent);
52 static void DrawString(
const char *str,
vtkTextProperty *tprop,
double pos[3],
53 double backgroundDepth);
70 return vtkGL2PSUtilities::RenderWindow;
79 double rasterPos[3],
unsigned char actorColor[4],
80 const char *label = NULL);
92 static void DrawPath(
vtkPath *path,
double rasterPos[3],
double windowPos[2],
93 unsigned char rgba[4],
double scale[2] = NULL,
94 double rotateAngle = 0.0,
float strokeWidth = -1,
95 const char *label = NULL);
102 return vtkGL2PSUtilities::TextAsPath;
110 {
return vtkGL2PSUtilities::PointSizeFactor; }
112 {
return vtkGL2PSUtilities::LineWidthFactor; }
117 static void StartExport();
118 static void FinishExport();
121 { vtkGL2PSUtilities::PointSizeFactor = f; }
124 { vtkGL2PSUtilities::LineWidthFactor = f; }
128 vtkGL2PSUtilities::TextAsPath = b;
133 vtkGL2PSUtilities::RenderWindow = renWin;
136 static void DrawPathPS(
vtkPath *path,
double rasterPos[3],
137 double windowPos[2],
unsigned char rgba[4],
138 double scale[2] = NULL,
double rotateAngle = 0.0,
139 float strokeWidth = -1,
const char *label = NULL);
140 static void DrawPathPDF(
vtkPath *path,
double rasterPos[3],
141 double windowPos[2],
unsigned char rgba[4],
142 double scale[2] = NULL,
double rotateAngle = 0.0,
143 float strokeWidth = -1,
const char *label = NULL);
144 static void DrawPathSVG(
vtkPath *path,
double rasterPos[3],
145 double windowPos[2],
unsigned char rgba[4],
146 double scale[2] = NULL,
double rotateAngle = 0.0,
147 float strokeWidth = -1,
const char *label = NULL);
166 static
void ProjectPoint(
double point[4],
vtkMatrix4x4 * transformMatrix,
167 double viewportOrigin[2],
double halfWidth,
168 double halfHeight,
double zfact1,
double zfact2);
178 static
void UnprojectPoint(
double point[4],
vtkMatrix4x4 *invTransformMatrix,
179 double viewportOrigin[2],
double halfWidth,
180 double halfHeight,
double zfact1,
double zfact2);
181 static
void UnprojectPoints(
double *points3D,
vtkIdType numPoints,
Wrapper around std::string to keep symbols short.
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
~vtkGL2PSUtilities() override
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)