Go to the documentation of this file.
23 #ifndef vtkGL2PSUtilities_h
24 #define vtkGL2PSUtilities_h
51 double backgroundDepth);
65 return vtkGL2PSUtilities::RenderWindow;
75 double rasterPos[3],
unsigned char actorColor[4],
76 const char *label = NULL);
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; }
119 { vtkGL2PSUtilities::PointSizeFactor =
f; }
122 { vtkGL2PSUtilities::LineWidthFactor =
f; }
126 vtkGL2PSUtilities::TextAsPath =
b;
131 vtkGL2PSUtilities::RenderWindow = renWin;
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);
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);
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,
represent and manipulate 3D points
static void DrawPathPS(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
static void Draw3DPath(vtkPath *path, vtkMatrix4x4 *actorMatrix, double rasterPos[3], unsigned char actorColor[4], const char *label=NULL)
GLboolean GLboolean GLboolean b
static const char * TextPropertyToPSFontName(vtkTextProperty *tprop)
static void FinishExport()
static vtkRenderWindow * GetRenderWindow()
GLenum GLenum GLenum GLenum GLenum scale
static void SetTextAsPath(bool b)
concrete dataset representing a path defined by Bezier curves.
#define vtkTypeMacro(thisClass, superclass)
static int TextPropertyToGL2PSAlignment(vtkTextProperty *tprop)
abstract base class for most VTK objects
export a scene as a PostScript file using GL2PS.
#define VTKRENDERINGGL2PS_EXPORT
static void SetPointSizeFactor(float f)
GLsizei const GLfloat * points
Helper functions for using GL2PS within VTK.
static void DrawPathSVG(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
static float GetLineWidthFactor()
static vtkGL2PSUtilities * New()
static bool GetTextAsPath()
static void DrawString(const char *str, vtkTextProperty *tprop, double pos[3], double backgroundDepth)
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
GLsizei const GLchar ** path
static void SetLineWidthFactor(float f)
static void StartExport()
represent text properties.
static void SetRenderWindow(vtkRenderWindow *renWin)
static void DrawPath(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
virtual void PrintSelf(ostream &os, vtkIndent indent)
static void DrawPathPDF(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=NULL, double rotateAngle=0.0, float strokeWidth=-1, const char *label=NULL)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
static float GetPointSizeFactor()
create a window for renderers to draw into
vtkRenderWindow * RenderWindow