Go to the documentation of this file.
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;
432 #endif //vtkOpenGLContextDevice2D_h
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 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 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.
base class for classes that render supplied text to an image.
represent and manipulate 3x3 transformation matrices
window superclass for vtkRenderWindow
2D array of ids, used for picking.
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.
Class for drawing 2D primitives using OpenGL 1.1+.
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
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.
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
abstract specification for Viewports
Abstract class for drawing 2D primitives.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
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.
abstract specification for renderers
static vtkOpenGLContextDevice2D * New()
Creates a 2D Painter object.
Wrapper around std::string to keep symbols short.