Go to the documentation of this file.
25 #ifndef vtkContextDevice2D_h
26 #define vtkContextDevice2D_h
61 unsigned char *colors = 0,
int nc_comps = 0) = 0;
69 virtual void DrawLines(
float *
f,
int n,
unsigned char *colors = 0,
70 int nc_comps = 0) = 0;
77 int nc_comps = 0) = 0;
87 unsigned char *colors = 0,
int nc_comps = 0) = 0;
98 unsigned char *colors = 0,
int nc_comps = 0);
140 float bounds[4]) = 0;
153 float bounds[4]) = 0;
230 virtual int GetWidth() {
return this->Geometry[0]; }
287 this->ViewportSize =
size;
292 this->ViewportRect = rect;
322 #endif //vtkContextDevice2D_h
provides a brush that fills shapes drawn by vtkContext2D.
represent and manipulate 2D points
virtual void ComputeStringBounds(const vtkStdString &string, float bounds[4])=0
virtual void DrawQuadStrip(float *, int)
#define vtkGetObjectMacro(name, type)
static vtkContextDevice2D * New()
virtual void PopMatrix()=0
virtual void DrawPoints(float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
virtual void BufferIdModeBegin(vtkAbstractContextBufferId *bufferId)
virtual void ComputeStringBounds(const vtkUnicodeString &string, float bounds[4])=0
void ApplyTextProp(vtkTextProperty *prop)
#define VTKRENDERINGCONTEXT2D_EXPORT
virtual void DrawQuad(float *, int)
virtual void MultiplyMatrix(vtkMatrix3x3 *m)=0
virtual void SetMatrix(vtkMatrix3x3 *m)=0
GLenum GLenum GLenum GLenum GLenum scale
virtual void DrawString(float *point, const vtkStdString &string)=0
virtual void SetColor4(unsigned char color[4])=0
#define vtkTypeMacro(thisClass, superclass)
virtual void SetViewportSize(const vtkVector2i &size)
abstract base class for most VTK objects
virtual bool GetBufferIdMode() const
GLint GLint GLint GLint GLint x
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetClipping(int *x)=0
GLsizei const GLfloat * points
virtual void PushMatrix()=0
represent and manipulate 3x3 transformation matrices
vtkAbstractContextBufferId * BufferId
window superclass for vtkRenderWindow
virtual void DrawImage(float p[2], float scale, vtkImageData *image)=0
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 SetLineType(int type)=0
virtual void SetPointSize(float size)=0
virtual void DrawPolygon(float *, int)
virtual void DisableClipping()
virtual bool MathTextIsSupported()
void ApplyBrush(vtkBrush *brush)
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
void ApplyPen(vtkPen *pen)
virtual void DrawImage(const vtkRectf &pos, vtkImageData *image)=0
virtual void BufferIdModeEnd()
virtual void GetMatrix(vtkMatrix3x3 *m)=0
abstract specification for Viewports
vtkTextProperty * TextProp
Abstract class for drawing 2D primitives.
represent text properties.
GLint GLint GLsizei width
virtual void DrawLines(float *f, int n, unsigned char *colors=0, int nc_comps=0)=0
GLint GLint GLint GLint GLint GLint y
virtual void DrawPointSprites(vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
virtual void SetTexture(vtkImageData *image, int properties)=0
virtual void DrawString(float *point, const vtkUnicodeString &string)=0
virtual void DrawMathTextString(float *point, const vtkStdString &string)=0
virtual void Begin(vtkViewport *)
virtual void SetViewportRect(const vtkRecti &rect)
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Wrapper around std::string to keep symbols short.
virtual void DrawEllipseWedge(float x, float y, float outRx, float outRy, float inRx, float inRy, float startAngle, float stopAngle)=0
virtual void SetLineWidth(float width)=0
GLuint GLuint GLsizei GLenum type
virtual void DrawMarkers(int shape, bool highlight, float *points, int n, unsigned char *colors=0, int nc_comps=0)
virtual void EnableClipping(bool enable)=0
GLenum GLsizei GLenum GLenum const GLvoid * image
virtual void DrawPoly(float *points, int n, unsigned char *colors=0, int nc_comps=0)=0