25 #ifndef __vtkContextDevice2D_h
26 #define __vtkContextDevice2D_h
58 virtual void DrawPoly(
float *
points,
int n,
59 unsigned char *colors = 0,
int nc_comps = 0) = 0;
65 virtual void DrawPoints(
float *
points,
int n,
unsigned char* colors = 0,
66 int nc_comps = 0) = 0;
76 unsigned char *colors = 0,
int nc_comps = 0) = 0;
86 virtual void DrawMarkers(
int shape,
bool highlight,
float *
points,
int n,
87 unsigned char *colors = 0,
int nc_comps = 0);
106 virtual void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
115 virtual void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
128 virtual void ComputeStringBounds(
const vtkStdString &
string,
129 float bounds[4]) = 0;
142 float bounds[4]) = 0;
151 virtual bool MathTextIsSupported();
166 void ApplyPen(
vtkPen *pen);
198 virtual void SetColor4(
unsigned char color[4]) = 0;
210 virtual void SetPointSize(
float size) = 0;
213 virtual void SetLineWidth(
float width) = 0;
216 virtual void SetLineType(
int type) = 0;
219 virtual int GetWidth() {
return this->Geometry[0]; }
234 virtual void PushMatrix() = 0;
237 virtual void PopMatrix() = 0;
241 virtual void SetClipping(
int *
x) = 0;
248 virtual void EnableClipping(
bool enable) = 0;
258 virtual bool GetBufferIdMode()
const;
272 virtual void BufferIdModeEnd();
276 this->ViewportSize =
size;
281 this->ViewportRect = rect;
311 #endif //__vtkContextDevice2D_h
Wrapper around std::string to keep symbols short.
virtual void SetViewportRect(const vtkRecti &rect)
GLuint GLuint GLsizei GLenum type
abstract base class for most VTK objects
GLenum GLsizei GLenum GLenum const GLvoid * image
abstract specification for Viewports
GLenum GLenum GLenum GLenum GLenum scale
virtual void Begin(vtkViewport *)
virtual void DrawPolygon(float *, int)
GLint GLint GLint GLint GLint GLint y
virtual void DisableClipping()
#define vtkTypeMacro(thisClass, superclass)
window superclass for vtkRenderWindow
GLint GLint GLint GLint GLint x
provides a brush that fills shapes drawn by vtkContext2D.
virtual void PrintSelf(ostream &os, vtkIndent indent)
#define VTKRENDERINGCONTEXT2D_EXPORT
a simple class to control print indentation
represent and manipulate 2D points
topologically and geometrically regular array of data
GLint GLint GLsizei width
vtkAbstractContextBufferId * BufferId
virtual void DrawQuadStrip(float *, int)
Abstract class for drawing 2D primitives.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
represent text properties.
#define vtkGetObjectMacro(name, type)
virtual void SetViewportSize(const vtkVector2i &size)
virtual void DrawQuad(float *, int)
2D array of ids, used for picking.
GLsizei const GLfloat * points
represent and manipulate 3x3 transformation matrices
vtkTextProperty * TextProp
String class that stores Unicode text.