23 #ifndef __vtkGL2PSUtilities_h
24 #define __vtkGL2PSUtilities_h
48 static void DrawString(
const char *str,
vtkTextProperty *tprop,
double pos[3]);
61 return vtkGL2PSUtilities::RenderWindow;
71 double rasterPos[3],
unsigned char actorColor[4],
72 const char *label = NULL);
85 static void DrawPath(
vtkPath *
path,
double rasterPos[3],
double windowPos[2],
86 unsigned char rgba[4],
double scale[2] = NULL,
87 double rotateAngle = 0.0,
float strokeWidth = -1,
88 const char *label = NULL);
95 return vtkGL2PSUtilities::TextAsPath;
103 {
return vtkGL2PSUtilities::PointSizeFactor; }
105 {
return vtkGL2PSUtilities::LineWidthFactor; }
111 static void StartExport();
112 static void FinishExport();
115 { vtkGL2PSUtilities::PointSizeFactor =
f; }
118 { vtkGL2PSUtilities::LineWidthFactor =
f; }
122 vtkGL2PSUtilities::TextAsPath =
b;
127 vtkGL2PSUtilities::RenderWindow = renWin;
130 static void DrawPathPS(
vtkPath *
path,
double rasterPos[3],
131 double windowPos[2],
unsigned char rgba[4],
132 double scale[2] = NULL,
double rotateAngle = 0.0,
133 float strokeWidth = -1,
const char *label = NULL);
134 static void DrawPathPDF(
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 DrawPathSVG(
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);
159 double viewportOrigin[2],
double halfWidth,
160 double halfHeight,
double zfact1,
double zfact2);
GLboolean GLboolean GLboolean b
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.
GLenum GLenum GLenum GLenum GLenum scale
static bool GetTextAsPath()
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
virtual void PrintSelf(ostream &os, vtkIndent indent)
#define vtkTypeMacro(thisClass, superclass)
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()
GLsizei const GLchar ** path
represent text properties.
vtkWeakPointer< vtkRenderWindow > RenderWindow
GLsizei const GLfloat * points
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)