51 #ifndef __vtkCubeAxesActor2D_h
52 #define __vtkCubeAxesActor2D_h
54 #include "vtkRenderingAnnotationModule.h"
57 #define VTK_FLY_OUTER_EDGES 0
58 #define VTK_FLY_CLOSEST_TRIAD 1
59 #define VTK_FLY_NONE 2
64 class vtkCubeAxesActor2DConnection;
101 void SetViewProp(
vtkProp* prop);
102 vtkGetObjectMacro(ViewProp,
vtkProp);
110 vtkSetVector6Macro(Bounds,
double);
112 void GetBounds(
double& xmin,
double& xmax,
double& ymin,
double& ymax,
113 double& zmin,
double& zmax);
121 vtkSetVector6Macro(Ranges,
double);
123 void GetRanges(
double& xmin,
double& xmax,
double& ymin,
double& ymax,
124 double& zmin,
double& zmax);
125 void GetRanges(
double ranges[6]);
132 vtkSetMacro( XOrigin,
double );
133 vtkSetMacro( YOrigin,
double );
134 vtkSetMacro( ZOrigin,
double );
140 vtkSetMacro(UseRanges,
int);
141 vtkGetMacro(UseRanges,
int);
142 vtkBooleanMacro(UseRanges,
int);
157 vtkGetMacro(FlyMode,
int);
158 void SetFlyModeToOuterEdges()
160 void SetFlyModeToClosestTriad()
162 void SetFlyModeToNone()
171 vtkSetMacro(Scaling,
int);
172 vtkGetMacro(Scaling,
int);
173 vtkBooleanMacro(Scaling,
int);
180 vtkSetClampMacro(NumberOfLabels,
int, 0, 50);
181 vtkGetMacro(NumberOfLabels,
int);
187 vtkSetStringMacro(XLabel);
189 vtkSetStringMacro(YLabel);
191 vtkSetStringMacro(ZLabel);
199 {
return this->XAxis;}
201 {
return this->YAxis;}
203 {
return this->ZAxis;}
223 vtkSetStringMacro(LabelFormat);
230 vtkSetClampMacro(FontFactor,
double, 0.1, 2.0);
231 vtkGetMacro(FontFactor,
double);
239 vtkGetMacro(Inertia,
int);
249 vtkSetClampMacro(ShowActualBounds,
int, 0, 1);
250 vtkGetMacro(ShowActualBounds,
int);
257 vtkSetMacro(CornerOffset,
double);
258 vtkGetMacro(CornerOffset,
double);
268 vtkSetMacro(XAxisVisibility,
int);
269 vtkGetMacro(XAxisVisibility,
int);
270 vtkBooleanMacro(XAxisVisibility,
int);
271 vtkSetMacro(YAxisVisibility,
int);
272 vtkGetMacro(YAxisVisibility,
int);
273 vtkBooleanMacro(YAxisVisibility,
int);
274 vtkSetMacro(ZAxisVisibility,
int);
275 vtkGetMacro(ZAxisVisibility,
int);
276 vtkBooleanMacro(ZAxisVisibility,
int);
333 void TransformBounds(
vtkViewport *viewport,
double bounds[6],
335 int ClipBounds(
vtkViewport *viewport,
double pts[8][3],
double bounds[6]);
336 double EvaluatePoint(
double planes[24],
double x[3]);
337 double EvaluateBounds(
double planes[24],
double bounds[6]);
338 void AdjustAxes(
double pts[8][3],
double bounds[6],
339 int idx,
int xIdx,
int yIdx,
int zIdx,
int zIdx2,
340 int xAxes,
int yAxes,
int zAxes,
341 double xCoords[4],
double yCoords[4],
double zCoords[4],
342 double xRange[2],
double yRange[2],
double zRange[2]);