![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <vtkBoundingRectContextDevice2D.h>
Public Member Functions | |
| vtkTypeMacro (vtkBoundingRectContextDevice2D, vtkContextDevice2D) void PrintSelf(ostream &os | |
| vtkSetObjectMacro (DelegateDevice, vtkContextDevice2D) | |
| vtkGetObjectMacro (DelegateDevice, vtkContextDevice2D) | |
| void | Reset () |
| vtkRectf | GetBoundingRect () |
| void | DrawString (float *point, const vtkStdString &string) override |
| void | DrawMathTextString (float *point, const vtkStdString &string) override |
| void | DrawImage (float p[2], float scale, vtkImageData *image) override |
| void | DrawImage (const vtkRectf &pos, vtkImageData *image) override |
| void | DrawPolyData (float vtkNotUsed(p)[2], float vtkNotUsed(scale), vtkPolyData *vtkNotUsed(polyData), vtkUnsignedCharArray *vtkNotUsed(colors), int vtkNotUsed(scalarMode)) override |
| void | SetColor4 (unsigned char color[4]) override |
| void | SetTexture (vtkImageData *image, int properties) override |
| void | SetPointSize (float size) override |
| void | SetLineWidth (float width) override |
| void | SetLineType (int type) override |
| void | SetMatrix (vtkMatrix3x3 *m) override |
| void | GetMatrix (vtkMatrix3x3 *m) override |
| void | MultiplyMatrix (vtkMatrix3x3 *m) override |
| void | PushMatrix () override |
| void | PopMatrix () override |
| void | EnableClipping (bool enable) override |
| void | SetClipping (int *x) override |
| void | ApplyPen (vtkPen *pen) override |
| vtkPen * | GetPen () override |
| void | ApplyBrush (vtkBrush *brush) override |
| vtkBrush * | GetBrush () override |
| void | ApplyTextProp (vtkTextProperty *prop) override |
| vtkTextProperty * | GetTextProp () override |
| void | DrawPoly (float *points, int n, unsigned char *colors=0, int nc_comps=0) override |
| void | DrawLines (float *f, int n, unsigned char *colors=0, int nc_comps=0) override |
| void | DrawPoints (float *points, int n, unsigned char *colors=0, int nc_comps=0) override |
| void | DrawPointSprites (vtkImageData *sprite, float *points, int n, unsigned char *colors=0, int nc_comps=0) override |
| void | DrawMarkers (int shape, bool highlight, float *points, int n, unsigned char *colors=0, int nc_comps=0) override |
| void | DrawEllipseWedge (float x, float y, float outRx, float outRy, float inRx, float inRy, float startAngle, float stopAngle) override |
| void | DrawEllipticArc (float x, float y, float rX, float rY, float startAngle, float stopAngle) override |
| void | ComputeStringBounds (const vtkStdString &string, float bounds[4]) override |
| void | ComputeJustifiedStringBounds (const char *string, float bounds[4]) override |
| void | Begin (vtkViewport *) override |
| void | End () override |
| bool | GetBufferIdMode () const override |
| void | BufferIdModeBegin (vtkAbstractContextBufferId *bufferId) override |
| void | BufferIdModeEnd () override |
Static Public Member Functions | |
| static vtkBoundingRectContextDevice2D * | New () |
| static vtkRectf | GetBoundingRect (vtkAbstractContextItem *item, vtkViewport *viewport) |
Public Attributes | |
| vtkIndent indent | override |
Protected Member Functions | |
| vtkBoundingRectContextDevice2D () | |
| ~vtkBoundingRectContextDevice2D () override | |
| void | AddPoint (float x, float y) |
| void | AddPoint (float point[2]) |
| void | AddRect (const vtkRectf &rect) |
Protected Attributes | |
| bool | Initialized |
| vtkRectf | BoundingRect |
| vtkContextDevice2D * | DelegateDevice |
|
protected |
|
overrideprotected |
References DelegateDevice, and NULL.
|
protected |
References BoundingRect, and Initialized.
Add a point to the cumulative bounding rect.
Referenced by DrawEllipseWedge(), DrawEllipticArc(), DrawImage(), DrawLines(), DrawMathTextString(), DrawPoints(), DrawPointSprites(), and DrawString().
|
protected |
Add a rect to the cumulative bounding rect.
References BoundingRect, and Initialized.
|
override |
Forward the brush to the delegate device.
References DelegateDevice.
|
override |
Forward the pen to the delegate device.
References DelegateDevice.
|
override |
Forward the text property to the delegate device.
References DelegateDevice.
|
override |
Call before drawing to this device.
References DelegateDevice.
|
override |
Begin ID buffering mode.
References DelegateDevice.
|
override |
End ID buffering mode.
References DelegateDevice.
|
override |
Forward string bounds calculation to the delegate device.
References DelegateDevice.
|
override |
Forward string bounds calculation to the delegate device.
References DelegateDevice.
|
override |
Expand bounding rect to contain the ellipse.
References a, AddPoint(), x, and y.
|
override |
Expand bounding rect to contain the elliptic arc.
References a, AddPoint(), x, and y.
|
override |
Expand bounding box to contain the image's bounding box.
|
override |
Expand bounding box to contain the image's bounding box.
References AddPoint(), and image.
|
override |
Expand bounding rect to contain the given lines.
References AddPoint(), and NULL.
Referenced by DrawPoly().
|
override |
Expand bounding rect to contain the markers.
References colors, DrawPointSprites(), NULL, and points.
|
override |
Expand bounding box to contain the string's bounding box.
References AddPoint(), and DelegateDevice.
|
override |
Expand bounding rect to contain the given points.
References AddPoint(), NULL, and points.
|
override |
Expand bounding rect to contain the point sprites.
References AddPoint(), DelegateDevice, NULL, points, x, and y.
Referenced by DrawMarkers().
|
override |
Expand bounding box to contain the given polygon.
References colors, and DrawLines().
|
inlineoverride |
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).
|
override |
Expand bounding box to contain the string's bounding box.
References AddPoint(), and DelegateDevice.
|
override |
Implement pure virtual member function. Does nothing.
References DelegateDevice.
|
override |
Call after drawing to this device.
References DelegateDevice.
| vtkRectf vtkBoundingRectContextDevice2D::GetBoundingRect | ( | ) |
Get the bounding rect that contains all the primitives rendered by the device so far.
References BoundingRect.
Referenced by vtkContext2DScalarBarActor::GetBoundingRect().
|
static |
Get the bounding rect that contains the given vtkAbstractContextItem.
References context.
|
override |
Get the brush from the delegate device.
References DelegateDevice, and NULL.
|
override |
Get value from delegate device.
References DelegateDevice.
|
override |
Get current matrix from delegate device.
References DelegateDevice.
|
override |
Get the pen from the delegate device.
References DelegateDevice, and NULL.
|
override |
Get the text property from the delegate device.
References DelegateDevice, and NULL.
|
override |
Multiply the current matrix in the delegate device by this one.
References DelegateDevice.
|
static |
|
override |
Pope matrix from the delegate device.
References DelegateDevice.
|
override |
Push matrix in the delegate device.
References DelegateDevice.
| void vtkBoundingRectContextDevice2D::Reset | ( | ) |
reset the bounding box.
References BoundingRect, and Initialized.
|
override |
Implement pure virtual member function. Does nothing.
References DelegateDevice.
|
override |
Implement pure virtual member function. Does not affect bounding rect.
References DelegateDevice.
|
override |
Implement pure virtual member function. Forward line type to delegate device.
References DelegateDevice.
|
override |
Implement pure virtual member function. Forward line width to delegate device.
References DelegateDevice.
|
override |
Forward current matrix to delegate device.
References DelegateDevice.
|
override |
Implement pure virtual member function. Does not affect bounding rect.
References DelegateDevice.
|
override |
Implement pure virtual member function. Does not affect bounding rect.
References DelegateDevice.
| vtkBoundingRectContextDevice2D::vtkGetObjectMacro | ( | DelegateDevice | , |
| vtkContextDevice2D | |||
| ) |
| vtkBoundingRectContextDevice2D::vtkSetObjectMacro | ( | DelegateDevice | , |
| vtkContextDevice2D | |||
| ) |
Set/get delegate device used to compute bounding boxes around strings.
| vtkBoundingRectContextDevice2D::vtkTypeMacro | ( | vtkBoundingRectContextDevice2D | , |
| vtkContextDevice2D | |||
| ) | & |
|
protected |
Cumulative rect holding the bounds of the primitives rendered by the device.
Referenced by AddPoint(), AddRect(), GetBoundingRect(), and Reset().
|
protected |
Delegate ContextDevice2D to handle certain computations
Referenced by ApplyBrush(), ApplyPen(), ApplyTextProp(), Begin(), BufferIdModeBegin(), BufferIdModeEnd(), ComputeJustifiedStringBounds(), ComputeStringBounds(), DrawMathTextString(), DrawPointSprites(), DrawString(), EnableClipping(), End(), GetBrush(), GetBufferIdMode(), GetMatrix(), GetPen(), GetTextProp(), MultiplyMatrix(), PopMatrix(), PushMatrix(), SetClipping(), SetColor4(), SetLineType(), SetLineWidth(), SetMatrix(), SetPointSize(), SetTexture(), and ~vtkBoundingRectContextDevice2D().
|
protected |
Is the bounding rect initialized?
Referenced by AddPoint(), AddRect(), and Reset().
| vtkIndent indent vtkBoundingRectContextDevice2D::override |