VTK
|
Class for drawing 2D primitives using OpenGL 1.1+. More...
#include <vtkOpenGLContextDevice2D.h>
Classes | |
class | Private |
Public Types | |
typedef vtkContextDevice2D | Superclass |
typedef vtkContextDevice2D | Superclass |
![]() | |
enum | TextureProperty { Nearest = 0x01, Linear = 0x02, Stretch = 0x04, Repeat = 0x08 } |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLContextDevice2D * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
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) |
virtual void | DrawImage (float p[2], float scale, vtkImageData *image) |
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 | ReleaseGraphicsResources (vtkWindow *window) |
virtual int | IsA (const char *type) |
vtkOpenGLContextDevice2D * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
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) |
virtual void | DrawImage (float p[2], float scale, vtkImageData *image) |
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 | ReleaseGraphicsResources (vtkWindow *window) |
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 | DrawPointSprites (vtkImageData *sprite, 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 | DrawPointSprites (vtkImageData *sprite, 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 () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkOpenGLContextDevice2D * | SafeDownCast (vtkObjectBase *o) |
static vtkOpenGLContextDevice2D * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLContextDevice2D * | SafeDownCast (vtkObjectBase *o) |
static vtkOpenGLContextDevice2D * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkContextDevice2D * | SafeDownCast (vtkObjectBase *o) |
static vtkContextDevice2D * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Attributes | |
int | Geometry [2] |
vtkRenderer * | Renderer |
vtkStringToImage * | TextRenderer |
bool | InRender |
vtkOpenGLRenderWindow * | RenderWindow |
vtkOpenGLHelper * | VCBO |
vtkOpenGLHelper * | VBO |
vtkOpenGLHelper * | VTBO |
vtkOpenGLHelper * | SCBO |
vtkOpenGLHelper * | SBO |
Private * | Storage |
![]() | |
int | Geometry [2] |
vtkVector2i | ViewportSize |
vtkRecti | ViewportRect |
vtkAbstractContextBufferId * | BufferId |
vtkPen * | Pen |
vtkBrush * | Brush |
vtkTextProperty * | TextProp |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Class for drawing 2D primitives using OpenGL 1.1+.
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.
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.
Definition at line 47 of file vtkOpenGLContextDevice2D.h.
Definition at line 50 of file vtkOpenGLContextDevice2D.h.
Definition at line 52 of file vtkOpenGLContextDevice2D.h.
|
protected |
|
protectedvirtual |
|
protected |
|
protectedvirtual |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D, and vtkGL2PSContextDevice2D.
|
static |
|
protectedvirtual |
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D, and vtkGL2PSContextDevice2D.
vtkOpenGLContextDevice2D* vtkOpenGLContextDevice2D::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D, and vtkGL2PSContextDevice2D.
|
static |
Creates a 2D Painter object.
|
virtual |
Draw a poly line using the points - fastest code path due to memory layout of the coordinates. The line will be colored by colors array which has nc_comps components.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw lines using the points - memory layout is as follows: l1p1,l1p2,l2p1,l2p2... The lines will be colored by colors array which has nc_comps components.
Implements vtkContextDevice2D.
|
virtual |
Draw a series of points - fastest code path due to memory layout of the coordinates. Points are colored by colors array which has nc_comps components.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw a series of point sprites, images centred at the points supplied. The supplied vtkImageData is the sprite to be drawn, only squares will be drawn and the size is set using SetPointSize. Points are colored by colors array which has nc_comps components - this part is optional.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D, and vtkOpenGL2ContextDevice2D.
|
virtual |
Draw a series of markers centered at the points supplied. The shape argument controls the marker shape, and can be one of - VTK_MARKER_CROSS - VTK_MARKER_PLUS - VTK_MARKER_SQUARE - VTK_MARKER_CIRCLE - VTK_MARKER_DIAMOND
colors | is an optional array of colors. |
nc_comps | is the number of components for the color. |
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Adjust the size of the MarkerCache. This implementation generates point sprites for each mark size/shape and uses DrawPointSprites to render them. The number of cached markers can be accessed with this function.
|
virtual |
Adjust the size of the MarkerCache. This implementation generates point sprites for each mark size/shape and uses DrawPointSprites to render them. The number of cached markers can be accessed with this function.
Draw a polygon using the specified number of points.
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw an elliptic wedge with center at x, y, outer radii outRx, outRy, inner radii inRx, inRy between angles startAngle and stopAngle (expressed in degrees).
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw an elliptic arc with center at x,y with radii rX and rY between angles startAngle and stopAngle (expressed in degrees).
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw some text to the screen!
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Compute the bounds of the supplied string. The bounds will be copied to the supplied bounds variable, the first two elements are the bottom corner of the string, and the second two elements are the width and height of the bounding box. An empty bounding box (0, 0, 0, 0) is returned for an empty string or string with only characters that cannot be rendered. NOTE: This function does not take account of the text rotation.
Implements vtkContextDevice2D.
|
virtual |
Draw some text to the screen.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Compute the bounds of the supplied string. The bounds will be copied to the supplied bounds variable, the first two elements are the bottom corner of the string, and the second two elements are the width and height of the bounding box. An empty bounding box (0, 0, 0, 0) is returned for an empty string or string with only characters that cannot be rendered. NOTE: This function does not take account of the text rotation.
Implements vtkContextDevice2D.
|
virtual |
Draw text using MathText markup for mathematical equations. See http://matplotlib.sourceforge.net/users/mathtext.html for more information.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw the supplied image at the given x, y (p[0], p[1]) (bottom corner), scaled by scale (1.0 would match the image).
Implements vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D.
|
virtual |
Draw the supplied image at the given position. The origin, width, and height are specified by the supplied vtkRectf variable pos. The image will be drawn scaled to that size.
Implements vtkContextDevice2D.
|
virtual |
Set the color for the device using unsigned char of length 4, RGBA.
Implements vtkContextDevice2D.
|
virtual |
Set the color for the device using unsigned char of length 3, RGB.
|
virtual |
Set the texture for the device, it is used to fill the polygons
Implements vtkContextDevice2D.
|
virtual |
Set the point size for glyphs/sprites.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Set the line width for glyphs/sprites.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Set the line type type (using anonymous enum in vtkPen).
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Multiply the current model view matrix by the supplied one.
Implements vtkContextDevice2D.
|
virtual |
Set the model view matrix for the display
Implements vtkContextDevice2D.
|
virtual |
Set the model view matrix for the display
Implements vtkContextDevice2D.
|
virtual |
Push the current matrix onto the stack.
Implements vtkContextDevice2D.
|
virtual |
Pop the current matrix off of the stack.
Implements vtkContextDevice2D.
|
virtual |
Supply an int array of length 4 with x1, y1, width, height specifying clipping for the display.
Implements vtkContextDevice2D.
|
virtual |
Disable clipping of the display.
Implements vtkContextDevice2D.
|
virtual |
Begin drawing, pass in the viewport to set up the view.
Reimplemented from vtkContextDevice2D.
|
virtual |
End drawing, clean up the view.
Reimplemented from vtkContextDevice2D.
|
virtual |
Start BufferId creation Mode. The default implementation is empty.
Reimplemented from vtkContextDevice2D.
|
virtual |
Finalize BufferId creation Mode. It makes sure that the content of the bufferId passed in argument of BufferIdModeBegin() is correctly set. The default implementation is empty.
Reimplemented from vtkContextDevice2D.
bool vtkOpenGLContextDevice2D::SetStringRendererToFreeType | ( | ) |
Force the use of the freetype based render strategy. If Qt is available then freetype will be used preferentially, otherwise this has no effect. Returns true on success.
bool vtkOpenGLContextDevice2D::SetStringRendererToQt | ( | ) |
Force the use of the Qt based string render strategy. If Qt is not available then freetype will be used and this will return false.
bool vtkOpenGLContextDevice2D::HasGLSL | ( | ) |
Check whether the current context device has support for GLSL.
|
virtual |
Get the active RenderWindow of the device. Will return null if not active.
|
virtual |
Release any graphics resources that are being consumed by this device. The parameter window could be used to determine which graphic resources to release.
Reimplemented in vtkOpenGL2ContextDevice2D.
|
protected |
Factorized code called by DrawEllipseWedge() and DrawEllipticArc() to figure out the number of iterations required to make an arc smooth.
|
protectedvirtual |
Load the OpenGL extensions we need.
Reimplemented in vtkOpenGL2ContextDevice2D.
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D, and vtkGL2PSContextDevice2D.
|
static |
|
protectedvirtual |
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D, and vtkGL2PSContextDevice2D.
vtkOpenGLContextDevice2D* vtkOpenGLContextDevice2D::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D, and vtkGL2PSContextDevice2D.
|
static |
Creates a 2D Painter object.
|
virtual |
Draw a poly line using the points - fastest code path due to memory layout of the coordinates. The line will be colored by colors array which has nc_comps components
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw lines using the points - memory layout is as follows: l1p1,l1p2,l2p1,l2p2... The lines will be colored by colors array which has nc_comps components.
Implements vtkContextDevice2D.
|
virtual |
Draw a series of points - fastest code path due to memory layout of the coordinates. Points are colored by colors array which has nc_comps components
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw a series of point sprites, images centred at the points supplied. The supplied vtkImageData is the sprite to be drawn, only squares will be drawn and the size is set using SetPointSize. Points are colored by colors array which has nc_comps components - this part is optional.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D, and vtkOpenGL2ContextDevice2D.
|
virtual |
Draw a series of markers centered at the points supplied. The shape argument controls the marker shape, and can be one of - VTK_MARKER_CROSS - VTK_MARKER_PLUS - VTK_MARKER_SQUARE - VTK_MARKER_CIRCLE - VTK_MARKER_DIAMOND
colors | is an optional array of colors. |
nc_comps | is the number of components for the color. |
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Adjust the size of the MarkerCache. This implementation generates point sprites for each mark size/shape and uses DrawPointSprites to render them. The number of cached markers can be accessed with this function.
|
virtual |
Adjust the size of the MarkerCache. This implementation generates point sprites for each mark size/shape and uses DrawPointSprites to render them. The number of cached markers can be accessed with this function.
Draw a polygon using the specified number of points.
Reimplemented from vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw an elliptic wedge with center at x, y, outer radii outRx, outRy, inner radii inRx, inRy between angles startAngle and stopAngle (expressed in degrees).
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw an elliptic arc with center at x,y with radii rX and rY between angles startAngle and stopAngle (expressed in degrees).
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw some text to the screen!
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Compute the bounds of the supplied string. The bounds will be copied to the supplied bounds variable, the first two elements are the bottom corner of the string, and the second two elements are the width and height of the bounding box. An empty bounding box (0, 0, 0, 0) is returned for an empty string or string with only characters that cannot be rendered. NOTE: This function does not take account of the text rotation.
Implements vtkContextDevice2D.
|
virtual |
Draw some text to the screen.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Compute the bounds of the supplied string. The bounds will be copied to the supplied bounds variable, the first two elements are the bottom corner of the string, and the second two elements are the width and height of the bounding box. An empty bounding box (0, 0, 0, 0) is returned for an empty string or string with only characters that cannot be rendered. NOTE: This function does not take account of the text rotation.
Implements vtkContextDevice2D.
|
virtual |
Draw text using MathText markup for mathematical equations. See http://matplotlib.sourceforge.net/users/mathtext.html for more information.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Draw the supplied image at the given x, y (p[0], p[1]) (bottom corner), scaled by scale (1.0 would match the image).
Implements vtkContextDevice2D.
Reimplemented in vtkOpenGL2ContextDevice2D.
|
virtual |
Draw the supplied image at the given position. The origin, width, and height are specified by the supplied vtkRectf variable pos. The image will be drawn scaled to that size.
Implements vtkContextDevice2D.
|
virtual |
Set the color for the device using unsigned char of length 4, RGBA.
Implements vtkContextDevice2D.
|
virtual |
Set the color for the device using unsigned char of length 3, RGB.
|
virtual |
Set the texture for the device, it is used to fill the polygons
Implements vtkContextDevice2D.
|
virtual |
Set the point size for glyphs/sprites.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Set the line width for glyphs/sprites.
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Set the line type type (using anonymous enum in vtkPen).
Implements vtkContextDevice2D.
Reimplemented in vtkGL2PSContextDevice2D.
|
virtual |
Multiply the current model view matrix by the supplied one.
Implements vtkContextDevice2D.
|
virtual |
Set the model view matrix for the display
Implements vtkContextDevice2D.
|
virtual |
Set the model view matrix for the display
Implements vtkContextDevice2D.
|
virtual |
Push the current matrix onto the stack.
Implements vtkContextDevice2D.
|
virtual |
Pop the current matrix off of the stack.
Implements vtkContextDevice2D.
|
virtual |
Supply an int array of length 4 with x1, y1, x2, y2 specifying clipping for the display.
Implements vtkContextDevice2D.
|
virtual |
Disable clipping of the display.
Implements vtkContextDevice2D.
|
virtual |
Begin drawing, pass in the viewport to set up the view.
Reimplemented from vtkContextDevice2D.
|
virtual |
End drawing, clean up the view.
Reimplemented from vtkContextDevice2D.
|
virtual |
Start BufferId creation Mode. The default implementation is empty.
Reimplemented from vtkContextDevice2D.
|
virtual |
Finalize BufferId creation Mode. It makes sure that the content of the bufferId passed in argument of BufferIdModeBegin() is correctly set. The default implementation is empty.
Reimplemented from vtkContextDevice2D.
bool vtkOpenGLContextDevice2D::SetStringRendererToFreeType | ( | ) |
Force the use of the freetype based render strategy. If Qt is available then freetype will be used preferentially, otherwise this has no effect. Returns true on success.
bool vtkOpenGLContextDevice2D::SetStringRendererToQt | ( | ) |
Force the use of the Qt based string render strategy. If Qt is not available then freetype will be used and this will return false.
bool vtkOpenGLContextDevice2D::HasGLSL | ( | ) |
Check whether the current context device has support for GLSL.
|
virtual |
Get the active RenderWindow of the device. Will return null if not active.
|
virtual |
Release any graphics resources that are being consumed by this device. The parameter window could be used to determine which graphic resources to release.
Reimplemented in vtkOpenGL2ContextDevice2D.
vtkMatrix4x4* vtkOpenGLContextDevice2D::GetProjectionMatrix | ( | ) |
Get the projection matrix this is needed
vtkMatrix4x4* vtkOpenGLContextDevice2D::GetModelMatrix | ( | ) |
Get the projection matrix this is needed
|
protected |
Factorized code called by DrawEllipseWedge() and DrawEllipticArc() to figure out the number of iterations required to make an arc smooth.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Store the width and height of the display devicen (in pixels).
Definition at line 281 of file vtkOpenGLContextDevice2D.h.
|
protected |
We need to store a pointer to the renderer for the text rendering
Definition at line 284 of file vtkOpenGLContextDevice2D.h.
|
protected |
We also need a label render strategy
Definition at line 287 of file vtkOpenGLContextDevice2D.h.
|
protected |
Is the device currently rendering? Prevent multiple End() calls.
Definition at line 290 of file vtkOpenGLContextDevice2D.h.
|
protected |
Definition at line 294 of file vtkOpenGLContextDevice2D.h.
|
protected |
The OpenGL render window being used by the device
Definition at line 302 of file vtkOpenGLContextDevice2D.h.
|
protected |
Definition at line 309 of file vtkOpenGLContextDevice2D.h.
|
protected |
Definition at line 311 of file vtkOpenGLContextDevice2D.h.
|
protected |
Definition at line 313 of file vtkOpenGLContextDevice2D.h.
|
protected |
Definition at line 315 of file vtkOpenGLContextDevice2D.h.
|
protected |
Definition at line 317 of file vtkOpenGLContextDevice2D.h.