Go to the documentation of this file.
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]); }
115 { this->SetPoint2(
x[0],
x[1],
x[2]); }
131 void SetBounds(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
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];
map vtkPolyData to graphics primitives
represent and manipulate 3D points
void SetTitleScale(const double scale)
a subclass of actor that always faces the camera
#define vtkGetObjectMacro(name, type)
#define vtkSetVector2Macro(name, type)
Create an axis with tick marks and labels.
void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
vtkProp3DAxisFollower ** GetLabelProps3D()
void PrintSelf(ostream &os, vtkIndent indent)
void SetBounds(const double bounds[6])
#define vtkSetVector3Macro(name, type)
void SetTickLocationToInside(void)
void GetBounds(double bounds[6])
An actor that displays text.
void SetLabelScale(int labelIndex, const double scale)
int HasTranslucentPolygonalGeometry()
virtual void SetCamera(vtkCamera *)
record modification and/or execution time
int DrawGridlinesLocation
GLenum GLenum GLenum GLenum GLenum scale
#define vtkTypeMacro(thisClass, superclass)
static vtkAxisActor * New()
#define VTK_AXIS_POS_MINMIN
#define VTK_AXIS_POS_MINMAX
GLint GLint GLint GLint GLint x
void SetAxisTypeToY(void)
#define VTK_AXIS_POS_MAXMIN
int LastMinorTicksVisible
virtual vtkCoordinate * GetPoint1Coordinate()
double ComputeMaxLabelLength(const double[3])
virtual vtkCoordinate * GetPoint2Coordinate()
void SetDeltaMajor(int axis, double value)
#define vtkGetVectorMacro(name, type, count)
void SetTitle(const char *t)
#define VTK_TICKS_OUTSIDE
window superclass for vtkRenderWindow
vtkProperty * GetAxisLinesProperty()
#define vtkSetClampMacro(name, type, min, max)
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
#define vtkGetVector3Macro(name, type)
GLsizei const GLfloat * value
vtkProperty * GetGridpolysProperty()
double ComputeTitleLength(const double[3])
vtkProperty * GetInnerGridlinesProperty()
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
represents an object (geometry & properties) in a rendered scene
void ReleaseGraphicsResources(vtkWindow *)
An actor that displays text. Scaled or unscaled.
a simple class to control print indentation
#define vtkSetStringMacro(name)
a virtual camera for 3D rendering
void SetGridlinesProperty(vtkProperty *)
void SetAxisTypeToX(void)
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
virtual void SetPoint2(double x, double y, double z)
double GetMajorStart(int axis)
void SetAxisPositionToMaxMin(void)
#define vtkGetMacro(name, type)
void BuildAxis(vtkViewport *viewport, bool)
vtkGetStringMacro(ExtensionsString)
void SetAxisTypeToZ(void)
int LastDrawGridlinesLocation
abstract specification for Viewports
virtual double * GetPoint2()
vtkAxisFollower ** GetLabelActors()
void SetTickLocationToBoth(void)
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro(IgnoreDriverBugs, bool)
void SetTickLocationToOutside(void)
represent surface properties of a 2D image
void SetAxisLinesProperty(vtkProperty *)
void SetAxisPositionToMaxMax(void)
void SetMajorStart(int axis, double value)
GLint GLint GLint GLint GLint GLint y
void SetGridpolysProperty(vtkProperty *)
void SetLabels(vtkStringArray *labels)
virtual int RenderOverlay(vtkViewport *viewport)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
virtual void SetLabelTextProperty(vtkTextProperty *p)
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void SetPoint1(double x[3])
a vtkAbstractArray subclass for strings
#define VTK_AXIS_POS_MAXMAX
void SetAxisPositionToMinMax(void)
vtkProperty * GetGridlinesProperty()
represent surface properties of a geometric object
virtual void SetPoint1(double x, double y, double z)
void SetLabelScale(const double scale)
virtual void SetTitleTextProperty(vtkTextProperty *p)
a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vt...
void SetAxisPositionToMinMin(void)
virtual double * GetPoint1()
int LastDrawInnerGridlines
virtual void SetPoint2(double x[3])
double GetDeltaMajor(int axis)
#define VTKRENDERINGANNOTATION_EXPORT
void SetInnerGridlinesProperty(vtkProperty *)
virtual int RenderTranslucentGeometry(vtkViewport *viewport)