32 #ifndef __vtkOpenGLContextDevice2D_h
33 #define __vtkOpenGLContextDevice2D_h
60 virtual void DrawPoly(
float *
f,
int n,
unsigned char *colors = 0,
79 unsigned char* colors = 0,
int nc_comps = 0);
90 unsigned char *colors = 0,
int nc_comps = 0);
103 virtual
void DrawQuad(
float *
points,
int n);
106 virtual
void DrawQuadStrip(
float *points,
int n);
109 virtual
void DrawPolygon(
float *,
int);
118 virtual
void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
127 virtual
void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
128 float startAngle,
float stopAngle);
143 virtual
void ComputeStringBounds(const
vtkStdString &
string,
165 virtual
void DrawMathTextString(
float point[2], const
vtkStdString &
string);
177 virtual
void SetColor4(
unsigned char color[4]);
180 virtual
void SetColor(
unsigned char color[3]);
183 virtual
void SetTexture(
vtkImageData* image,
int properties = 0);
186 virtual
void SetPointSize(
float size);
189 virtual
void SetLineWidth(
float width);
192 virtual
void SetLineType(
int type);
204 virtual
void PushMatrix();
207 virtual
void PopMatrix();
211 virtual
void SetClipping(
int *x);
214 virtual
void EnableClipping(
bool enable);
231 virtual
void BufferIdModeEnd();
236 bool SetStringRendererToFreeType();
240 bool SetStringRendererToQt();
254 virtual
void ReleaseGraphicsResources(
vtkWindow *window);
259 virtual ~vtkOpenGLContextDevice2D();
266 int GetNumberOfArcIterations(
float rX,
294 vtkOpenGLRenderWindow* RenderWindow;
297 vtkOpenGLContextDevice2D(const vtkOpenGLContextDevice2D &);
298 void operator=(const vtkOpenGLContextDevice2D &);
307 vtkImageData *GetMarker(
int shape,
int size,
bool highlight);
309 class vtkMarkerCacheObject
316 return this->Key ==
key;
320 std::list<vtkMarkerCacheObject> MarkerCache;
321 int MaximumMarkerCacheSize;
331 #endif //__vtkOpenGLContextDevice2D_h
Wrapper around std::string to keep symbols short.
GLuint GLuint GLsizei GLenum type
GLenum GLsizei GLenum GLenum const GLvoid * image
abstract specification for Viewports
GLenum GLenum GLenum GLenum GLenum scale
#define vtkGetMacro(name, type)
Class for drawing 2D primitives using OpenGL 1.1+.
abstract specification for renderers
virtual void DrawPoints(float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
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.
GLint GLint GLsizei GLsizei height
window superclass for vtkRenderWindow
GLint GLint GLint GLint GLint x
#define VTKRENDERINGCONTEXT2D_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
GLint GLint GLsizei width
Abstract class for drawing 2D primitives.
Interface class for querying and using OpenGL extensions.
#define vtkGetObjectMacro(name, type)
vtkWeakPointer< vtkRenderWindow > RenderWindow
2D array of ids, used for picking.
GLsizei const GLfloat * points
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 DrawPointSprites(vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
String class that stores Unicode text.
#define vtkSetMacro(name, type)