25 #ifndef vtkContextDevice2D_h
26 #define vtkContextDevice2D_h
60 virtual void DrawPoly(
float *
points,
int n,
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;
76 virtual void DrawPoints(
float *
points,
int n,
unsigned char* colors = 0,
77 int nc_comps = 0) = 0;
87 unsigned char *colors = 0,
int nc_comps = 0) = 0;
97 virtual void DrawMarkers(
int shape,
bool highlight,
float *
points,
int n,
98 unsigned char *colors = 0,
int nc_comps = 0);
117 virtual void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
126 virtual void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
139 virtual void ComputeStringBounds(
const vtkStdString &
string,
140 float bounds[4]) = 0;
153 float bounds[4]) = 0;
162 virtual bool MathTextIsSupported();
177 void ApplyPen(
vtkPen *pen);
183 vtkGetObjectMacro(Pen,
vtkPen);
209 virtual void SetColor4(
unsigned char color[4]) = 0;
221 virtual void SetPointSize(
float size) = 0;
224 virtual void SetLineWidth(
float width) = 0;
227 virtual void SetLineType(
int type) = 0;
230 virtual int GetWidth() {
return this->Geometry[0]; }
245 virtual void PushMatrix() = 0;
248 virtual void PopMatrix() = 0;
252 virtual void SetClipping(
int *x) = 0;
259 virtual void EnableClipping(
bool enable) = 0;
269 virtual bool GetBufferIdMode()
const;
283 virtual void BufferIdModeEnd();
287 this->ViewportSize =
size;
292 this->ViewportRect = rect;
322 #endif //vtkContextDevice2D_h
Wrapper around std::string to keep symbols short.
virtual void SetViewportRect(const vtkRecti &rect)
abstract base class for most VTK objects
abstract specification for Viewports
virtual void Begin(vtkViewport *)
virtual void DrawPolygon(float *, int)
virtual void DisableClipping()
window superclass for vtkRenderWindow
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
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.
virtual void SetViewportSize(const vtkVector2i &size)
virtual void DrawQuad(float *, int)
2D array of ids, used for picking.
represent and manipulate 3x3 transformation matrices
vtkTextProperty * TextProp
String class that stores Unicode text.