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);
134 virtual void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
144 virtual void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
145 float startAngle,
float stopAngle)=0;
159 virtual void ComputeStringBounds(
const vtkStdString &
string,
160 float bounds[4]) = 0;
175 float bounds[4]) = 0;
182 virtual void ComputeJustifiedStringBounds(
const char*
string,
float bounds[4]) = 0;
188 virtual void DrawMathTextString(
float *point,
const vtkStdString &
string) = 0;
193 virtual bool MathTextIsSupported();
212 virtual void DrawPolyData(
float p[2],
float scale,
vtkPolyData* polyData,
220 virtual void ApplyPen(
vtkPen *pen);
228 vtkGetObjectMacro(Pen,
vtkPen);
236 virtual void ApplyBrush(
vtkBrush *brush);
263 virtual void SetColor4(
unsigned char color[4]) = 0;
274 virtual void SetTexture(
vtkImageData* image,
int properties) = 0;
279 virtual void SetPointSize(
float size) = 0;
284 virtual void SetLineWidth(
float width) = 0;
289 virtual void SetLineType(
int type) = 0;
294 virtual int GetWidth() {
return this->Geometry[0]; }
319 virtual void PushMatrix() = 0;
324 virtual void PopMatrix() = 0;
330 virtual void SetClipping(
int *x) = 0;
341 virtual void EnableClipping(
bool enable) = 0;
357 virtual bool GetBufferIdMode()
const;
375 virtual void BufferIdModeEnd();
379 this->ViewportSize =
size;
385 this->ViewportRect = rect;
420 #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.
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 DrawPolygon(float *, int)
Draw a polygon using the specified number of points.
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.