32 #ifndef __vtkContext2D_h
33 #define __vtkContext2D_h
80 bool GetBufferIdMode()
const;
89 void BufferIdModeEnd();
92 void DrawLine(
float x1,
float y1,
float x2,
float y2);
95 void DrawLine(
float p[4]);
102 void DrawPoly(
float *
x,
float *
y,
int n);
111 void DrawPoly(
float *
points,
int n);
119 void DrawPoly(
float *
points,
int n,
120 unsigned char *colors,
int nc_comps);
124 void DrawPoint(
float x,
float y);
127 void DrawPoints(
float *
x,
float *
y,
int n);
136 void DrawPoints(
float *
points,
int n);
152 unsigned char *colors,
int nc_comps);
167 virtual void DrawMarkers(
int shape,
bool highlight,
float *
points,
int n,
168 unsigned char *colors,
int nc_comps);
169 virtual void DrawMarkers(
int shape,
bool highlight,
float *
points,
int n);
176 void DrawRect(
float x,
float y,
float w,
float h);
181 void DrawQuad(
float x1,
float y1,
float x2,
float y2,
182 float x3,
float y3,
float x4,
float y4);
183 void DrawQuad(
float *
p);
189 void DrawQuadStrip(
float *
p,
int n);
194 void DrawPolygon(
float *
x,
float *
y,
int n);
203 void DrawPolygon(
float *
points,
int n);
207 void DrawEllipse(
float x,
float y,
float rx,
float ry);
215 void DrawWedge(
float x,
float y,
float outRadius,
227 void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
245 void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
float startAngle,
268 void DrawStringRect(
vtkPoints2D *rect,
const char*
string);
278 void DrawString(
float x,
float y,
const char*
string);
287 void ComputeStringBounds(
const vtkStdString &
string,
float bounds[4]);
290 void ComputeStringBounds(
const char*
string,
vtkPoints2D *bounds);
291 void ComputeStringBounds(
const char*
string,
float bounds[4]);
312 void DrawMathTextString(
float x,
float y,
const vtkStdString &
string);
314 void DrawMathTextString(
float x,
float y,
const char *
string);
326 void DrawMathTextString(
float x,
float y,
const vtkStdString &
string,
329 const char *fallback);
330 void DrawMathTextString(
float x,
float y,
const char *
string,
331 const char *fallback);
336 bool MathTextIsSupported();
342 void ApplyPen(
vtkPen *pen);
394 static int FloatToInt(
float x);
415 vtkContext2D(const vtkContext2D &);
416 void operator=(const vtkContext2D &);
424 inline
int vtkContext2D::FloatToInt(
float x)
434 float tol = 0.00390625;
435 tol = (x >= 0 ? tol : -tol);
436 return static_cast<int>(x + tol);
439 #endif //__vtkContext2D_h
Wrapper around std::string to keep symbols short.
GLuint GLenum GLenum transform
abstract base class for most VTK objects
GLenum GLsizei GLenum GLenum const GLvoid * image
GLenum GLenum GLenum GLenum GLenum scale
GLdouble GLdouble GLdouble r
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
GLint GLint GLsizei GLsizei height
window superclass for vtkRenderWindow
GLint GLint GLint GLint GLint x
Class for drawing 2D primitives to a graphical context.
GLubyte GLubyte GLubyte GLubyte w
provides a brush that fills shapes drawn by vtkContext2D.
virtual void PrintSelf(ostream &os, vtkIndent indent)
#define VTKRENDERINGCONTEXT2D_EXPORT
a simple class to control print indentation
represent and manipulate 2D points
topologically and geometrically regular array of data
GLint GLint GLsizei width
Abstract class for drawing 2D primitives.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
represent text properties.
#define vtkGetObjectMacro(name, type)
dynamic, self-adjusting array of unsigned char
2D array of ids, used for picking.
GLsizei const GLfloat * points
GLfloat GLfloat GLfloat GLfloat h
String class that stores Unicode text.
Class for drawing 3D primitives to a graphical context.