VTK
|
Helper functions for using GL2PS within VTK. More...
#include <vtkGL2PSUtilities.h>
Public Types | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGL2PSUtilities * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkGL2PSUtilities * | New () |
static int | IsTypeOf (const char *type) |
static vtkGL2PSUtilities * | SafeDownCast (vtkObjectBase *o) |
static const char * | TextPropertyToPSFontName (vtkTextProperty *tprop) |
static int | TextPropertyToGL2PSAlignment (vtkTextProperty *tprop) |
static void | DrawString (const char *str, vtkTextProperty *tprop, double pos[3], double backgroundDepth) |
static vtkRenderWindow * | GetRenderWindow () |
static void | Draw3DPath (vtkPath *path, vtkMatrix4x4 *actorMatrix, double rasterPos[3], unsigned char actorColor[4], const char *label=NULL) |
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) |
static bool | GetTextAsPath () |
static float | GetPointSizeFactor () |
static float | GetLineWidthFactor () |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGL2PSUtilities () | |
~vtkGL2PSUtilities () | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Static Protected Member Functions | |
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, const char *label=NULL) |
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) |
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) |
Friends | |
class | vtkGL2PSExporter |
Additional Inherited Members | |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
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.
Definition at line 40 of file vtkGL2PSUtilities.h.
|
inlineprotected |
Definition at line 147 of file vtkGL2PSUtilities.h.
|
inlineprotected |
Definition at line 148 of file vtkGL2PSUtilities.h.
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkGL2PSUtilities* vtkGL2PSUtilities::NewInstance | ( | ) | const |
|
inlinevirtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkObject.
Definition at line 41 of file vtkGL2PSUtilities.h.
|
static |
Format the text in str according to tprop and instruct GL2PS to draw it at world coordinate pos. Background depth is the z value for the background quad, and should be in NDC space.
|
static |
Translate the tprop's fontname into a Postscript font name.
|
static |
Convert the alignment hint in tprop to a GL2PS text alignment constant.
|
inlinestatic |
Get the current RenderWindow that is being exported
Definition at line 63 of file vtkGL2PSUtilities.h.
|
static |
Transform the path using the actor's matrix and current GL state, then draw it to GL2PS. The label string is inserted into the GL2PS output at the beginning of the path specification as a comment on supported backends.
|
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). The label string is inserted into the GL2PS output at the beginning of the path specification as a comment on supported backends.
|
inlinestatic |
Get whether all text will be exported as paths.
Definition at line 97 of file vtkGL2PSUtilities.h.
|
inlinestatic |
Get a scaling factor for the point size or line width used by GL2PS. Default value: 5/7.
Definition at line 106 of file vtkGL2PSUtilities.h.
|
inlinestatic |
Get a scaling factor for the point size or line width used by GL2PS. Default value: 5/7.
Definition at line 108 of file vtkGL2PSUtilities.h.
|
staticprotected |
|
staticprotected |
|
inlinestaticprotected |
Definition at line 118 of file vtkGL2PSUtilities.h.
|
inlinestaticprotected |
Definition at line 121 of file vtkGL2PSUtilities.h.
|
inlinestaticprotected |
Definition at line 124 of file vtkGL2PSUtilities.h.
|
inlinestaticprotected |
Definition at line 129 of file vtkGL2PSUtilities.h.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
friend |
Definition at line 113 of file vtkGL2PSUtilities.h.