Go to the documentation of this file.
29 #ifndef vtkGL2PSContextDevice2D_h
30 #define vtkGL2PSContextDevice2D_h
32 #include "vtkRenderingGL2PSModule.h"
33 #include "vtkOpenGLContextDevice2D.h"
54 virtual void DrawPoly(
float *f,
int n,
unsigned char *colors = 0,
72 unsigned char *colors = 0,
int nc_comps = 0);
120 unsigned char *colors = 0,
int nc_comps = 0);
173 void DrawCrossMarkers(
bool highlight,
float *
points,
int n,
174 unsigned char *colors,
int nc_comps);
175 void DrawPlusMarkers(
bool highlight,
float *
points,
int n,
176 unsigned char *colors,
int nc_comps);
177 void DrawSquareMarkers(
bool highlight,
float *
points,
int n,
178 unsigned char *colors,
int nc_comps);
179 void DrawCircleMarkers(
bool highlight,
float *
points,
int n,
180 unsigned char *colors,
int nc_comps);
181 void DrawDiamondMarkers(
bool highlight,
float *
points,
int n,
182 unsigned char *colors,
int nc_comps);
196 #endif //vtkGL2PSContextDevice2D_h
virtual void DrawEllipticArc(float x, float y, float rX, float rY, float startAngle, float stopAngle)
Draw an elliptic arc with center at x,y with radii rX and rY between angles startAngle and stopAngle ...
virtual void DrawPoints(float *points, int n, unsigned char *colors=0, int nc_comps=0)
Draw a series of points - fastest code path due to memory layout of the coordinates.
virtual void DrawMathTextString(float point[2], const vtkStdString &string)
Draw text using MathText markup for mathematical equations.
concrete dataset representing a path defined by Bezier curves.
virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0)
Draw a series of point sprites, images centred at the points supplied.
virtual void DrawString(float *point, const vtkStdString &string)
Draw some text to the screen!
virtual void SetLineWidth(float width)
Set the line width for glyphs/sprites.
virtual void SetLineType(int type)
Set the line type type (using anonymous enum in vtkPen).
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ApplyPen(vtkPen *pen)
Apply the supplied pen which controls the outlines of shapes, as well as lines, points and related pr...
Class for drawing 2D primitives using OpenGL 1.1+.
virtual void DrawQuad(float *points, int n)
Draws a rectangle.
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
virtual void SetPointSize(float size)
Set the point size for glyphs/sprites.
virtual void DrawMarkers(int shape, bool highlight, float *points, int n, unsigned char *colors=0, int nc_comps=0)
Draw a series of markers centered at the points supplied.
virtual void DrawEllipseWedge(float x, float y, float outRx, float outRy, float inRx, float inRy, float startAngle, float stopAngle)
Draw an elliptic wedge with center at x, y, outer radii outRx, outRy, inner radii inRx,...
Class for drawing 2D primitives using GL2PS.
void TransformSize(float &dx, float &dy) const
Transform the width and height from pixels to data units.
virtual void DrawPoly(float *f, int n, unsigned char *colors=0, int nc_comps=0)
Draw a poly line using the points - fastest code path due to memory layout of the coordinates.
static vtkOpenGLContextDevice2D * New()
Creates a 2D Painter object.
virtual void DrawQuadStrip(float *points, int n)
Draws a rectangle.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Wrapper around std::string to keep symbols short.
virtual void DrawPolygon(float *, int)
Draw a polygon using the specified number of points.
void AddEllipseToPath(vtkPath *path, float x, float y, float rx, float ry, bool reverse)
Add an ellipse to a vtkPath.
void TransformPoint(float &x, float &y) const
Transform the 2D point using the current modelview matrix.
void TransformPath(vtkPath *path) const
Transform the path using the current modelview matrix.