|
virtual int | IsA (const char *type) |
|
vtkOpenGL2ContextDevice2D * | NewInstance () const |
|
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | DrawImage (float p[2], float scale, vtkImageData *image) |
|
void | DrawImage (const vtkRectf &pos, vtkImageData *image) |
|
virtual void | ReleaseGraphicsResources (vtkWindow *window) |
|
|
virtual void | DrawPointSprites (vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0) |
|
vtkOpenGLContextDevice2D * | NewInstance () const |
|
virtual void | DrawQuad (float *points, int n) |
|
virtual void | DrawQuadStrip (float *points, int n) |
|
virtual void | DrawPolygon (float *, int) |
|
virtual void | DrawString (float *point, const vtkStdString &string) |
|
virtual void | DrawString (float *point, const vtkUnicodeString &string) |
|
virtual void | DrawMathTextString (float point[2], const vtkStdString &string) |
|
void | DrawImage (const vtkRectf &pos, vtkImageData *image) |
|
virtual void | SetColor4 (unsigned char color[4]) |
|
virtual void | SetColor (unsigned char color[3]) |
|
virtual void | SetTexture (vtkImageData *image, int properties=0) |
|
virtual void | SetPointSize (float size) |
|
virtual void | SetLineWidth (float width) |
|
virtual void | SetLineType (int type) |
|
virtual void | MultiplyMatrix (vtkMatrix3x3 *m) |
|
virtual void | SetMatrix (vtkMatrix3x3 *m) |
|
virtual void | GetMatrix (vtkMatrix3x3 *m) |
|
virtual void | PushMatrix () |
|
virtual void | PopMatrix () |
|
virtual void | SetClipping (int *x) |
|
virtual void | EnableClipping (bool enable) |
|
virtual void | Begin (vtkViewport *viewport) |
|
virtual void | End () |
|
virtual void | BufferIdModeBegin (vtkAbstractContextBufferId *bufferId) |
|
virtual void | BufferIdModeEnd () |
|
bool | SetStringRendererToFreeType () |
|
bool | SetStringRendererToQt () |
|
bool | HasGLSL () |
|
vtkOpenGLContextDevice2D * | NewInstance () const |
|
virtual void | DrawQuad (float *points, int n) |
|
virtual void | DrawQuadStrip (float *points, int n) |
|
virtual void | DrawPolygon (float *, int) |
|
virtual void | DrawString (float *point, const vtkStdString &string) |
|
virtual void | DrawString (float *point, const vtkUnicodeString &string) |
|
virtual void | DrawMathTextString (float point[2], const vtkStdString &string) |
|
void | DrawImage (const vtkRectf &pos, vtkImageData *image) |
|
virtual void | SetColor4 (unsigned char color[4]) |
|
virtual void | SetColor (unsigned char color[3]) |
|
virtual void | SetTexture (vtkImageData *image, int properties=0) |
|
virtual void | SetPointSize (float size) |
|
virtual void | SetLineWidth (float width) |
|
virtual void | SetLineType (int type) |
|
virtual void | MultiplyMatrix (vtkMatrix3x3 *m) |
|
virtual void | SetMatrix (vtkMatrix3x3 *m) |
|
virtual void | GetMatrix (vtkMatrix3x3 *m) |
|
virtual void | PushMatrix () |
|
virtual void | PopMatrix () |
|
virtual void | SetClipping (int *x) |
|
virtual void | EnableClipping (bool enable) |
|
virtual void | Begin (vtkViewport *viewport) |
|
virtual void | End () |
|
virtual void | BufferIdModeBegin (vtkAbstractContextBufferId *bufferId) |
|
virtual void | BufferIdModeEnd () |
|
bool | SetStringRendererToFreeType () |
|
bool | SetStringRendererToQt () |
|
bool | HasGLSL () |
|
virtual void | DrawPoly (float *f, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | DrawLines (float *f, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | DrawPoints (float *points, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | DrawMarkers (int shape, bool highlight, float *points, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | SetMaximumMarkerCacheSize (int) |
|
virtual int | GetMaximumMarkerCacheSize () |
|
virtual void | DrawEllipseWedge (float x, float y, float outRx, float outRy, float inRx, float inRy, float startAngle, float stopAngle) |
|
virtual void | DrawEllipticArc (float x, float y, float rX, float rY, float startAngle, float stopAngle) |
|
virtual void | ComputeStringBounds (const vtkStdString &string, float bounds[4]) |
|
virtual void | ComputeStringBounds (const vtkUnicodeString &string, float bounds[4]) |
|
virtual vtkOpenGLRenderWindow * | GetRenderWindow () |
|
virtual void | DrawPoly (float *f, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | DrawLines (float *f, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | DrawPoints (float *points, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | DrawMarkers (int shape, bool highlight, float *points, int n, unsigned char *colors=0, int nc_comps=0) |
|
virtual void | SetMaximumMarkerCacheSize (int) |
|
virtual int | GetMaximumMarkerCacheSize () |
|
virtual void | DrawEllipseWedge (float x, float y, float outRx, float outRy, float inRx, float inRy, float startAngle, float stopAngle) |
|
virtual void | DrawEllipticArc (float x, float y, float rX, float rY, float startAngle, float stopAngle) |
|
virtual void | ComputeStringBounds (const vtkStdString &string, float bounds[4]) |
|
virtual void | ComputeStringBounds (const vtkUnicodeString &string, float bounds[4]) |
|
virtual vtkOpenGLRenderWindow * | GetRenderWindow () |
|
vtkMatrix4x4 * | GetProjectionMatrix () |
|
vtkMatrix4x4 * | GetModelMatrix () |
|
vtkContextDevice2D * | NewInstance () const |
|
virtual void | DrawMathTextString (float *point, const vtkStdString &string)=0 |
|
virtual bool | MathTextIsSupported () |
|
void | ApplyPen (vtkPen *pen) |
|
void | ApplyBrush (vtkBrush *brush) |
|
void | ApplyTextProp (vtkTextProperty *prop) |
|
virtual int | GetWidth () |
|
virtual int | GetHeight () |
|
virtual void | DisableClipping () |
|
virtual bool | GetBufferIdMode () const |
|
virtual void | SetViewportSize (const vtkVector2i &size) |
|
virtual vtkVector2i | GetViewportSize () |
|
virtual void | SetViewportRect (const vtkRecti &rect) |
|
virtual vtkRecti | GetViewportRect () |
|
virtual vtkPen * | GetPen () |
|
virtual vtkBrush * | GetBrush () |
|
virtual vtkTextProperty * | GetTextProp () |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual unsigned long | GetMTime () |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
Class for drawing 2D primitives using OpenGL 2.
This class takes care of drawing the 2D primitives for the vtkContext2D class. In general this class should not be used directly, but called by vtkContext2D which takes care of many of the higher level details.
It assumes that OpenGL 2 is available, which is taken care of by the vtkContextActor class. If OpenGL 2 is not available, but OpenGL rendering is required the vtkOpenGLContextDevice2D class should be used (employs GL 1.1).
- See also
- vtkOpenGLContextDevice2D
- Tests:
- vtkOpenGL2ContextDevice2D (Tests)
Definition at line 41 of file vtkOpenGL2ContextDevice2D.h.