26 #ifndef vtkContextDevice2D_h
27 #define vtkContextDevice2D_h
29 #include "vtkRenderingContext2DModule.h"
63 virtual void DrawPoly(
float *
points,
int n,
64 unsigned char *colors = 0,
int nc_comps = 0) = 0;
72 virtual void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
73 int nc_comps = 0) = 0;
79 virtual void DrawPoints(
float *
points,
int n,
unsigned char* colors = 0,
80 int nc_comps = 0) = 0;
90 unsigned char *colors = 0,
int nc_comps = 0) = 0;
103 virtual void DrawMarkers(
int shape,
bool highlight,
float *
points,
int n,
104 unsigned char *colors = 0,
int nc_comps = 0);
132 virtual void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
142 virtual void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
157 virtual void ComputeStringBounds(
const vtkStdString &
string,
158 float bounds[4]) = 0;
173 float bounds[4]) = 0;
180 virtual void ComputeJustifiedStringBounds(
const char*
string,
float bounds[4]) = 0;
191 virtual bool MathTextIsSupported();
211 virtual void ApplyPen(
vtkPen *pen);
219 vtkGetObjectMacro(Pen,
vtkPen);
227 virtual void ApplyBrush(
vtkBrush *brush);
254 virtual void SetColor4(
unsigned char color[4]) = 0;
270 virtual void SetPointSize(
float size) = 0;
275 virtual void SetLineWidth(
float width) = 0;
280 virtual void SetLineType(
int type) = 0;
285 virtual int GetWidth() {
return this->Geometry[0]; }
310 virtual void PushMatrix() = 0;
315 virtual void PopMatrix() = 0;
321 virtual void SetClipping(
int *x) = 0;
332 virtual void EnableClipping(
bool enable) = 0;
348 virtual bool GetBufferIdMode()
const;
366 virtual void BufferIdModeEnd();
370 this->ViewportSize =
size;
376 this->ViewportRect = rect;
382 ~vtkContextDevice2D();
406 vtkContextDevice2D(const vtkContextDevice2D &) VTK_DELETE_FUNCTION;
407 void operator=(const vtkContextDevice2D &) VTK_DELETE_FUNCTION;
411 #endif //vtkContextDevice2D_h
Wrapper around std::string to keep symbols short.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for Viewports
virtual int GetHeight()
Get the width of the device in pixels.
virtual void Begin(vtkViewport *)
Begin drawing, pass in the viewport to set up the view.
virtual void DrawPolygon(float *, int)
Draw a polygon using the specified number of points.
virtual void DisableClipping()
Disable clipping of the display.
window superclass for vtkRenderWindow
provides a brush that fills shapes drawn by vtkContext2D.
a simple class to control print indentation
represent and manipulate 2D points
topologically and geometrically regular array of data
Some derived classes for the different vectors commonly used.
virtual void DrawQuadStrip(float *, int)
Draw a quad using the specified number of points.
Abstract class for drawing 2D primitives.
virtual int GetWidth()
Get the width of the device in pixels.
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)
Draw a quad using the specified number of points.
2D array of ids, used for picking.
virtual void End()
End drawing, clean up the view.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3x3 transformation matrices
String class that stores Unicode text.