VTK
9.1.0
|
Abstract class for drawing 2D primitives. More...
#include <vtkContextDevice2D.h>
Public Types | |
enum | TextureProperty { Nearest = 0x01 , Linear = 0x02 , Stretch = 0x04 , Repeat = 0x08 } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkContextDevice2D * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | DrawPoly (float *points, int n, unsigned char *colors=nullptr, int nc_comps=0)=0 |
Draw a poly line using the points - fastest code path due to memory layout of the coordinates. More... | |
virtual void | DrawLines (float *f, int n, unsigned char *colors=nullptr, int nc_comps=0)=0 |
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 (defining a single color). More... | |
virtual void | DrawPoints (float *points, int n, unsigned char *colors=nullptr, int nc_comps=0)=0 |
Draw a series of points - fastest code path due to memory layout of the coordinates. More... | |
virtual void | DrawPointSprites (vtkImageData *sprite, float *points, int n, unsigned char *colors=nullptr, int nc_comps=0)=0 |
Draw a series of point sprites, images centred at the points supplied. More... | |
virtual void | DrawMarkers (int shape, bool highlight, float *points, int n, unsigned char *colors=nullptr, int nc_comps=0) |
Draw a series of markers centered at the points supplied. More... | |
virtual void | DrawQuad (float *, int) |
Draw a quad using the specified number of points. More... | |
virtual void | DrawQuadStrip (float *, int) |
Draw a quad using the specified number of points. More... | |
virtual void | DrawEllipseWedge (float x, float y, float outRx, float outRy, float inRx, float inRy, float startAngle, float stopAngle)=0 |
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). More... | |
virtual void | DrawEllipticArc (float x, float y, float rX, float rY, float startAngle, float stopAngle)=0 |
Draw an elliptic arc with center at x,y with radii rX and rY between angles startAngle and stopAngle (expressed in degrees). More... | |
virtual void | DrawString (float *point, const vtkStdString &string)=0 |
Draw some text to the screen. More... | |
virtual void | ComputeStringBounds (const vtkStdString &string, float bounds[4])=0 |
Compute the bounds of the supplied string. More... | |
virtual void | DrawString (float *point, const vtkUnicodeString &string)=0 |
Draw some text to the screen. More... | |
virtual void | ComputeStringBounds (const vtkUnicodeString &string, float bounds[4])=0 |
Compute the bounds of the supplied string. More... | |
virtual void | ComputeJustifiedStringBounds (const char *string, float bounds[4])=0 |
Compute the bounds of the supplied string while taking into account the justification of the currently applied text property. More... | |
virtual void | DrawMathTextString (float *point, const vtkStdString &string)=0 |
Draw text using MathText markup for mathematical equations. More... | |
virtual bool | MathTextIsSupported () |
Return true if MathText rendering available on this device. More... | |
virtual void | DrawImage (float p[2], float scale, vtkImageData *image)=0 |
Draw the supplied image at the given x, y (p[0], p[1]) (bottom corner), scaled by scale (1.0 would match the image). More... | |
virtual void | DrawImage (const vtkRectf &pos, vtkImageData *image)=0 |
Draw the supplied image at the given position. More... | |
virtual void | DrawPolyData (float p[2], float scale, vtkPolyData *polyData, vtkUnsignedCharArray *colors, int scalarMode) |
Draw the supplied PolyData at the given x, y (p[0], p[1]) (bottom corner), scaled by scale (1.0 would match the actual dataset). More... | |
virtual void | ApplyPen (vtkPen *pen) |
Apply the supplied pen which controls the outlines of shapes, as well as lines, points and related primitives. More... | |
virtual void | ApplyBrush (vtkBrush *brush) |
Apply the supplied brush which controls the outlines of shapes, as well as lines, points and related primitives. More... | |
virtual void | ApplyTextProp (vtkTextProperty *prop) |
Apply the supplied text property which controls how text is rendered. More... | |
virtual void | SetColor4 (unsigned char color[4])=0 |
Set the color for the device using unsigned char of length 4, RGBA. More... | |
virtual void | SetTexture (vtkImageData *image, int properties)=0 |
Set the texture for the device, it is used to fill the polygons. More... | |
virtual void | SetPointSize (float size)=0 |
Set the point size for glyphs/sprites. More... | |
virtual void | SetLineWidth (float width)=0 |
Set the line width. More... | |
virtual void | SetLineType (int type)=0 |
Set the line type type (using anonymous enum in vtkPen). More... | |
virtual int | GetWidth () |
Get the width of the device in pixels. More... | |
virtual int | GetHeight () |
Get the width of the device in pixels. More... | |
virtual void | SetMatrix (vtkMatrix3x3 *m)=0 |
Set the model view matrix for the display. More... | |
virtual void | GetMatrix (vtkMatrix3x3 *m)=0 |
Set the model view matrix for the display. More... | |
virtual void | MultiplyMatrix (vtkMatrix3x3 *m)=0 |
Multiply the current model view matrix by the supplied one. More... | |
virtual void | PushMatrix ()=0 |
Push the current matrix onto the stack. More... | |
virtual void | PopMatrix ()=0 |
Pop the current matrix off of the stack. More... | |
virtual void | SetClipping (int *x)=0 |
Supply an int array of length 4 with x1, y1, width, height specifying clipping region for the device in pixels. More... | |
virtual void | DisableClipping () |
Disable clipping of the display. More... | |
virtual void | EnableClipping (bool enable)=0 |
Enable or disable the clipping of the scene. More... | |
virtual void | Begin (vtkViewport *) |
Begin drawing, pass in the viewport to set up the view. More... | |
virtual void | End () |
End drawing, clean up the view. More... | |
virtual bool | GetBufferIdMode () const |
Tell if the device context is in BufferId creation mode. More... | |
virtual void | BufferIdModeBegin (vtkAbstractContextBufferId *bufferId) |
Start BufferId creation Mode. More... | |
virtual void | BufferIdModeEnd () |
Finalize BufferId creation Mode. More... | |
virtual void | SetViewportSize (const vtkVector2i &size) |
virtual vtkVector2i | GetViewportSize () |
virtual void | SetViewportRect (const vtkRecti &rect) |
virtual vtkRecti | GetViewportRect () |
virtual void | DrawPolygon (float *p, int n) |
Draw a polygon using the specified number of points. More... | |
virtual void | DrawColoredPolygon (float *points, int numPoints, unsigned char *colors=nullptr, int nc_comps=0) |
Draw a polygon using the specified number of points. More... | |
virtual vtkPen * | GetPen () |
Get the pen which controls the outlines of shapes, as well as lines, points and related primitives. More... | |
virtual vtkBrush * | GetBrush () |
Get the pen which controls the outlines of shapes as well as lines, points and related primitives. More... | |
virtual vtkTextProperty * | GetTextProp () |
Get the text properties object for the vtkContext2D. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual vtkTypeBool | IsA (const char *name) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
bool | GetIsInMemkind () const |
A local state flag that remembers whether this object lives in the normal or extended memory space. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
Static Public Member Functions | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkContextDevice2D * | SafeDownCast (vtkObjectBase *o) |
static vtkContextDevice2D * | New () |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | SetMemkindDirectory (const char *directoryname) |
The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. More... | |
static bool | GetUsingMemkind () |
A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkContextDevice2D () | |
~vtkContextDevice2D () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
int | Geometry [2] |
Store the width and height of the device in pixels. More... | |
vtkVector2i | ViewportSize |
Store the size of the total viewport. More... | |
vtkRecti | ViewportRect |
Store our origin and size in the total viewport. More... | |
vtkAbstractContextBufferId * | BufferId |
vtkPen * | Pen |
vtkBrush * | Brush |
vtkTextProperty * | TextProp |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
std::atomic< int32_t > | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Additional Inherited Members | |
Static Protected Member Functions inherited from vtkObjectBase | |
static vtkMallocingFunction | GetCurrentMallocFunction () |
static vtkReallocingFunction | GetCurrentReallocFunction () |
static vtkFreeingFunction | GetCurrentFreeFunction () |
static vtkFreeingFunction | GetAlternateFreeFunction () |
Abstract class for drawing 2D primitives.
This defines the interface for a vtkContextDevice2D. In this sense a ContextDevice is a class used to paint 2D primitives onto a device, such as an OpenGL context or a QGraphicsView.
Definition at line 51 of file vtkContextDevice2D.h.
Definition at line 54 of file vtkContextDevice2D.h.
Enumerator | |
---|---|
Nearest | |
Linear | |
Stretch | |
Repeat |
Definition at line 291 of file vtkContextDevice2D.h.
|
protected |
|
overrideprotected |
|
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 vtkObjectBase.
Reimplemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
static |
|
protectedvirtual |
Reimplemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
vtkContextDevice2D * vtkContextDevice2D::NewInstance | ( | ) | const |
|
overridevirtual |
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 vtkObject.
Reimplemented in vtkOpenGLContextDevice2D.
|
static |
|
pure virtual |
Draw a poly line using the points - fastest code path due to memory layout of the coordinates.
The line will be colored by the colors array, which must be have nc_comps components (defining a single color).
Implemented in vtkOpenGLContextDevice2D, vtkSVGContextDevice2D, and vtkPDFContextDevice2D.
|
pure 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 (defining a single color).
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Draw a series of points - fastest code path due to memory layout of the coordinates.
The colors and nc_comps are optional - color array.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure 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.
sprite | the image to draw |
points | where to draw the sprites |
n | the number of points |
colors | is an optional array of colors. |
nc_comps | is the number of components for the color. |
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
virtual |
Draw a series of markers centered at the points supplied.
The shape argument controls the marker shape, and can be one of
shape | the shape of the marker |
highlight | whether to highlight the marker or not |
points | where to draw the sprites |
n | the number of points |
colors | is an optional array of colors. |
nc_comps | is the number of components for the color. |
Reimplemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
inlinevirtual |
Draw a quad using the specified number of points.
Reimplemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
Definition at line 118 of file vtkContextDevice2D.h.
|
inlinevirtual |
Draw a quad using the specified number of points.
Reimplemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
Definition at line 123 of file vtkContextDevice2D.h.
|
inlinevirtual |
Draw a polygon using the specified number of points.
Reimplemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
Definition at line 129 of file vtkContextDevice2D.h.
|
virtual |
Draw a polygon using the specified number of points.
Reimplemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure 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).
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Draw an elliptic arc with center at x,y with radii rX and rY between angles startAngle and stopAngle (expressed in degrees).
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Draw some text to the screen.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure 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. NOTE: This function does not take account of the text rotation or justification.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Draw some text to the screen.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure 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. NOTE: This function does not take account of the text rotation or justification.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Compute the bounds of the supplied string while taking into account the justification of the currently applied text property.
Simple rotations (0, 90, 180, 270) are also correctly taken into account.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Draw text using MathText markup for mathematical equations.
See http://matplotlib.sourceforge.net/users/mathtext.html for more information.
Implemented in vtkSVGContextDevice2D, and vtkPDFContextDevice2D.
|
virtual |
Return true if MathText rendering available on this device.
|
pure 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).
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure 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.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
virtual |
Draw the supplied PolyData at the given x, y (p[0], p[1]) (bottom corner), scaled by scale (1.0 would match the actual dataset).
Only lines and polys are rendered. Only the x/y coordinates of the polydata are used.
p | Offset to apply to polydata. |
scale | Isotropic scale for polydata. Applied after offset. |
polyData | Draw lines and polys from this dataset. |
colors | RGBA for points or cells, depending on value of scalarMode. Must not be NULL. |
scalarMode | Must be either VTK_SCALAR_MODE_USE_POINT_DATA or VTK_SCALAR_MODE_USE_CELL_DATA. |
The base implementation breaks the polydata apart and renders each polygon individually using the device API. Subclasses should override this method with a batch-drawing implementation if performance is a concern.
Reimplemented in vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
virtual |
Apply the supplied pen which controls the outlines of shapes, as well as lines, points and related primitives.
This makes a deep copy of the vtkPen object in the vtkContext2D, it does not hold a pointer to the supplied object.
|
virtual |
Get the pen which controls the outlines of shapes, as well as lines, points and related primitives.
This object can be modified and the changes will be reflected in subsequent drawing operations.
|
virtual |
Apply the supplied brush which controls the outlines of shapes, as well as lines, points and related primitives.
This makes a deep copy of the vtkBrush object in the vtkContext2D, it does not hold a pointer to the supplied object.
|
virtual |
Get the pen which controls the outlines of shapes as well as lines, points and related primitives.
|
virtual |
Apply the supplied text property which controls how text is rendered.
This makes a deep copy of the vtkTextProperty object in the vtkContext2D, it does not hold a pointer to the supplied object.
|
virtual |
Get the text properties object for the vtkContext2D.
|
pure virtual |
Set the color for the device using unsigned char of length 4, RGBA.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Set the texture for the device, it is used to fill the polygons.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Set the point size for glyphs/sprites.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Set the line width.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Set the line type type (using anonymous enum in vtkPen).
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
inlinevirtual |
Get the width of the device in pixels.
Definition at line 321 of file vtkContextDevice2D.h.
|
inlinevirtual |
Get the width of the device in pixels.
Definition at line 326 of file vtkContextDevice2D.h.
|
pure virtual |
Set the model view matrix for the display.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Set the model view matrix for the display.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Multiply the current model view matrix by the supplied one.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Push the current matrix onto the stack.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Pop the current matrix off of the stack.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
pure virtual |
Supply an int array of length 4 with x1, y1, width, height specifying clipping region for the device in pixels.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
inlinevirtual |
Disable clipping of the display.
Remove in a future release - retained for API compatibility.
Definition at line 363 of file vtkContextDevice2D.h.
|
pure virtual |
Enable or disable the clipping of the scene.
Implemented in vtkSVGContextDevice2D, vtkPDFContextDevice2D, and vtkOpenGLContextDevice2D.
|
inlinevirtual |
Begin drawing, pass in the viewport to set up the view.
Reimplemented in vtkSVGContextDevice2D, and vtkOpenGLContextDevice2D.
Definition at line 373 of file vtkContextDevice2D.h.
|
inlinevirtual |
End drawing, clean up the view.
Reimplemented in vtkSVGContextDevice2D, and vtkOpenGLContextDevice2D.
Definition at line 378 of file vtkContextDevice2D.h.
|
virtual |
Tell if the device context is in BufferId creation mode.
Initial value is false.
|
virtual |
Start BufferId creation Mode.
The default implementation is empty.
Reimplemented in vtkOpenGLContextDevice2D.
|
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 in vtkOpenGLContextDevice2D.
|
inlinevirtual |
Definition at line 404 of file vtkContextDevice2D.h.
|
virtual |
|
inlinevirtual |
Definition at line 407 of file vtkContextDevice2D.h.
|
virtual |
|
protected |
Store the width and height of the device in pixels.
Definition at line 417 of file vtkContextDevice2D.h.
|
protected |
Store the size of the total viewport.
Definition at line 422 of file vtkContextDevice2D.h.
|
protected |
Store our origin and size in the total viewport.
Definition at line 427 of file vtkContextDevice2D.h.
|
protected |
Definition at line 429 of file vtkContextDevice2D.h.
|
protected |
Definition at line 431 of file vtkContextDevice2D.h.
|
protected |
Definition at line 432 of file vtkContextDevice2D.h.
|
protected |
Definition at line 433 of file vtkContextDevice2D.h.