23 #ifndef vtkGL2PSUtilities_h
24 #define vtkGL2PSUtilities_h
50 static void DrawString(
const char *str,
vtkTextProperty *tprop,
double pos[3],
51 double backgroundDepth);
65 return vtkGL2PSUtilities::RenderWindow;
75 double rasterPos[3],
unsigned char actorColor[4],
76 const char *label = NULL);
89 static void DrawPath(
vtkPath *path,
double rasterPos[3],
double windowPos[2],
90 unsigned char rgba[4],
double scale[2] = NULL,
91 double rotateAngle = 0.0,
float strokeWidth = -1,
92 const char *label = NULL);
99 return vtkGL2PSUtilities::TextAsPath;
107 {
return vtkGL2PSUtilities::PointSizeFactor; }
109 {
return vtkGL2PSUtilities::LineWidthFactor; }
115 static void StartExport();
116 static void FinishExport();
119 { vtkGL2PSUtilities::PointSizeFactor = f; }
122 { vtkGL2PSUtilities::LineWidthFactor = f; }
126 vtkGL2PSUtilities::TextAsPath = b;
131 vtkGL2PSUtilities::RenderWindow = renWin;
134 static void DrawPathPS(
vtkPath *path,
double rasterPos[3],
135 double windowPos[2],
unsigned char rgba[4],
136 double scale[2] = NULL,
double rotateAngle = 0.0,
137 float strokeWidth = -1,
const char *label = NULL);
138 static void DrawPathPDF(
vtkPath *path,
double rasterPos[3],
139 double windowPos[2],
unsigned char rgba[4],
140 double scale[2] = NULL,
double rotateAngle = 0.0,
141 float strokeWidth = -1,
const char *label = NULL);
142 static void DrawPathSVG(
vtkPath *path,
double rasterPos[3],
143 double windowPos[2],
unsigned char rgba[4],
144 double scale[2] = NULL,
double rotateAngle = 0.0,
145 float strokeWidth = -1,
const char *label = NULL);
163 double viewportOrigin[2],
double halfWidth,
164 double halfHeight,
double zfact1,
double zfact2);
173 double viewportOrigin[2],
double halfWidth,
174 double halfHeight,
double zfact1,
double zfact2);
175 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
export a scene as a PostScript file using GL2PS.
static float GetPointSizeFactor()
concrete dataset representing a path defined by Bezier curves.
static bool GetTextAsPath()
virtual void PrintSelf(ostream &os, vtkIndent indent)
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()
represent text properties.
vtkWeakPointer< vtkRenderWindow > RenderWindow
create a window for renderers to draw into
static void SetTextAsPath(bool b)
static vtkRenderWindow * GetRenderWindow()
#define VTKRENDERINGGL2PS_EXPORT
represent and manipulate 3D points
static void SetPointSizeFactor(float f)