|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   26 #include "vtkChartsCoreModule.h"  
   59   void SetGeometry(
const vtkRectf& bounds);
 
   64   void SetAngle(
double angle);
 
   69   void SetAroundX(
bool isX);
 
   84   virtual void SetAxis(
int axisIndex, 
vtkAxis* axis);
 
   98   void SetAutoRotate(
bool b);
 
  104   void SetDecorateAxes(
bool b);
 
  110   void SetFitToScene(
bool b);
 
  136   void RecalculateBounds();
 
  143   void RecalculateTransform();
 
  181   virtual void CalculateTransforms();
 
  244   bool CheckForSceneResize();
 
  259   void ScaleDownAxes();
 
  264   void ZoomAxes(
int delta);
 
  270   void InitializeAxesBoundaryPoints();
 
  281   void InitializeFutureBox();
 
  286   void ComputeDataBounds();
 
  297   void DetermineWhichAxesToLabel();
 
  314   void GetOffsetForAxisLabel(
int axis, 
float* bounds, 
float* 
offset);
 
  321   double CalculateNiceMinMax(
double& min, 
double& 
max, 
int axis);
 
  326   void GetClippingPlaneEquation(
int i, 
double* planeEquation);
 
  336   std::vector<vtkSmartPointer<vtkAxis> > 
Axes;
 
  464   float AxesBoundaryPoints[14][3];
 
  470   float TickLabelOffset[3][2];
 
  494   int DirectionToData[3];
 
  499   double DataBounds[4];
 
  
vtkNew< vtkTransform > Scale
This transform keeps track of how the data points have been scaled (zoomed in or zoomed out) within t...
vtkNew< vtkTransform > Box
This is the transform that is applied when rendering data from the plots.
vtkNew< vtkPen > Pen
This is the pen that is used to draw data from the plots.
data structure to represent mouse events.
vtkNew< vtkTransform > BoxScale
This transform keeps track of how the axes have been scaled (zoomed in or zoomed out).
data structure to represent key events.
vtkNew< vtkTransform > Rotation
This transform keeps track of how the chart has been rotated.
vtkNew< vtkTransform > PlotTransform
This transform translates and scales the plots' data points so that they appear within the axes of th...
A table, which contains similar-typed columns of data.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
bool IsX
When we're in AutoRotate mode, this boolean tells us if we should rotate about the X axis or the Y ax...
virtual bool KeyPressEvent(const vtkContextKeyEvent &key)
Key press event.
Factory class for drawing 3D XYZ charts.
dynamic, self-adjusting array of unsigned char
An algorithm for linking annotations among objects.
Class for drawing 2D primitives to a graphical context.
std::string YAxisLabel
The label for the Y Axis.
vtkSmartPointer< vtkAnnotationLink > Link
This link is used to share selected points with other classes.
std::string ZAxisLabel
The label for the Z Axis.
a simple class to control print indentation
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
std::vector< vtkSmartPointer< vtkAxis > > Axes
The 3 axes of this chart.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRectf Geometry
The size and position of this chart.
double Angle
When we're in AutoRotate mode, this value tells the chart how much it should be rotated.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
std::vector< vtkPlot3D * > Plots
The plots that are drawn within this chart.
vtkNew< vtkTransform > ContextTransform
This is the transform that is applied when rendering data from the plots.
vtkNew< vtkTransform > Translation
This transform keeps track of how the data points have been panned within the chart.
bool FitToScene
This boolean indicates whether or not we should automatically resize the chart so that it snugly fill...
base class for items that are part of a vtkContextScene.
Abstract class for 3D plots.
vtkNew< vtkPlaneCollection > BoundingCube
The six planes that define the bounding cube of our 3D axes.
vtkNew< vtkTransform > FutureBox
This transform is initialized as a copy of Box.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
vtkNew< vtkPen > AxisPen
This is the pen that is used to draw the axes.
takes care of drawing 2D axes
vtkNew< vtkTransform > FutureBoxScale
This transform keeps track of the Scale of the FutureBox transform.
Class for drawing 3D primitives to a graphical context.
int SceneHeight
The height of the scene, as of the most recent call to Paint().
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event Return true if the item holds the event, false if the event can be propagated...
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
maintain a list of planes
bool DrawAxesDecoration
This boolean indicates whether or not we should draw tick marks and axes labels.
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
Mouse wheel event, positive delta indicates forward movement of the wheel.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
std::string XAxisLabel
The label for the X Axis.
bool AutoRotate
This boolean indicates whether or not we're using this chart to rotate on a timer.
int SceneWidth
The weight of the scene, as of the most recent call to Paint().