VTK
|
Factory class for drawing 3D XYZ charts. More...
#include <vtkChartXYZ.h>
Public Types | |
typedef vtkContextItem | Superclass |
![]() | |
typedef vtkAbstractContextItem | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkChartXYZ * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetGeometry (const vtkRectf &bounds) |
void | SetAngle (double angle) |
void | SetAroundX (bool isX) |
virtual void | SetAnnotationLink (vtkAnnotationLink *link) |
vtkAxis * | GetAxis (int axis) |
void | SetAutoRotate (bool b) |
void | SetDecorateAxes (bool b) |
void | SetFitToScene (bool b) |
virtual void | Update () |
virtual bool | Paint (vtkContext2D *painter) |
virtual vtkIdType | AddPlot (vtkPlot3D *plot) |
void | ClearPlots () |
void | RecalculateBounds () |
void | RecalculateTransform () |
virtual bool | Hit (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonPressEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseMoveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseWheelEvent (const vtkContextMouseEvent &mouse, int delta) |
void | SetAxisColor (const vtkColor4ub &color) |
vtkColor4ub | GetAxisColor () |
virtual bool | KeyPressEvent (const vtkContextKeyEvent &key) |
![]() | |
vtkContextItem * | NewInstance () const |
virtual double | GetOpacity () |
virtual void | SetOpacity (double) |
![]() | |
vtkAbstractContextItem * | NewInstance () const |
virtual bool | PaintChildren (vtkContext2D *painter) |
virtual void | ReleaseGraphicsResources () |
unsigned int | AddItem (vtkAbstractContextItem *item) |
bool | RemoveItem (vtkAbstractContextItem *item) |
bool | RemoveItem (unsigned int index) |
vtkAbstractContextItem * | GetItem (unsigned int index) |
unsigned int | GetItemIndex (vtkAbstractContextItem *item) |
unsigned int | GetNumberOfItems () |
void | ClearItems () |
unsigned int | Raise (unsigned int index) |
unsigned int | Lower (unsigned int index) |
virtual vtkAbstractContextItem * | GetPickedItem (const vtkContextMouseEvent &mouse) |
virtual bool | MouseEnterEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseLeaveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonReleaseEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseDoubleClickEvent (const vtkContextMouseEvent &mouse) |
virtual void | SetScene (vtkContextScene *scene) |
virtual void | SetParent (vtkAbstractContextItem *parent) |
virtual vtkVector2f | MapToParent (const vtkVector2f &point) |
virtual vtkVector2f | MapFromParent (const vtkVector2f &point) |
virtual vtkVector2f | MapToScene (const vtkVector2f &point) |
virtual vtkVector2f | MapFromScene (const vtkVector2f &point) |
virtual unsigned int | StackAbove (unsigned int index, unsigned int under) |
virtual unsigned int | StackUnder (unsigned int child, unsigned int above) |
virtual bool | KeyReleaseEvent (const vtkContextKeyEvent &key) |
vtkContextScene * | GetScene () |
vtkAbstractContextItem * | GetParent () |
virtual bool | GetVisible () |
virtual void | SetVisible (bool) |
virtual bool | GetInteractive () |
virtual void | SetInteractive (bool) |
![]() | |
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 vtkChartXYZ * | SafeDownCast (vtkObjectBase *o) |
static vtkChartXYZ * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkContextItem * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractContextItem * | SafeDownCast (vtkObjectBase *o) |
![]() | |
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 () |
Factory class for drawing 3D XYZ charts.
Definition at line 47 of file vtkChartXYZ.h.
Definition at line 50 of file vtkChartXYZ.h.
|
protected |
|
protected |
|
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 vtkContextItem.
|
static |
|
protectedvirtual |
Reimplemented from vtkContextItem.
vtkChartXYZ* vtkChartXYZ::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 vtkContextItem.
|
static |
void vtkChartXYZ::SetGeometry | ( | const vtkRectf & | bounds | ) |
Set the geometry in pixel coordinates (origin and width/height). This method also sets up the end points of the axes of the chart. For this reason, if you call SetAroundX(), you should call SetGeometry() afterwards.
void vtkChartXYZ::SetAngle | ( | double | angle | ) |
Set the rotation angle for the chart (AutoRotate mode only).
void vtkChartXYZ::SetAroundX | ( | bool | isX | ) |
Set whether or not we're rotating about the X axis.
|
virtual |
Set the vtkAnnotationLink for the chart.
void vtkChartXYZ::SetAxisColor | ( | const vtkColor4ub & | color | ) |
Set the color for the axes.
vtkColor4ub vtkChartXYZ::GetAxisColor | ( | ) |
Set the color for the axes.
void vtkChartXYZ::SetAutoRotate | ( | bool | b | ) |
Set whether or not we're using this chart to rotate on a timer. Default value is false.
void vtkChartXYZ::SetDecorateAxes | ( | bool | b | ) |
Set whether or not axes labels & tick marks should be drawn. Default value is true.
void vtkChartXYZ::SetFitToScene | ( | bool | b | ) |
Set whether or not the chart should automatically resize itself to fill the scene. Default value is true.
|
virtual |
Perform any updates to the item that may be necessary before rendering.
Reimplemented from vtkAbstractContextItem.
|
virtual |
Paint event for the chart, called whenever the chart needs to be drawn.
Reimplemented from vtkAbstractContextItem.
void vtkChartXYZ::ClearPlots | ( | ) |
Remove all the plots from this chart.
void vtkChartXYZ::RecalculateBounds | ( | ) |
Determine the XYZ bounds of the plots within this chart. This information is then used to set the range of the axes.
void vtkChartXYZ::RecalculateTransform | ( | ) |
Use this chart's Geometry to set the endpoints of its axes. This method also sets up a transformation that is used to properly render the data within the chart.
|
virtual |
Returns true if the transform is interactive, false otherwise.
Reimplemented from vtkAbstractContextItem.
|
virtual |
Mouse press event. Keep track of zoom anchor position.
Reimplemented from vtkAbstractContextItem.
|
virtual |
Mouse move event. Perform pan or zoom as specified by the mouse bindings.
Reimplemented from vtkAbstractContextItem.
|
virtual |
Mouse wheel event. Zooms in or out.
Reimplemented from vtkAbstractContextItem.
|
virtual |
Key press event. This allows the user to snap the chart to one of three different 2D views. "x" changes the view so we're looking down the X axis. Similar behavior occurs for "y" or "z".
Reimplemented from vtkAbstractContextItem.
|
protectedvirtual |
Calculate the transformation matrices used to draw data points and axes in the scene. This function also sets up clipping planes that determine whether or not a data point is within range.
|
protected |
Given the x, y and z vtkAxis, and a transform, calculate the transform that the points in a chart would need to be drawn within the axes. This assumes that the axes have the correct start and end positions, and that they are perpendicular.
|
protected |
Rotate the chart in response to a mouse movement.
|
protected |
Pan the data within the chart in response to a mouse movement.
|
protected |
Zoom in or out on the data in response to a mouse movement.
|
protected |
Spin the chart in response to a mouse movement.
|
protected |
Adjust the rotation of the chart so that we are looking down the X axis.
|
protected |
Adjust the rotation of the chart so that we are looking down the Y axis.
|
protected |
Adjust the rotation of the chart so that we are looking down the Z axis.
|
protected |
Adjust the rotation of the chart so that we are looking up the X axis.
|
protected |
Adjust the rotation of the chart so that we are looking up the Y axis.
|
protected |
Adjust the rotation of the chart so that we are looking up the Z axis.
|
protected |
Check to see if the scene changed size since the last render.
|
protected |
Scale the axes up or down in response to a scene resize.
|
protected |
Scale up the axes when the scene gets larger.
|
protected |
Scale down the axes when the scene gets smaller.
|
protected |
Change the scaling of the axes by a specified amount.
|
protected |
Initialize a list of "test points". These are used to determine whether or not the chart fits completely within the bounds of the current scene.
|
protected |
Initialize the "future box" transform. This transform is a duplicate of the Box transform, which dictates how the chart's axes should be drawn. In ScaleUpAxes() and ScaleDownAxes(), we incrementally change the scaling of the FutureBox transform to determine how much we need to zoom in or zoom out to fit the chart within the newly resized scene. Using a separate transform for this process allows us to resize the Box in a single step.
|
protected |
Compute a bounding box for the data that is rendered within the axes.
|
protected |
Draw the cube axes of this chart.
|
protected |
For each of the XYZ dimensions, find the axis line that is furthest from the rendered data.
|
protected |
Draw tick marks and tick mark labels along the axes.
|
protected |
Label the axes.
Compute how some text should be offset from an axis. The parameter bounds contains the bounding box of the text to be rendered. The result is stored in the parameter offset.
Calculate the next "nicest" numbers above and below the current minimum.
Get the equation for the ith face of our bounding cube.
|
protected |
The size and position of this chart.
Definition at line 249 of file vtkChartXYZ.h.
|
protected |
The 3 axes of this chart.
Definition at line 252 of file vtkChartXYZ.h.
|
protected |
This boolean indicates whether or not we're using this chart to rotate on a timer.
Definition at line 256 of file vtkChartXYZ.h.
|
protected |
When we're in AutoRotate mode, this boolean tells us if we should rotate about the X axis or the Y axis.
Definition at line 260 of file vtkChartXYZ.h.
|
protected |
When we're in AutoRotate mode, this value tells the chart how much it should be rotated.
Definition at line 264 of file vtkChartXYZ.h.
|
protected |
This boolean indicates whether or not we should draw tick marks and axes labels.
Definition at line 268 of file vtkChartXYZ.h.
|
protected |
This boolean indicates whether or not we should automatically resize the chart so that it snugly fills up the scene.
Definition at line 272 of file vtkChartXYZ.h.
|
protected |
This is the transform that is applied when rendering data from the plots.
Definition at line 276 of file vtkChartXYZ.h.
|
protected |
This transform translates and scales the plots' data points so that they appear within the axes of this chart. It is one of the factors that makes up the ContextTransform.
Definition at line 281 of file vtkChartXYZ.h.
|
protected |
This is the transform that is applied when rendering data from the plots.
Definition at line 285 of file vtkChartXYZ.h.
|
protected |
This transform keeps track of how the chart has been rotated.
Definition at line 288 of file vtkChartXYZ.h.
|
protected |
This transform keeps track of how the data points have been panned within the chart.
Definition at line 292 of file vtkChartXYZ.h.
|
protected |
This transform keeps track of how the data points have been scaled (zoomed in or zoomed out) within the chart.
Definition at line 296 of file vtkChartXYZ.h.
|
protected |
This transform keeps track of how the axes have been scaled (zoomed in or zoomed out).
Definition at line 300 of file vtkChartXYZ.h.
|
protected |
This transform is initialized as a copy of Box. It is used within ScaleUpAxes() and ScaleDownAxes() to figure out how much we need to zoom in or zoom out to fit our chart within the newly resized scene.
Definition at line 305 of file vtkChartXYZ.h.
|
protected |
This transform keeps track of the Scale of the FutureBox transform.
Definition at line 308 of file vtkChartXYZ.h.
This is the pen that is used to draw data from the plots.
Definition at line 311 of file vtkChartXYZ.h.
This is the pen that is used to draw the axes.
Definition at line 314 of file vtkChartXYZ.h.
|
protected |
This link is used to share selected points with other classes.
Definition at line 317 of file vtkChartXYZ.h.
|
protected |
The plots that are drawn within this chart.
Definition at line 320 of file vtkChartXYZ.h.
|
protected |
The label for the X Axis.
Definition at line 323 of file vtkChartXYZ.h.
|
protected |
The label for the Y Axis.
Definition at line 326 of file vtkChartXYZ.h.
|
protected |
The label for the Z Axis.
Definition at line 329 of file vtkChartXYZ.h.
|
protected |
The six planes that define the bounding cube of our 3D axes.
Definition at line 332 of file vtkChartXYZ.h.
|
protected |
Points used to determine whether the axes will fit within the scene as currently sized, regardless of rotation.
Definition at line 336 of file vtkChartXYZ.h.
|
protected |
This member variable stores the size of the tick labels for each axis. It is used to determine the position of the axis labels.
Definition at line 340 of file vtkChartXYZ.h.
|
protected |
The height of the scene, as of the most recent call to Paint().
Definition at line 343 of file vtkChartXYZ.h.
|
protected |
The weight of the scene, as of the most recent call to Paint().
Definition at line 346 of file vtkChartXYZ.h.
|
protected |
Which line to label.
Definition at line 350 of file vtkChartXYZ.h.
|
protected |
Which line to label.
Definition at line 351 of file vtkChartXYZ.h.
|
protected |
Which line to label.
Definition at line 352 of file vtkChartXYZ.h.
|
protected |
What direction the data is from each labeled axis line.
Definition at line 356 of file vtkChartXYZ.h.
|
protected |
A bounding box surrounding the currently rendered data points.
Definition at line 359 of file vtkChartXYZ.h.