61 #ifndef vtkCubeAxesActor_h 62 #define vtkCubeAxesActor_h 64 #define VTK_FLY_OUTER_EDGES 0 65 #define VTK_FLY_CLOSEST_TRIAD 1 66 #define VTK_FLY_FURTHEST_TRIAD 2 67 #define VTK_FLY_STATIC_TRIAD 3 68 #define VTK_FLY_STATIC_EDGES 4 70 #define VTK_TICKS_INSIDE 0 71 #define VTK_TICKS_OUTSIDE 1 72 #define VTK_TICKS_BOTH 2 74 #define VTK_GRID_LINES_ALL 0 75 #define VTK_GRID_LINES_CLOSEST 1 76 #define VTK_GRID_LINES_FURTHEST 2 78 #define NUMBER_OF_ALIGNED_AXIS 4 101 virtual int RenderTranslucentGeometry(
vtkViewport*);
125 virtual void GetRenderedBounds(
double rBounds[6]);
126 virtual double* GetRenderedBounds();
156 void SetScreenSize(
double screenSize);
163 void SetLabelOffset(
double offset);
170 void SetTitleOffset(
double offset);
396 void SetXAxesInnerGridlinesProperty(
vtkProperty *);
398 void SetYAxesInnerGridlinesProperty(
vtkProperty *);
400 void SetZAxesInnerGridlinesProperty(
vtkProperty *);
427 void SetLabelScaling(
bool,
int,
int,
int);
432 void SetUseTextActor3D(
int val );
433 int GetUseTextActor3D();
439 void SetUse2DMode(
int val );
444 void SetSaveTitlePosition(
int val );
522 void ComputeStickyAxesBoundingSphere(
vtkViewport* viewport,
const double bounds[6],
523 double sphereCenter[3],
double & sphereRadius);
527 void GetViewportLimitedBounds(
vtkViewport* viewport,
double bounds[6]);
532 static void GetBoundsPointBits(
unsigned int pointIndex,
535 unsigned int & zBit);
539 static void GetBoundsPoint(
unsigned int pointIndex,
const double bounds[6],
double point[3]);
541 int LabelExponent(
double min,
double max);
543 int Digits(
double min,
double max);
545 double MaxOf(
double,
double);
546 double MaxOf(
double,
double,
double,
double);
549 double FSign(
double,
double);
550 int FRound(
double fnt );
551 int GetNumTicks(
double range,
double fxt);
562 int FindClosestAxisIndex(
double pts[8][3]);
565 int FindFurtherstAxisIndex(
double pts[8][3]);
568 void FindBoundaryEdge(
int &indexOfAxisX,
int &indexOfAxisY,
int &indexOfAxisZ,
574 void UpdateGridLineVisibility(
int axisIndex);
686 double RenderedBounds[6];
687 double OrientedBounds[6];
690 double AxisOrigin[3];
693 double AxisBaseForX[3];
694 double AxisBaseForY[3];
695 double AxisBaseForZ[3];
706 int LastUseOrientedBounds;
715 bool AutoLabelScaling;
721 double LastXRange[2];
722 double LastYRange[2];
723 double LastZRange[2];
724 double LastBounds[6];
736 bool MustAdjustXValue;
737 bool MustAdjustYValue;
738 bool MustAdjustZValue;
740 bool ForceXLabelReset;
741 bool ForceYLabelReset;
742 bool ForceZLabelReset;
744 double XAxisRange[2];
745 double YAxisRange[2];
746 double ZAxisRange[2];
758 double MajorStart[3];
759 double DeltaMajor[3];
764 void TransformBounds(
vtkViewport *viewport,
const double bounds[6],
766 void AdjustAxes(
double bounds[6],
768 double yCoords[NUMBER_OF_ALIGNED_AXIS][6],
769 double zCoords[NUMBER_OF_ALIGNED_AXIS][6],
770 double xRange[2],
double yRange[2],
double zRange[2]);
772 bool ComputeTickSize(
double bounds[6]);
773 void AdjustValues(
const double xRange[2],
774 const double yRange[2],
775 const double zRange[2]);
776 void AdjustRange(
const double bounds[6]);
779 void SetNonDependentAttributes(
void);
782 double rangeMin,
double rangeMax);
#define VTK_FLY_CLOSEST_TRIAD
#define NUMBER_OF_ALIGNED_AXIS
represents an object (geometry & properties) in a rendered scene
void SetFlyModeToStaticEdges()
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
abstract specification for Viewports
represent surface properties of a geometric object
double ViewAngleLODThreshold
virtual int RenderOverlay(vtkViewport *)
#define vtkGetMacro(name, type)
record modification and/or execution time
Create an axis with tick marks and labels.
#define VTK_FLY_STATIC_EDGES
vtkProperty * YAxesGridlinesProperty
vtkProperty * ZAxesLinesProperty
a vtkAbstractArray subclass for strings
void SetTickLocationToInside(void)
#define VTK_FLY_FURTHEST_TRIAD
#define vtkSetClampMacro(name, type, min, max)
void SetFlyModeToFurthestTriad()
#define vtkSetStringMacro(name)
vtkProperty * XAxesGridpolysProperty
vtkProperty * YAxesLinesProperty
#define vtkTypeMacro(thisClass, superclass)
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKRENDERINGANNOTATION_EXPORT
void SetFlyModeToOuterEdges()
double DistanceLODThreshold
create a plot of a bounding box edges -
window superclass for vtkRenderWindow
vtkProperty * XAxesLinesProperty
vtkProperty * ZAxesInnerGridlinesProperty
a simple class to control print indentation
vtkProperty * ZAxesGridpolysProperty
a virtual camera for 3D rendering
#define VTK_FLY_OUTER_EDGES
int ZAxisMinorTickVisibility
#define vtkGetVector3Macro(name, type)
vtkProperty * ZAxesGridlinesProperty
#define VTK_FLY_STATIC_TRIAD
#define vtkGetStringMacro(name)
represent text properties.
#define vtkGetObjectMacro(name, type)
void SetTickLocationToOutside(void)
#define vtkSetVector6Macro(name, type)
void SetTickLocationToBoth(void)
int YAxisMinorTickVisibility
vtkProperty * YAxesGridpolysProperty
#define vtkGetVector2Macro(name, type)
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
virtual int HasTranslucentPolygonalGeometry()
int XAxisMinorTickVisibility
void SetFlyModeToStaticTriad()
vtkProperty * YAxesInnerGridlinesProperty
void ReleaseGraphicsResources(vtkWindow *)
#define vtkBooleanMacro(name, type)
vtkProperty * XAxesGridlinesProperty
void SetFlyModeToClosestTriad()
#define vtkGetVector6Macro(name, type)
#define vtkSetVector3Macro(name, type)
#define vtkSetVector2Macro(name, type)
#define VTK_TICKS_OUTSIDE
vtkProperty * XAxesInnerGridlinesProperty
#define vtkSetMacro(name, type)