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);
193 virtual void SetColor(
unsigned char color[3]);
249 bool SetStringRendererToFreeType();
253 bool SetStringRendererToQt();
267 virtual void ReleaseGraphicsResources(
vtkWindow *window);
285 int GetNumberOfArcIterations(
float rX,
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);
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.
virtual void SetMatrix(vtkMatrix3x3 *m)=0
GLuint GLuint GLsizei GLenum type
represent and manipulate 4x4 transformation matrices
GLenum GLsizei GLenum GLenum const GLvoid * image
virtual void SetClipping(int *x)=0
virtual void BufferIdModeEnd()
abstract specification for Viewports
GLenum GLenum GLenum GLenum GLenum scale
#define vtkGetMacro(name, type)
Class for drawing 2D primitives using OpenGL 1.1+.
virtual void BufferIdModeBegin(vtkAbstractContextBufferId *bufferId)
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 Begin(vtkViewport *)
virtual void DrawPolygon(float *, int)
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.
virtual void SetColor4(unsigned char color[4])=0
GLint GLint GLsizei GLsizei height
window superclass for vtkRenderWindow
GLint GLint GLint GLint GLint x
virtual void EnableClipping(bool enable)=0
virtual void SetLineWidth(float width)=0
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
virtual void DrawQuadStrip(float *, int)
Abstract class for drawing 2D primitives.
virtual void PopMatrix()=0
virtual void SetTexture(vtkImageData *image, int properties)=0
virtual void DrawMathTextString(float *point, const vtkStdString &string)=0
Interface class for querying and using OpenGL extensions.
virtual void SetPointSize(float size)=0
#define vtkGetObjectMacro(name, type)
virtual void DrawQuad(float *, int)
2D array of ids, used for picking.
virtual void DrawEllipticArc(float x, float y, float rX, float rY, float startAngle, float stopAngle)=0
virtual void MultiplyMatrix(vtkMatrix3x3 *m)=0
virtual void DrawString(float *point, const vtkStdString &string)=0
virtual void DrawEllipseWedge(float x, float y, float outRx, float outRy, float inRx, float inRy, float startAngle, float stopAngle)=0
GLsizei const GLfloat * points
virtual void GetMatrix(vtkMatrix3x3 *m)=0
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void ComputeStringBounds(const vtkStdString &string, float bounds[4])=0
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
virtual void PushMatrix()=0
virtual void DrawImage(float p[2], float scale, vtkImageData *image)=0
represent and manipulate 3x3 transformation matrices
virtual void SetLineType(int type)=0
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)