29 #ifndef vtkContextDevice2D_h 30 #define vtkContextDevice2D_h 32 #include "vtkRenderingContext2DModule.h" 68 virtual void DrawPoly(
float *
points,
int n,
69 unsigned char *colors =
nullptr,
int nc_comps = 0) = 0;
77 virtual void DrawLines(
float *f,
int n,
unsigned char *colors =
nullptr,
78 int nc_comps = 0) = 0;
84 virtual void DrawPoints(
float *
points,
int n,
unsigned char* colors =
nullptr,
85 int nc_comps = 0) = 0;
95 unsigned char *colors =
nullptr,
int nc_comps = 0) = 0;
108 virtual void DrawMarkers(
int shape,
bool highlight,
float *
points,
int n,
109 unsigned char *colors =
nullptr,
int nc_comps = 0);
125 virtual void DrawPolygon(
float *p,
int n) { this->DrawColoredPolygon(p, n); }
126 virtual void DrawColoredPolygon(
float *
points,
int numPoints,
127 unsigned char *colors =
nullptr,
142 virtual void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
152 virtual void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
153 float startAngle,
float stopAngle)=0;
167 virtual void ComputeStringBounds(
const vtkStdString &
string,
168 float bounds[4]) = 0;
183 float bounds[4]) = 0;
190 virtual void ComputeJustifiedStringBounds(
const char*
string,
float bounds[4]) = 0;
196 virtual void DrawMathTextString(
float *point,
const vtkStdString &
string) = 0;
201 virtual bool MathTextIsSupported();
235 virtual void DrawPolyData(
float p[2],
float scale,
vtkPolyData* polyData,
243 virtual void ApplyPen(
vtkPen *pen);
251 vtkGetObjectMacro(Pen,
vtkPen);
259 virtual void ApplyBrush(
vtkBrush *brush);
286 virtual void SetColor4(
unsigned char color[4]) = 0;
297 virtual void SetTexture(
vtkImageData* image,
int properties) = 0;
302 virtual void SetPointSize(
float size) = 0;
307 virtual void SetLineWidth(
float width) = 0;
312 virtual void SetLineType(
int type) = 0;
317 virtual int GetWidth() {
return this->Geometry[0]; }
342 virtual void PushMatrix() = 0;
347 virtual void PopMatrix() = 0;
353 virtual void SetClipping(
int *x) = 0;
364 virtual void EnableClipping(
bool enable) = 0;
380 virtual bool GetBufferIdMode()
const;
398 virtual void BufferIdModeEnd();
402 this->ViewportSize =
size;
408 this->ViewportRect = rect;
443 #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.
vtkVector2i ViewportSize
Store the size of the total viewport.
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
vtkAbstractContextBufferId * BufferId
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.
vtkRecti ViewportRect
Store our origin and size in the total viewport.
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
vtkTextProperty * TextProp
String class that stores Unicode text.