15#ifndef vtkOpenGLGL2PSHelper_h
16#define vtkOpenGLGL2PSHelper_h
19#include "vtkRenderingOpenGL2Module.h"
22VTK_ABI_NAMESPACE_BEGIN
72 vtkGetMacro(ActiveState,
State);
79 vtkSetMacro(PointSize,
float);
80 vtkGetMacro(PointSize,
float);
87 vtkSetMacro(LineWidth,
float);
88 vtkGetMacro(LineWidth,
float);
96 vtkSetMacro(LineStipple,
unsigned short);
97 vtkGetMacro(LineStipple,
unsigned short);
137 unsigned char rgba[4],
double scale[2] =
nullptr,
double rotateAngle = 0.0,
138 float strokeWidth = -1,
const char* label =
nullptr) = 0;
146 unsigned char actorColor[4],
vtkRenderer* ren,
const char* label =
nullptr) = 0;
161 vtkSetMacro(TextAsPath,
bool);
163 vtkSetMacro(PointSizeFactor,
float);
164 vtkSetMacro(LineWidthFactor,
float);
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
abstract base class for most VTK objects
OpenGL2 implementation of GL2PS exporter.
Access GL2PS functionality.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow * RenderWindow
unsigned short LineStipple
virtual void SetRenderWindow(vtkRenderWindow *)
virtual void ProcessTransformFeedback(vtkTransformFeedback *tfc, vtkRenderer *ren, vtkActor *act)=0
Parse the vertex information in tfc and inject primitives into GL2PS.
virtual void DrawImage(vtkImageData *image, double pos[3])=0
Draw the image at pos.
static void SetInstance(vtkOpenGLGL2PSHelper *)
The global instance.
static vtkOpenGLGL2PSHelper * Instance
virtual void DrawPath(vtkPath *path, double rasterPos[3], double windowPos[2], unsigned char rgba[4], double scale[2]=nullptr, double rotateAngle=0.0, float strokeWidth=-1, const char *label=nullptr)=0
Generate PS, EPS, or SVG markup from a vtkPath object, and then inject it into the output using the g...
@ Background
No export active.
static vtkOpenGLGL2PSHelper * New()
virtual void ProcessTransformFeedback(vtkTransformFeedback *tfc, vtkRenderer *ren, unsigned char col[4])=0
Parse the vertex information in tfc and inject primitives into GL2PS.
vtkAbstractTypeMacro(vtkOpenGLGL2PSHelper, vtkObject)
virtual void Draw3DPath(vtkPath *path, vtkMatrix4x4 *actorMatrix, double rasterPos[3], unsigned char actorColor[4], vtkRenderer *ren, const char *label=nullptr)=0
Transform the path using the actor's matrix and current GL state, then draw it to GL2PS.
virtual void DrawString(const std::string &str, vtkTextProperty *tprop, double pos[3], double backgroundDepth, vtkRenderer *ren)=0
Format the text in str according to tprop and instruct GL2PS to draw it at pixel coordinate pos.
static vtkOpenGLGL2PSHelper * GetInstance()
The global instance.
virtual void ProcessTransformFeedback(vtkTransformFeedback *tfc, vtkRenderer *ren, float col[4])=0
Parse the vertex information in tfc and inject primitives into GL2PS.
~vtkOpenGLGL2PSHelper() override
concrete dataset representing a path defined by Bezier curves.
create a window for renderers to draw into
abstract specification for renderers
represent text properties.