32 #ifndef vtkOpenGLContextDevice2D_h 33 #define vtkOpenGLContextDevice2D_h 35 #include "vtkRenderingContextOpenGL2Module.h" 65 virtual void DrawPoly(
float *f,
int n,
unsigned char *colors = 0,
73 virtual void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
92 unsigned char* colors = 0,
int nc_comps = 0);
103 unsigned char *colors = 0,
int nc_comps = 0);
116 virtual
void DrawQuad(
float *
points,
int n);
119 virtual
void DrawQuadStrip(
float *points,
int n);
122 virtual
void DrawPolygon(
float *,
int);
131 virtual
void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
140 virtual
void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
141 float startAngle,
float stopAngle);
156 virtual
void ComputeStringBounds(const
vtkStdString &
string,
178 virtual
void DrawMathTextString(
float point[2], const
vtkStdString &
string);
190 virtual
void SetColor4(
unsigned char color[4]);
193 virtual
void SetColor(
unsigned char color[3]);
196 virtual
void SetTexture(
vtkImageData* image,
int properties = 0);
199 virtual
void SetPointSize(
float size);
202 virtual
void SetLineWidth(
float width);
205 virtual
void SetLineType(
int type);
217 virtual
void PushMatrix();
220 virtual
void PopMatrix();
224 virtual
void SetClipping(
int *x);
227 virtual
void EnableClipping(
bool enable);
244 virtual
void BufferIdModeEnd();
249 bool SetStringRendererToFreeType();
253 bool SetStringRendererToQt();
267 virtual
void ReleaseGraphicsResources(
vtkWindow *window);
278 virtual ~vtkOpenGLContextDevice2D();
285 int GetNumberOfArcIterations(
float rX,
310 vtkOpenGLRenderWindow* RenderWindow;
313 void ReadyVCBOProgram();
315 void ReadyVBOProgram();
317 void ReadyVTBOProgram();
319 void ReadySCBOProgram();
321 void ReadySBOProgram();
326 unsigned char *coolors,
int nc,
328 void CoreDrawTriangles(std::
vector<
float> &tverts);
331 vtkOpenGLContextDevice2D(const vtkOpenGLContextDevice2D &);
332 void operator=(const vtkOpenGLContextDevice2D &);
341 vtkImageData *GetMarker(
int shape,
int size,
bool highlight);
343 class vtkMarkerCacheObject
350 return this->Key ==
key;
357 std::list<vtkMarkerCacheObject> MarkerCache;
358 int MaximumMarkerCacheSize;
368 #endif //vtkOpenGLContextDevice2D_h
Wrapper around std::string to keep symbols short.
represent and manipulate 4x4 transformation matrices
abstract specification for Viewports
#define vtkGetMacro(name, type)
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
#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.
window superclass for vtkRenderWindow
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.
#define vtkGetObjectMacro(name, type)
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.
The ShaderProgram uses one or more Shader objects.
#define vtkSetMacro(name, type)