30 #ifndef vtkOpenGLContextDevice2D_h
31 #define vtkOpenGLContextDevice2D_h
33 #include "vtkRenderingContextOpenGLModule.h"
62 void DrawPoly(
float *f,
int n,
unsigned char *colors = 0,
63 int nc_comps = 0) VTK_OVERRIDE;
71 void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
72 int nc_comps = 0) VTK_OVERRIDE;
79 void DrawPoints(
float *
points,
int n,
unsigned char* colors = 0,
80 int nc_comps = 0) VTK_OVERRIDE;
88 void DrawPointSprites(
vtkImageData *sprite,
float *points,
int n,
89 unsigned char* colors = 0,
int nc_comps = 0) VTK_OVERRIDE;
102 void DrawMarkers(
int shape,
bool highlight,
float *points,
int n,
103 unsigned char *colors = 0,
int nc_comps = 0) VTK_OVERRIDE;
112 vtkGetMacro(MaximumMarkerCacheSize,
int)
118 void DrawQuad(
float *points,
int n) VTK_OVERRIDE;
123 void DrawQuadStrip(
float *points,
int n) VTK_OVERRIDE;
128 void DrawPolygon(
float *,
int) VTK_OVERRIDE;
141 void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
143 float stopAngle) VTK_OVERRIDE;
151 void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
152 float startAngle,
float stopAngle) VTK_OVERRIDE;
169 float bounds[4]) VTK_OVERRIDE;
185 float bounds[4]) VTK_OVERRIDE;
192 void ComputeJustifiedStringBounds(const
char*
string,
float bounds[4]) VTK_OVERRIDE;
198 void DrawMathTextString(
float point[2], const
vtkStdString &
string) VTK_OVERRIDE;
219 void DrawPolyData(
float p[2],
float scale,
vtkPolyData* polyData,
225 void SetColor4(
unsigned char color[4]) VTK_OVERRIDE;
230 virtual
void SetColor(
unsigned char color[3]);
240 void SetPointSize(
float size) VTK_OVERRIDE;
245 void SetLineWidth(
float width) VTK_OVERRIDE;
250 void SetLineType(
int type) VTK_OVERRIDE;
270 void PushMatrix() VTK_OVERRIDE;
275 void PopMatrix() VTK_OVERRIDE;
281 void SetClipping(
int *x) VTK_OVERRIDE;
286 void EnableClipping(
bool enable) VTK_OVERRIDE;
296 void End() VTK_OVERRIDE;
314 void BufferIdModeEnd() VTK_OVERRIDE;
321 bool SetStringRendererToFreeType();
327 bool SetStringRendererToQt();
346 virtual
void ReleaseGraphicsResources(
vtkWindow *window);
350 ~vtkOpenGLContextDevice2D() VTK_OVERRIDE;
359 int GetNumberOfArcIterations(
float rX,
395 vtkOpenGLRenderWindow* RenderWindow;
398 vtkOpenGLContextDevice2D(const vtkOpenGLContextDevice2D &) VTK_DELETE_FUNCTION;
399 void operator=(const vtkOpenGLContextDevice2D &) VTK_DELETE_FUNCTION;
409 class vtkMarkerCacheObject
416 return this->Key ==
key;
420 std::list<vtkMarkerCacheObject> MarkerCache;
421 int MaximumMarkerCacheSize;
435 #endif //vtkOpenGLContextDevice2D_h
Wrapper around std::string to keep symbols short.
abstract specification for Viewports
Class for drawing 2D primitives using OpenGL 1.1+.
abstract specification for renderers
static vtkContextDevice2D * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
window superclass for vtkRenderWindow
virtual void DrawPoly(float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
Draw a poly line using the points - fastest code path due to memory layout of the coordinates...
a simple class to control print indentation
topologically and geometrically regular array of data
Abstract class for drawing 2D primitives.
Interface class for querying and using OpenGL extensions.
dynamic, self-adjusting array of unsigned char
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkWeakPointer< vtkRenderWindow > RenderWindow
2D array of ids, used for picking.
Interface for generating images and path data from string data, using multiple backends.
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
represent and manipulate 3x3 transformation matrices
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
String class that stores Unicode text.