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,
155 float startAngle,
float stopAngle);
171 virtual
void ComputeStringBounds(const
vtkStdString &
string,
195 virtual
void ComputeJustifiedStringBounds(const
char*
string,
float bounds[4]);
201 virtual
void DrawMathTextString(
float point[2], const
vtkStdString &
string);
219 virtual
void SetColor4(
unsigned char color[4]);
224 virtual
void SetColor(
unsigned char color[3]);
229 virtual
void SetTexture(
vtkImageData* image,
int properties = 0);
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);
344 virtual ~vtkOpenGLContextDevice2D();
353 int GetNumberOfArcIterations(
float rX,
394 vtkOpenGLRenderWindow* RenderWindow;
397 vtkOpenGLContextDevice2D(const vtkOpenGLContextDevice2D &) VTK_DELETE_FUNCTION;
398 void operator=(const vtkOpenGLContextDevice2D &) VTK_DELETE_FUNCTION;
408 vtkImageData *GetMarker(
int shape,
int size,
bool highlight);
410 class vtkMarkerCacheObject
417 return this->Key ==
key;
421 std::list<vtkMarkerCacheObject> MarkerCache;
422 int MaximumMarkerCacheSize;
432 #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()
virtual void DrawPoints(float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
Draw a series of points - fastest code path due to memory layout of the coordinates.
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.
base class for classes that render supplied text to an image.
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkWeakPointer< vtkRenderWindow > RenderWindow
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.
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
represent and manipulate 3x3 transformation matrices
virtual void DrawLines(float *f, int n, unsigned char *colors=0, int nc_comps=0)=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)=0
Draw a series of point sprites, images centred at the points supplied.
String class that stores Unicode text.