|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   26 #ifndef vtkContextDevice2D_h 
   27 #define vtkContextDevice2D_h 
   31 #include "vtkRenderingContext2DModule.h"  
   65   virtual void DrawPoly(
 
   66     float* 
points, 
int n, 
unsigned char* colors = 
nullptr, 
int nc_comps = 0) = 0;
 
   74   virtual void DrawLines(
float* f, 
int n, 
unsigned char* colors = 
nullptr, 
int nc_comps = 0) = 0;
 
   80   virtual void DrawPoints(
 
   81     float* 
points, 
int n, 
unsigned char* colors = 
nullptr, 
int nc_comps = 0) = 0;
 
   91     unsigned char* colors = 
nullptr, 
int nc_comps = 0) = 0;
 
  104   virtual void DrawMarkers(
int shape, 
bool highlight, 
float* 
points, 
int n,
 
  105     unsigned char* colors = 
nullptr, 
int nc_comps = 0);
 
  121   virtual void DrawPolygon(
float* p, 
int n) { this->DrawColoredPolygon(p, n); }
 
  122   virtual void DrawColoredPolygon(
 
  123     float* 
points, 
int numPoints, 
unsigned char* colors = 
nullptr, 
int nc_comps = 0);
 
  137   virtual void DrawEllipseWedge(
float x, 
float y, 
float outRx, 
float outRy, 
float inRx, 
float inRy,
 
  146   virtual void DrawEllipticArc(
 
  147     float x, 
float y, 
float rX, 
float rY, 
float startAngle, 
float stopAngle) = 0;
 
  161   virtual void ComputeStringBounds(
const vtkStdString& 
string, 
float bounds[4]) = 0;
 
  175   virtual void ComputeStringBounds(
const vtkUnicodeString& 
string, 
float bounds[4]) = 0;
 
  182   virtual void ComputeJustifiedStringBounds(
const char* 
string, 
float bounds[4]) = 0;
 
  193   virtual bool MathTextIsSupported();
 
  227   virtual void DrawPolyData(
 
  235   virtual void ApplyPen(
vtkPen* pen);
 
  243   vtkGetObjectMacro(Pen, 
vtkPen);
 
  251   virtual void ApplyBrush(
vtkBrush* brush);
 
  278   virtual void SetColor4(
unsigned char color[4]) = 0;
 
  295   virtual void SetPointSize(
float size) = 0;
 
  300   virtual void SetLineWidth(
float width) = 0;
 
  305   virtual void SetLineType(
int type) = 0;
 
  310   virtual int GetWidth() { 
return this->Geometry[0]; }
 
  335   virtual void PushMatrix() = 0;
 
  340   virtual void PopMatrix() = 0;
 
  346   virtual void SetClipping(
int* x) = 0;
 
  357   virtual void EnableClipping(
bool enable) = 0;
 
  373   virtual bool GetBufferIdMode() 
const;
 
  391   virtual void BufferIdModeEnd();
 
  397   vtkGetMacro(ViewportRect, 
vtkRecti);
 
  429 #endif // vtkContextDevice2D_h 
  
provides a brush that fills shapes drawn by vtkContext2D.
represent and manipulate 2D points
virtual void DrawQuadStrip(float *, int)
Draw a quad using the specified number of points.
virtual int GetHeight()
Get the width of the device in pixels.
virtual void End()
End drawing, clean up the view.
virtual void DrawQuad(float *, int)
Draw a quad using the specified number of points.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
dynamic, self-adjusting array of unsigned char
virtual void SetViewportSize(const vtkVector2i &size)
abstract base class for most VTK objects
vtkRecti ViewportRect
Store our origin and size in the total viewport.
represent and manipulate 3x3 transformation matrices
vtkAbstractContextBufferId * BufferId
window superclass for vtkRenderWindow
virtual int GetWidth()
Get the width of the device in pixels.
virtual void DrawPolygon(float *p, int n)
Draw a polygon using the specified number of points.
2D array of ids, used for picking.
virtual void DisableClipping()
Disable clipping of the display.
vtkVector2i ViewportSize
Store the size of the total viewport.
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for Viewports
vtkTextProperty * TextProp
Abstract class for drawing 2D primitives.
represent text properties.
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 SetViewportRect(const vtkRecti &rect)
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Some derived classes for the different vectors commonly used.
Wrapper around std::string to keep symbols short.