30 #ifndef vtkOpenGLContextDevice2D_h
31 #define vtkOpenGLContextDevice2D_h
33 #include "vtkRenderingContextOpenGLModule.h"
62 virtual void DrawPoly(
float *f,
int n,
unsigned char *colors = 0,
71 virtual void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
89 unsigned char* colors = 0,
int nc_comps = 0);
103 unsigned char *colors = 0,
int nc_comps = 0);
112 vtkGetMacro(MaximumMarkerCacheSize,
int)
118 virtual
void DrawQuad(
float *
points,
int n);
123 virtual
void DrawQuadStrip(
float *
points,
int n);
128 virtual
void DrawPolygon(
float *,
int);
141 virtual
void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
151 virtual
void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
192 virtual
void ComputeJustifiedStringBounds(const
char*
string,
float bounds[4]);
216 virtual
void SetColor4(
unsigned char color[4]);
221 virtual
void SetColor(
unsigned char color[3]);
231 virtual
void SetPointSize(
float size);
236 virtual
void SetLineWidth(
float width);
241 virtual
void SetLineType(
int type);
261 virtual
void PushMatrix();
266 virtual
void PopMatrix();
272 virtual
void SetClipping(
int *x);
277 virtual
void EnableClipping(
bool enable);
305 virtual
void BufferIdModeEnd();
312 bool SetStringRendererToFreeType();
318 bool SetStringRendererToQt();
337 virtual
void ReleaseGraphicsResources(
vtkWindow *window);
350 int GetNumberOfArcIterations(
float rX,
407 class vtkMarkerCacheObject
414 return this->Key ==
key;
418 std::list<vtkMarkerCacheObject> MarkerCache;
419 int MaximumMarkerCacheSize;
2D array of ids, used for picking.
Abstract class for drawing 2D primitives.
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 3x3 transformation matrices
Class for drawing 2D primitives using OpenGL 1.1+.
static vtkOpenGLContextDevice2D * New()
Creates a 2D Painter object.
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 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.
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 DrawLines(float *f, int n, unsigned char *colors=0, int nc_comps=0)
Draw lines using the points - memory layout is as follows: l1p1,l1p2,l2p1,l2p2...
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 PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
Interface class for querying and using OpenGL extensions.
abstract specification for renderers
Wrapper around std::string to keep symbols short.
base class for classes that render supplied text to an image.
String class that stores Unicode text.
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)