30 #ifndef vtkOpenGLContextDevice2D_h 31 #define vtkOpenGLContextDevice2D_h 33 #include "vtkRenderingContextOpenGL2Module.h" 67 void DrawPoly(
float *f,
int n,
unsigned char *colors = 0,
68 int nc_comps = 0) VTK_OVERRIDE;
76 void DrawLines(
float *f,
int n,
unsigned char *colors = 0,
77 int nc_comps = 0) VTK_OVERRIDE;
84 void DrawPoints(
float *
points,
int n,
unsigned char* colors = 0,
85 int nc_comps = 0) VTK_OVERRIDE;
93 void DrawPointSprites(
vtkImageData *sprite,
float *points,
int n,
94 unsigned char* colors = 0,
int nc_comps = 0) VTK_OVERRIDE;
107 void DrawMarkers(
int shape,
bool highlight,
float *points,
int n,
108 unsigned char *colors = 0,
int nc_comps = 0) VTK_OVERRIDE;
117 vtkGetMacro(MaximumMarkerCacheSize,
int)
123 void DrawQuad(
float *points,
int n) VTK_OVERRIDE;
128 void DrawQuadStrip(
float *points,
int n) VTK_OVERRIDE;
133 void DrawPolygon(
float *,
int) VTK_OVERRIDE;
146 void DrawEllipseWedge(
float x,
float y,
float outRx,
float outRy,
148 float stopAngle) VTK_OVERRIDE;
156 void DrawEllipticArc(
float x,
float y,
float rX,
float rY,
157 float startAngle,
float stopAngle) VTK_OVERRIDE;
174 float bounds[4]) VTK_OVERRIDE;
190 float bounds[4]) VTK_OVERRIDE;
197 void ComputeJustifiedStringBounds(const
char*
string,
float bounds[4]) VTK_OVERRIDE;
203 void DrawMathTextString(
float point[2], const
vtkStdString &
string) VTK_OVERRIDE;
222 void DrawPolyData(
float p[2],
float scale,
vtkPolyData* polyData,
228 void SetColor4(
unsigned char color[4]) VTK_OVERRIDE;
233 virtual
void SetColor(
unsigned char color[3]);
243 void SetPointSize(
float size) VTK_OVERRIDE;
248 void SetLineWidth(
float width) VTK_OVERRIDE;
253 void SetLineType(
int type) VTK_OVERRIDE;
273 void PushMatrix() VTK_OVERRIDE;
278 void PopMatrix() VTK_OVERRIDE;
284 void SetClipping(
int *x) VTK_OVERRIDE;
289 void EnableClipping(
bool enable) VTK_OVERRIDE;
299 void End() VTK_OVERRIDE;
317 void BufferIdModeEnd() VTK_OVERRIDE;
324 bool SetStringRendererToFreeType();
330 bool SetStringRendererToQt();
349 virtual
void ReleaseGraphicsResources(
vtkWindow *window);
361 ~vtkOpenGLContextDevice2D() VTK_OVERRIDE;
370 int GetNumberOfArcIterations(
float rX,
398 CellArrayHelper* PolyDataImpl;
404 vtkOpenGLRenderWindow* RenderWindow;
407 void ReadyLinesCBOProgram();
409 void ReadyLinesBOProgram();
411 void ReadyVCBOProgram();
413 void ReadyVBOProgram();
415 void ReadyVTBOProgram();
417 void ReadySCBOProgram();
419 void ReadySBOProgram();
424 unsigned char *coolors,
int nc,
426 void CoreDrawTriangles(std::
vector<
float> &tverts,
unsigned char* colors = NULL,
429 unsigned short LinePattern;
436 void DrawMarkersGL2PS(
int shape,
bool highlight,
float *points,
int n,
437 unsigned char *colors,
int nc_comps);
438 void DrawCrossMarkersGL2PS(
bool highlight,
float *points,
int n,
439 unsigned char *colors,
int nc_comps);
440 void DrawPlusMarkersGL2PS(
bool highlight,
float *points,
int n,
441 unsigned char *colors,
int nc_comps);
442 void DrawSquareMarkersGL2PS(
bool highlight,
float *points,
int n,
443 unsigned char *colors,
int nc_comps);
444 void DrawCircleMarkersGL2PS(
bool highlight,
float *points,
int n,
445 unsigned char *colors,
int nc_comps);
446 void DrawDiamondMarkersGL2PS(
bool highlight,
float *points,
int n,
447 unsigned char *colors,
int nc_comps);
455 void DrawImageGL2PS(
float p[2],
float scale,
vtkImageData *image);
463 void DrawCircleGL2PS(
float x,
float y,
float rX,
float rY);
464 void DrawWedgeGL2PS(
float x,
float y,
float outRx,
float outRy,
465 float inRx,
float inRy);
471 void AddEllipseToPath(
vtkPath *path,
float x,
float y,
float rx,
float ry,
477 void TransformPath(
vtkPath *path) const;
482 void TransformPoint(
float &x,
float &y) const;
487 void TransformSize(
float &dx,
float &dy) const;
490 vtkOpenGLContextDevice2D(const vtkOpenGLContextDevice2D &) VTK_DELETE_FUNCTION;
491 void operator=(const vtkOpenGLContextDevice2D &) VTK_DELETE_FUNCTION;
501 class vtkMarkerCacheObject
508 return this->Key ==
key;
518 std::list<vtkMarkerCacheObject> MarkerCache;
519 int MaximumMarkerCacheSize;
529 #endif //vtkOpenGLContextDevice2D_h
Wrapper around std::string to keep symbols short.
represent and manipulate 4x4 transformation matrices
concrete dataset representing a path defined by Bezier curves.
abstract specification for Viewports
Class for drawing 2D primitives using OpenGL 1.1+.
abstract specification for renderers
static vtkContextDevice2D * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
base class for classes that render supplied text to an image.
window superclass for vtkRenderWindow
virtual void DrawPoly(float *points, int n, unsigned char *colors=0, int nc_comps=0)=0
Draw a poly line using the points - fastest code path due to memory layout of the coordinates...
a simple class to control print indentation
topologically and geometrically regular array of data
Abstract class for drawing 2D primitives.
Interface class for querying and using OpenGL extensions.
dynamic, self-adjusting array of unsigned char
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
2D array of ids, used for picking.
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
represent and manipulate 3x3 transformation matrices
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
String class that stores Unicode text.
The ShaderProgram uses one or more Shader objects.