59 #ifndef __vtkCubeAxesActor_h
60 #define __vtkCubeAxesActor_h
62 #define VTK_FLY_OUTER_EDGES 0
63 #define VTK_FLY_CLOSEST_TRIAD 1
64 #define VTK_FLY_FURTHEST_TRIAD 2
65 #define VTK_FLY_STATIC_TRIAD 3
66 #define VTK_FLY_STATIC_EDGES 4
68 #define VTK_TICKS_INSIDE 0
69 #define VTK_TICKS_OUTSIDE 1
70 #define VTK_TICKS_BOTH 2
72 #define NUMBER_OF_ALIGNED_AXIS 4
93 virtual int RenderTranslucentGeometry(
vtkViewport*);
101 vtkSetMacro( RebuildAxes,
bool );
102 vtkGetMacro( RebuildAxes,
bool );
110 vtkSetVector6Macro(Bounds,
double);
112 void GetBounds(
double& xmin,
double& xmax,
double& ymin,
double& ymax,
113 double& zmin,
double& zmax);
125 vtkSetVector2Macro( XAxisRange,
double );
126 vtkSetVector2Macro( YAxisRange,
double );
127 vtkSetVector2Macro( ZAxisRange,
double );
128 vtkGetVector2Macro( XAxisRange,
double );
129 vtkGetVector2Macro( YAxisRange,
double );
130 vtkGetVector2Macro( ZAxisRange,
double );
137 void SetScreenSize(
double screenSize);
138 vtkGetMacro(ScreenSize,
double);
153 vtkGetMacro(FlyMode,
int);
154 void SetFlyModeToOuterEdges()
156 void SetFlyModeToClosestTriad()
158 void SetFlyModeToFurthestTriad()
160 void SetFlyModeToStaticTriad()
162 void SetFlyModeToStaticEdges()
169 vtkSetStringMacro(XTitle);
170 vtkGetStringMacro(XTitle);
171 vtkSetStringMacro(XUnits);
172 vtkGetStringMacro(XUnits);
173 vtkSetStringMacro(YTitle);
174 vtkGetStringMacro(YTitle);
175 vtkSetStringMacro(YUnits);
176 vtkGetStringMacro(YUnits);
177 vtkSetStringMacro(ZTitle);
178 vtkGetStringMacro(ZTitle);
179 vtkSetStringMacro(ZUnits);
180 vtkGetStringMacro(ZUnits);
186 vtkSetStringMacro(XLabelFormat);
187 vtkGetStringMacro(XLabelFormat);
188 vtkSetStringMacro(YLabelFormat);
189 vtkGetStringMacro(YLabelFormat);
190 vtkSetStringMacro(ZLabelFormat);
191 vtkGetStringMacro(ZLabelFormat);
199 vtkGetMacro(Inertia,
int);
206 vtkSetMacro(CornerOffset,
double);
207 vtkGetMacro(CornerOffset,
double);
218 vtkSetMacro( EnableDistanceLOD,
int );
219 vtkGetMacro( EnableDistanceLOD,
int );
224 vtkSetClampMacro( DistanceLODThreshold,
double, 0.0, 1.0 );
225 vtkGetMacro( DistanceLODThreshold,
double);
231 vtkSetMacro( EnableViewAngleLOD,
int );
232 vtkGetMacro( EnableViewAngleLOD,
int );
237 vtkSetClampMacro( ViewAngleLODThreshold,
double, 0., 1. );
238 vtkGetMacro( ViewAngleLODThreshold,
double );
243 vtkSetMacro(XAxisVisibility,
int);
244 vtkGetMacro(XAxisVisibility,
int);
245 vtkBooleanMacro(XAxisVisibility,
int);
246 vtkSetMacro(YAxisVisibility,
int);
247 vtkGetMacro(YAxisVisibility,
int);
248 vtkBooleanMacro(YAxisVisibility,
int);
249 vtkSetMacro(ZAxisVisibility,
int);
250 vtkGetMacro(ZAxisVisibility,
int);
251 vtkBooleanMacro(ZAxisVisibility,
int);
256 vtkSetMacro(XAxisLabelVisibility,
int);
257 vtkGetMacro(XAxisLabelVisibility,
int);
258 vtkBooleanMacro(XAxisLabelVisibility,
int);
261 vtkSetMacro(YAxisLabelVisibility,
int);
262 vtkGetMacro(YAxisLabelVisibility,
int);
263 vtkBooleanMacro(YAxisLabelVisibility,
int);
265 vtkSetMacro(ZAxisLabelVisibility,
int);
266 vtkGetMacro(ZAxisLabelVisibility,
int);
267 vtkBooleanMacro(ZAxisLabelVisibility,
int);
271 vtkSetMacro(XAxisTickVisibility,
int);
272 vtkGetMacro(XAxisTickVisibility,
int);
273 vtkBooleanMacro(XAxisTickVisibility,
int);
276 vtkSetMacro(YAxisTickVisibility,
int);
277 vtkGetMacro(YAxisTickVisibility,
int);
278 vtkBooleanMacro(YAxisTickVisibility,
int);
280 vtkSetMacro(ZAxisTickVisibility,
int);
281 vtkGetMacro(ZAxisTickVisibility,
int);
282 vtkBooleanMacro(ZAxisTickVisibility,
int);
286 vtkSetMacro(XAxisMinorTickVisibility,
int);
287 vtkGetMacro(XAxisMinorTickVisibility,
int);
288 vtkBooleanMacro(XAxisMinorTickVisibility,
int);
291 vtkSetMacro(YAxisMinorTickVisibility,
int);
292 vtkGetMacro(YAxisMinorTickVisibility,
int);
293 vtkBooleanMacro(YAxisMinorTickVisibility,
int);
295 vtkSetMacro(ZAxisMinorTickVisibility,
int);
296 vtkGetMacro(ZAxisMinorTickVisibility,
int);
297 vtkBooleanMacro(ZAxisMinorTickVisibility,
int);
299 vtkSetMacro(DrawXGridlines,
int);
300 vtkGetMacro(DrawXGridlines,
int);
301 vtkBooleanMacro(DrawXGridlines,
int);
303 vtkSetMacro(DrawYGridlines,
int);
304 vtkGetMacro(DrawYGridlines,
int);
305 vtkBooleanMacro(DrawYGridlines,
int);
307 vtkSetMacro(DrawZGridlines,
int);
308 vtkGetMacro(DrawZGridlines,
int);
309 vtkBooleanMacro(DrawZGridlines,
int);
311 vtkSetMacro(DrawXInnerGridlines,
int);
312 vtkGetMacro(DrawXInnerGridlines,
int);
313 vtkBooleanMacro(DrawXInnerGridlines,
int);
315 vtkSetMacro(DrawYInnerGridlines,
int);
316 vtkGetMacro(DrawYInnerGridlines,
int);
317 vtkBooleanMacro(DrawYInnerGridlines,
int);
319 vtkSetMacro(DrawZInnerGridlines,
int);
320 vtkGetMacro(DrawZInnerGridlines,
int);
321 vtkBooleanMacro(DrawZInnerGridlines,
int);
323 vtkSetMacro(DrawXGridpolys,
int);
324 vtkGetMacro(DrawXGridpolys,
int);
325 vtkBooleanMacro(DrawXGridpolys,
int);
327 vtkSetMacro(DrawYGridpolys,
int);
328 vtkGetMacro(DrawYGridpolys,
int);
329 vtkBooleanMacro(DrawYGridpolys,
int);
331 vtkSetMacro(DrawZGridpolys,
int);
332 vtkGetMacro(DrawZGridpolys,
int);
333 vtkBooleanMacro(DrawZGridpolys,
int);
363 void SetXAxesInnerGridlinesProperty(
vtkProperty *);
365 void SetYAxesInnerGridlinesProperty(
vtkProperty *);
367 void SetZAxesInnerGridlinesProperty(
vtkProperty *);
384 vtkGetMacro(TickLocation,
int);
387 void SetTickLocationToInside(
void)
389 void SetTickLocationToOutside(
void)
391 void SetTickLocationToBoth(
void)
394 void SetLabelScaling(
bool,
int,
int,
int);
399 void SetUse2DMode(
int val );
404 void SetSaveTitlePosition(
int val );
410 int LabelExponent(
double min,
double max);
412 int Digits(
double min,
double max);
414 double MaxOf(
double,
double);
415 double MaxOf(
double,
double,
double,
double);
418 double FSign(
double,
double);
532 vtkSetStringMacro(ActualXLabel);
533 vtkSetStringMacro(ActualYLabel);
534 vtkSetStringMacro(ActualZLabel);
545 bool AutoLabelScaling;
551 double LastXRange[2];
552 double LastYRange[2];
553 double LastZRange[2];
565 bool MustAdjustXValue;
566 bool MustAdjustYValue;
567 bool MustAdjustZValue;
569 bool ForceXLabelReset;
570 bool ForceYLabelReset;
571 bool ForceZLabelReset;
573 double XAxisRange[2];
574 double YAxisRange[2];
575 double ZAxisRange[2];
585 double MajorStart[3];
586 double DeltaMajor[3];
589 void TransformBounds(
vtkViewport *viewport,
const double bounds[6],
591 void AdjustAxes(
double bounds[6],
593 double yCoords[NUMBER_OF_ALIGNED_AXIS][6],
594 double zCoords[NUMBER_OF_ALIGNED_AXIS][6],
595 double xRange[2],
double yRange[2],
double zRange[2]);
597 bool ComputeTickSize(
double bounds[6]);
598 void AdjustValues(
const double xRange[2],
599 const double yRange[2],
600 const double zRange[2]);
601 void AdjustRange(
const double bounds[6]);
604 void SetNonDependentAttributes(
void);
607 double rangeMin,
double rangeMax);