33#ifndef vtkOpenGLContextDevice2D_h
34#define vtkOpenGLContextDevice2D_h
36#include "vtkRenderingContextOpenGLModule.h"
65 virtual void DrawPoly(
float *f,
int n,
unsigned char *colors = 0,
74 virtual void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
92 unsigned char* colors = 0,
int nc_comps = 0);
106 unsigned char *colors = 0,
int nc_comps = 0);
115 vtkGetMacro(MaximumMarkerCacheSize,
int)
121 virtual
void DrawQuad(
float *
points,
int n);
126 virtual
void DrawQuadStrip(
float *
points,
int n);
131 virtual
void DrawPolygon(
float *,
int);
144 virtual
void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
154 virtual
void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
195 virtual
void ComputeJustifiedStringBounds(const
char*
string,
float bounds[4]);
219 virtual
void SetColor4(
unsigned char color[4]);
224 virtual
void SetColor(
unsigned char color[3]);
234 virtual
void SetPointSize(
float size);
239 virtual
void SetLineWidth(
float width);
244 virtual
void SetLineType(
int type);
264 virtual
void PushMatrix();
269 virtual
void PopMatrix();
275 virtual
void SetClipping(
int *x);
280 virtual
void EnableClipping(
bool enable);
308 virtual
void BufferIdModeEnd();
315 bool SetStringRendererToFreeType();
321 bool SetStringRendererToQt();
340 virtual
void ReleaseGraphicsResources(
vtkWindow *window);
353 int GetNumberOfArcIterations(
float rX,
410 class vtkMarkerCacheObject
417 return this->Key ==
key;
421 std::list<vtkMarkerCacheObject> MarkerCache;
422 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... The lines will be c...
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)