26 #ifndef vtkContextDevice2D_h 27 #define vtkContextDevice2D_h 29 #include "vtkRenderingContext2DModule.h" 65 virtual void DrawPoly(
float *
points,
int n,
66 unsigned char *colors = 0,
int nc_comps = 0) = 0;
74 virtual void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
75 int nc_comps = 0) = 0;
81 virtual void DrawPoints(
float *
points,
int n,
unsigned char* colors = 0,
82 int nc_comps = 0) = 0;
92 unsigned char *colors = 0,
int nc_comps = 0) = 0;
105 virtual void DrawMarkers(
int shape,
bool highlight,
float *
points,
int n,
106 unsigned char *colors = 0,
int nc_comps = 0);
122 virtual void DrawPolygon(
float *p,
int n) { this->DrawColoredPolygon(p, n); }
123 virtual void DrawColoredPolygon(
float *
points,
int numPoints,
124 unsigned char *colors =
nullptr,
139 virtual void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
149 virtual void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
164 virtual void ComputeStringBounds(
const vtkStdString &
string,
165 float bounds[4]) = 0;
180 float bounds[4]) = 0;
187 virtual void ComputeJustifiedStringBounds(
const char*
string,
float bounds[4]) = 0;
198 virtual bool MathTextIsSupported();
240 virtual void ApplyPen(
vtkPen *pen);
248 vtkGetObjectMacro(Pen,
vtkPen);
256 virtual void ApplyBrush(
vtkBrush *brush);
283 virtual void SetColor4(
unsigned char color[4]) = 0;
299 virtual void SetPointSize(
float size) = 0;
304 virtual void SetLineWidth(
float width) = 0;
309 virtual void SetLineType(
int type) = 0;
314 virtual int GetWidth() {
return this->Geometry[0]; }
339 virtual void PushMatrix() = 0;
344 virtual void PopMatrix() = 0;
350 virtual void SetClipping(
int *x) = 0;
361 virtual void EnableClipping(
bool enable) = 0;
377 virtual bool GetBufferIdMode()
const;
395 virtual void BufferIdModeEnd();
399 this->ViewportSize =
size;
405 this->ViewportRect = rect;
440 #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 void DrawPolygon(float *p, int n)
Draw a polygon using the specified number of points.
virtual int GetHeight()
Get the width of the device in pixels.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void Begin(vtkViewport *)
Begin drawing, pass in the viewport to set up the view.
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.
dynamic, self-adjusting array of unsigned char
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.