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 );
499 int LabelExponent(
double min,
double max);
501 int Digits(
double min,
double max);
503 double MaxOf(
double,
double);
504 double MaxOf(
double,
double,
double,
double);
507 double FSign(
double,
double);
508 int FRound(
double fnt );
509 int GetNumTicks(
double range,
double fxt);
520 int FindClosestAxisIndex(
double pts[8][3]);
523 int FindFurtherstAxisIndex(
double pts[8][3]);
526 void FindBoundaryEdge(
int &indexOfAxisX,
int &indexOfAxisY,
int &indexOfAxisZ,
532 void UpdateGridLineVisibility(
int axisIndex);
638 double RenderedBounds[6];
639 double OrientedBounds[6];
642 double AxisOrigin[3];
645 double AxisBaseForX[3];
646 double AxisBaseForY[3];
647 double AxisBaseForZ[3];
658 int LastUseOrientedBounds;
667 bool AutoLabelScaling;
673 double LastXRange[2];
674 double LastYRange[2];
675 double LastZRange[2];
676 double LastBounds[6];
688 bool MustAdjustXValue;
689 bool MustAdjustYValue;
690 bool MustAdjustZValue;
692 bool ForceXLabelReset;
693 bool ForceYLabelReset;
694 bool ForceZLabelReset;
696 double XAxisRange[2];
697 double YAxisRange[2];
698 double ZAxisRange[2];
710 double MajorStart[3];
711 double DeltaMajor[3];
716 void TransformBounds(
vtkViewport *viewport,
const double bounds[6],
718 void AdjustAxes(
double bounds[6],
720 double yCoords[NUMBER_OF_ALIGNED_AXIS][6],
721 double zCoords[NUMBER_OF_ALIGNED_AXIS][6],
722 double xRange[2],
double yRange[2],
double zRange[2]);
724 bool ComputeTickSize(
double bounds[6]);
725 void AdjustValues(
const double xRange[2],
726 const double yRange[2],
727 const double zRange[2]);
728 void AdjustRange(
const double bounds[6]);
731 void SetNonDependentAttributes(
void);
734 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)
GLsizei const GLfloat * value
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)