32 #ifndef vtkOpenGLContextDevice2D_h
33 #define vtkOpenGLContextDevice2D_h
60 virtual void DrawPoly(
float *f,
int n,
unsigned char *colors = 0,
68 virtual void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
87 unsigned char* colors = 0,
int nc_comps = 0);
98 unsigned char *colors = 0,
int nc_comps = 0);
106 vtkSetMacro(MaximumMarkerCacheSize,
int)
107 vtkGetMacro(MaximumMarkerCacheSize,
int)
111 virtual
void DrawQuad(
float *
points,
int n);
114 virtual
void DrawQuadStrip(
float *points,
int n);
117 virtual
void DrawPolygon(
float *,
int);
126 virtual
void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
135 virtual
void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
136 float startAngle,
float stopAngle);
151 virtual
void ComputeStringBounds(const
vtkStdString &
string,
173 virtual
void DrawMathTextString(
float point[2], const
vtkStdString &
string);
185 virtual
void SetColor4(
unsigned char color[4]);
188 virtual
void SetColor(
unsigned char color[3]);
191 virtual
void SetTexture(
vtkImageData* image,
int properties = 0);
194 virtual
void SetPointSize(
float size);
197 virtual
void SetLineWidth(
float width);
200 virtual
void SetLineType(
int type);
212 virtual
void PushMatrix();
215 virtual
void PopMatrix();
219 virtual
void SetClipping(
int *x);
222 virtual
void EnableClipping(
bool enable);
239 virtual
void BufferIdModeEnd();
244 bool SetStringRendererToFreeType();
248 bool SetStringRendererToQt();
262 virtual
void ReleaseGraphicsResources(
vtkWindow *window);
267 virtual ~vtkOpenGLContextDevice2D();
274 int GetNumberOfArcIterations(
float rX,
302 vtkOpenGLRenderWindow* RenderWindow;
305 vtkOpenGLContextDevice2D(const vtkOpenGLContextDevice2D &);
306 void operator=(const vtkOpenGLContextDevice2D &);
315 vtkImageData *GetMarker(
int shape,
int size,
bool highlight);
317 class vtkMarkerCacheObject
324 return this->Key ==
key;
328 std::list<vtkMarkerCacheObject> MarkerCache;
329 int MaximumMarkerCacheSize;
339 #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
virtual void DrawMarkers(int shape, bool highlight, float *points, int n, unsigned char *colors=0, int nc_comps=0)
uses Qt to render the supplied text to an image.
window superclass for vtkRenderWindow
#define VTKRENDERINGCONTEXTOPENGL_EXPORT
virtual void DrawPoly(float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
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.
vtkWeakPointer< vtkRenderWindow > RenderWindow
2D array of ids, used for picking.
virtual void PrintSelf(ostream &os, vtkIndent indent)
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
virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
String class that stores Unicode text.