56 #ifndef vtkAxisActor_h
57 #define vtkAxisActor_h
62 #define VTK_MAX_LABELS 200
63 #define VTK_MAX_TICKS 1000
65 #define VTK_AXIS_TYPE_X 0
66 #define VTK_AXIS_TYPE_Y 1
67 #define VTK_AXIS_TYPE_Z 2
69 #define VTK_TICKS_INSIDE 0
70 #define VTK_TICKS_OUTSIDE 1
71 #define VTK_TICKS_BOTH 2
73 #define VTK_AXIS_POS_MINMIN 0
74 #define VTK_AXIS_POS_MINMAX 1
75 #define VTK_AXIS_POS_MAXMAX 2
76 #define VTK_AXIS_POS_MAXMIN 3
106 { this->SetPoint1(x[0], x[1], x[2]); }
107 virtual void SetPoint1(
double x,
double y,
double z);
108 virtual double *GetPoint1();
115 { this->SetPoint2(x[0], x[1], x[2]); }
116 virtual void SetPoint2(
double x,
double y,
double z);
117 virtual double *GetPoint2();
130 void SetBounds(
const double bounds[6]);
131 void SetBounds(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
160 void SetTitle(
const char *
t);
334 virtual int RenderTranslucentGeometry(
vtkViewport* viewport);
346 double ComputeMaxLabelLength(
const double [3]);
347 double ComputeTitleLength(
const double [3]);
349 void SetLabelScale(
const double scale);
350 void SetLabelScale(
int labelIndex,
const double scale);
351 void SetTitleScale(
const double scale);
358 double GetMajorStart(
int axis);
359 void SetMajorStart(
int axis,
double value);
364 double GetDeltaMajor(
int axis);
365 void SetDeltaMajor(
int axis,
double value);
401 return this->LabelActors;
414 return this->LabelProps3D;
536 double AxisBaseForX[3];
537 double AxisBaseForY[3];
538 double AxisBaseForZ[3];
544 void TransformBounds(
vtkViewport *,
double bnds[6]);
551 void BuildTitle(
bool);
554 void SetAxisPointsAndLines(
void);
555 bool BuildTickPoints(
double p1[3],
double p2[3],
bool force);
557 bool TickVisibilityChanged(
void);
562 bool BoundsDisplayCoordinateChanged(
vtkViewport *viewport);
567 double MajorTickSize;
568 double MinorTickSize;
571 double MajorStart[3];
572 double DeltaMajor[3];
577 double MajorRangeStart;
578 double MinorRangeStart;
579 double DeltaRangeMinor;
580 double DeltaRangeMajor;
582 int LastAxisPosition;
584 int LastTickLocation;
585 double LastLabelStart;
631 int AxisHasZeroLength;
633 int CalculateTitleOffset;
634 int CalculateLabelOffset;
641 double VerticalOffsetXTitle2D;
645 double HorizontalOffsetYTitle2D;
651 int SaveTitlePosition;
654 double TitleConstantPosition[2];
659 double LastMinDisplayCoordinate[3];
660 double LastMaxDisplayCoordinate[3];
virtual void SetPoint1(double x[3])
represents an object (geometry & properties) in a rendered scene
#define VTK_TICKS_OUTSIDE
void SetAxisTypeToY(void)
int LastMinorTicksVisible
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
#define VTK_AXIS_POS_MAXMAX
abstract specification for Viewports
represent surface properties of a geometric object
int LastDrawInnerGridlines
GLenum GLenum GLenum GLenum GLenum scale
virtual void SetPoint2(double x[3])
virtual int RenderOverlay(vtkViewport *)
#define vtkGetMacro(name, type)
record modification and/or execution time
Create an axis with tick marks and labels.
vtkProp3DAxisFollower ** GetLabelProps3D()
a vtkAbstractArray subclass for strings
void SetTickLocationToInside(void)
#define vtkSetClampMacro(name, type, min, max)
GLsizei const GLfloat * value
concrete dataset represents vertices, lines, polygons, and triangle strips
#define vtkSetStringMacro(name)
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKRENDERINGANNOTATION_EXPORT
int DrawGridlinesLocation
void SetAxisPositionToMaxMin(void)
window superclass for vtkRenderWindow
void SetAxisTypeToX(void)
GLint GLint GLint GLint GLint x
An actor that displays text. Scaled or unscaled.
a simple class to control print indentation
a virtual camera for 3D rendering
void SetAxisPositionToMaxMax(void)
vtkAxisFollower ** GetLabelActors()
void SetTickLocationToBoth(void)
#define VTK_AXIS_POS_MAXMIN
#define vtkGetVector3Macro(name, type)
An actor that displays text.
#define vtkGetStringMacro(name)
represent text properties.
#define vtkGetObjectMacro(name, type)
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
void SetAxisPositionToMinMax(void)
map vtkPolyData to graphics primitives
void SetAxisPositionToMinMin(void)
#define VTK_AXIS_POS_MINMAX
a subclass of actor that always faces the camera
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vt...
virtual int HasTranslucentPolygonalGeometry()
int LastDrawGridlinesLocation
void ReleaseGraphicsResources(vtkWindow *)
#define vtkBooleanMacro(name, type)
represent surface properties of a 2D image
void SetAxisTypeToZ(void)
void SetTickLocationToOutside(void)
#define VTK_AXIS_POS_MINMIN
#define vtkSetVector3Macro(name, type)
#define vtkGetVectorMacro(name, type, count)
#define vtkSetVector2Macro(name, type)
represent and manipulate 3D points
#define vtkSetMacro(name, type)