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);
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);
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
OpenGL2 implementation of GL2PS exporter.
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.
static void SetTextAsPath(bool b)
concrete dataset representing a path defined by Bezier curves.
abstract base class for most VTK objects
static void SetPointSizeFactor(float f)
Helper functions for using GL2PS within VTK.
static float GetLineWidthFactor()
static bool GetTextAsPath()
Get whether all text will be exported as paths.
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)
represent text properties.
static void SetRenderWindow(vtkRenderWindow *renWin)
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