![]() |
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 |
Definition at line 15 of file vtkBoundingRectContextDevice2D.h.
|
protected |
|
overrideprotected |
Definition at line 28 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice, and NULL.
|
protected |
Definition at line 427 of file vtkBoundingRectContextDevice2D.cpp.
References BoundingRect, and Initialized.
Add a point to the cumulative bounding rect.
Definition at line 421 of file vtkBoundingRectContextDevice2D.cpp.
Referenced by DrawEllipseWedge(), DrawEllipticArc(), DrawImage(), DrawLines(), DrawMathTextString(), DrawPoints(), DrawPointSprites(), and DrawString().
|
protected |
Add a rect to the cumulative bounding rect.
Definition at line 437 of file vtkBoundingRectContextDevice2D.cpp.
References BoundingRect, and Initialized.
|
override |
Forward the brush to the delegate device.
Definition at line 222 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Forward the pen to the delegate device.
Definition at line 206 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Forward the text property to the delegate device.
Definition at line 238 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Call before drawing to this device.
Definition at line 384 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Begin ID buffering mode.
Definition at line 406 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
End ID buffering mode.
Definition at line 414 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Forward string bounds calculation to the delegate device.
Definition at line 376 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Forward string bounds calculation to the delegate device.
Definition at line 368 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Expand bounding rect to contain the ellipse.
Definition at line 330 of file vtkBoundingRectContextDevice2D.cpp.
References a, AddPoint(), x, and y.
|
override |
Expand bounding rect to contain the elliptic arc.
Definition at line 353 of file vtkBoundingRectContextDevice2D.cpp.
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.
Definition at line 105 of file vtkBoundingRectContextDevice2D.cpp.
References AddPoint(), and image.
|
override |
Expand bounding rect to contain the given lines.
Definition at line 262 of file vtkBoundingRectContextDevice2D.cpp.
References AddPoint(), and NULL.
Referenced by DrawPoly().
|
override |
Expand bounding rect to contain the markers.
Definition at line 316 of file vtkBoundingRectContextDevice2D.cpp.
References colors, DrawPointSprites(), NULL, and points.
|
override |
Expand bounding box to contain the string's bounding box.
Definition at line 88 of file vtkBoundingRectContextDevice2D.cpp.
References AddPoint(), and DelegateDevice.
|
override |
Expand bounding rect to contain the given points.
Definition at line 277 of file vtkBoundingRectContextDevice2D.cpp.
References AddPoint(), NULL, and points.
|
override |
Expand bounding rect to contain the point sprites.
Definition at line 292 of file vtkBoundingRectContextDevice2D.cpp.
References AddPoint(), DelegateDevice, NULL, points, x, and y.
Referenced by DrawMarkers().
|
override |
Expand bounding box to contain the given polygon.
Definition at line 254 of file vtkBoundingRectContextDevice2D.cpp.
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).
Definition at line 71 of file vtkBoundingRectContextDevice2D.h.
|
override |
Expand bounding box to contain the string's bounding box.
Definition at line 72 of file vtkBoundingRectContextDevice2D.cpp.
References AddPoint(), and DelegateDevice.
|
override |
Implement pure virtual member function. Does nothing.
Definition at line 192 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Call after drawing to this device.
Definition at line 391 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
| vtkRectf vtkBoundingRectContextDevice2D::GetBoundingRect | ( | ) |
Get the bounding rect that contains all the primitives rendered by the device so far.
Definition at line 67 of file vtkBoundingRectContextDevice2D.cpp.
References BoundingRect.
Referenced by vtkContext2DScalarBarActor::GetBoundingRect().
|
static |
Get the bounding rect that contains the given vtkAbstractContextItem.
Definition at line 47 of file vtkBoundingRectContextDevice2D.cpp.
References context.
|
override |
Get the brush from the delegate device.
Definition at line 229 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice, and NULL.
|
override |
Get value from delegate device.
Definition at line 398 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Get current matrix from delegate device.
Definition at line 164 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Get the pen from the delegate device.
Definition at line 213 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice, and NULL.
|
override |
Get the text property from the delegate device.
Definition at line 245 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice, and NULL.
|
override |
Multiply the current matrix in the delegate device by this one.
Definition at line 171 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
static |
|
override |
Pope matrix from the delegate device.
Definition at line 185 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Push matrix in the delegate device.
Definition at line 178 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
| void vtkBoundingRectContextDevice2D::Reset | ( | ) |
reset the bounding box.
Definition at line 41 of file vtkBoundingRectContextDevice2D.cpp.
References BoundingRect, and Initialized.
|
override |
Implement pure virtual member function. Does nothing.
Definition at line 199 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Implement pure virtual member function. Does not affect bounding rect.
Definition at line 121 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Implement pure virtual member function. Forward line type to delegate device.
Definition at line 150 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Implement pure virtual member function. Forward line width to delegate device.
Definition at line 143 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Forward current matrix to delegate device.
Definition at line 157 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Implement pure virtual member function. Does not affect bounding rect.
Definition at line 136 of file vtkBoundingRectContextDevice2D.cpp.
References DelegateDevice.
|
override |
Implement pure virtual member function. Does not affect bounding rect.
Definition at line 128 of file vtkBoundingRectContextDevice2D.cpp.
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.
Definition at line 284 of file vtkBoundingRectContextDevice2D.h.
Referenced by AddPoint(), AddRect(), GetBoundingRect(), and Reset().
|
protected |
Delegate ContextDevice2D to handle certain computations
Definition at line 289 of file vtkBoundingRectContextDevice2D.h.
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?
Definition at line 278 of file vtkBoundingRectContextDevice2D.h.
Referenced by AddPoint(), AddRect(), and Reset().
| vtkIndent indent vtkBoundingRectContextDevice2D::override |
Definition at line 20 of file vtkBoundingRectContextDevice2D.h.