Helper functions for using GL2PS within VTK.
More...
#include <vtkGL2PSUtilities.h>
Inherits vtkObject.
|
static vtkGL2PSUtilities * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkGL2PSUtilities * | SafeDownCast (vtkObjectBase *o) |
|
static void | DrawString (const char *str, vtkTextProperty *tprop, double pos[3]) |
|
static const char * | TextPropertyToPSFontName (vtkTextProperty *tprop) |
|
static int | TextPropertyToGL2PSAlignment (vtkTextProperty *tprop) |
|
|
static vtkRenderWindow * | GetRenderWindow () |
|
|
static void | Draw3DPath (vtkPath *path, vtkMatrix4x4 *actorMatrix, double rasterPos[3], unsigned char actorColor[4]) |
|
|
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) |
|
|
static bool | GetTextAsPath () |
|
|
static float | GetPointSizeFactor () |
|
static float | GetLineWidthFactor () |
|
|
static void | StartExport () |
|
static void | FinishExport () |
|
static void | SetPointSizeFactor (float f) |
|
static void | SetLineWidthFactor (float f) |
|
static void | SetTextAsPath (bool b) |
|
static void | SetRenderWindow (vtkRenderWindow *renWin) |
|
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) |
|
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) |
|
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) |
|
Helper functions for using GL2PS within VTK.
vtkGL2PSUtilities implements some static helper function that simplify calling GL2PS routines on VTK objects. This class is meant for internal use only and is subject to change.
Definition at line 36 of file vtkGL2PSUtilities.h.
vtkGL2PSUtilities::vtkGL2PSUtilities |
( |
| ) |
|
|
inlineprotected |
vtkGL2PSUtilities::~vtkGL2PSUtilities |
( |
| ) |
|
|
inlineprotected |
static int vtkGL2PSUtilities::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkGL2PSUtilities::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkGL2PSUtilities::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkGL2PSUtilities::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
inline |
static void vtkGL2PSUtilities::DrawString |
( |
const char * |
str, |
|
|
vtkTextProperty * |
tprop, |
|
|
double |
pos[3] |
|
) |
| |
|
static |
Format the text in str according to tprop and instruct GL2PS to draw it at world coordinate pos.
static const char* vtkGL2PSUtilities::TextPropertyToPSFontName |
( |
vtkTextProperty * |
tprop | ) |
|
|
static |
Translate the tprop's fontname into a Postscript font name.
static int vtkGL2PSUtilities::TextPropertyToGL2PSAlignment |
( |
vtkTextProperty * |
tprop | ) |
|
|
static |
Convert the alignment hint in tprop to a GL2PS text alignment constant.
static vtkRenderWindow* vtkGL2PSUtilities::GetRenderWindow |
( |
| ) |
|
|
inlinestatic |
static void vtkGL2PSUtilities::Draw3DPath |
( |
vtkPath * |
path, |
|
|
vtkMatrix4x4 * |
actorMatrix, |
|
|
double |
rasterPos[3], |
|
|
unsigned char |
actorColor[4] |
|
) |
| |
|
static |
Transform the path using the actor's matrix and current GL state, then draw it to GL2PS.
static void vtkGL2PSUtilities::DrawPath |
( |
vtkPath * |
path, |
|
|
double |
rasterPos[3], |
|
|
double |
windowPos[2], |
|
|
unsigned char |
rgba[4], |
|
|
double |
scale[2] = NULL , |
|
|
double |
rotateAngle = 0.0 , |
|
|
float |
strokeWidth = -1 |
|
) |
| |
|
static |
Generate PS, EPS, or SVG markup from a vtkPath object, and then inject it into the output using the gl2psSpecial command. The path is translated uniformly in the scene by windowPos. It is scaled by scale and rotated counter-clockwise by rotateAngle. The rasterPos is in world coordinates and determines clipping and depth. If scale is NULL, no scaling is done. If strokeWidth is positive, the path will be stroked with the indicated width. If zero or negative, the path will be filled (default).
static bool vtkGL2PSUtilities::GetTextAsPath |
( |
| ) |
|
|
inlinestatic |
static float vtkGL2PSUtilities::GetPointSizeFactor |
( |
| ) |
|
|
inlinestatic |
Get a scaling factor for the point size or line width used by GL2PS. Default value: 5/7.
Definition at line 96 of file vtkGL2PSUtilities.h.
static float vtkGL2PSUtilities::GetLineWidthFactor |
( |
| ) |
|
|
inlinestatic |
Get a scaling factor for the point size or line width used by GL2PS. Default value: 5/7.
Definition at line 98 of file vtkGL2PSUtilities.h.
static void vtkGL2PSUtilities::StartExport |
( |
| ) |
|
|
staticprotected |
static void vtkGL2PSUtilities::FinishExport |
( |
| ) |
|
|
staticprotected |
static void vtkGL2PSUtilities::SetPointSizeFactor |
( |
float |
f | ) |
|
|
inlinestaticprotected |
static void vtkGL2PSUtilities::SetLineWidthFactor |
( |
float |
f | ) |
|
|
inlinestaticprotected |
static void vtkGL2PSUtilities::SetTextAsPath |
( |
bool |
b | ) |
|
|
inlinestaticprotected |
static void vtkGL2PSUtilities::SetRenderWindow |
( |
vtkRenderWindow * |
renWin | ) |
|
|
inlinestaticprotected |
static void vtkGL2PSUtilities::DrawPathPS |
( |
vtkPath * |
path, |
|
|
double |
rasterPos[3], |
|
|
double |
windowPos[2], |
|
|
unsigned char |
rgba[4], |
|
|
double |
scale[2] = NULL , |
|
|
double |
rotateAngle = 0.0 , |
|
|
float |
strokeWidth = -1 |
|
) |
| |
|
staticprotected |
static void vtkGL2PSUtilities::DrawPathPDF |
( |
vtkPath * |
path, |
|
|
double |
rasterPos[3], |
|
|
double |
windowPos[2], |
|
|
unsigned char |
rgba[4], |
|
|
double |
scale[2] = NULL , |
|
|
double |
rotateAngle = 0.0 , |
|
|
float |
strokeWidth = -1 |
|
) |
| |
|
staticprotected |
static void vtkGL2PSUtilities::DrawPathSVG |
( |
vtkPath * |
path, |
|
|
double |
rasterPos[3], |
|
|
double |
windowPos[2], |
|
|
unsigned char |
rgba[4], |
|
|
double |
scale[2] = NULL , |
|
|
double |
rotateAngle = 0.0 , |
|
|
float |
strokeWidth = -1 |
|
) |
| |
|
staticprotected |
friend class vtkGL2PSExporter |
|
friend |
The documentation for this class was generated from the following file: