52 #ifndef __vtkCubeAxesActor_h
53 #define __vtkCubeAxesActor_h
55 #define VTK_FLY_OUTER_EDGES 0
56 #define VTK_FLY_CLOSEST_TRIAD 1
57 #define VTK_FLY_FURTHEST_TRIAD 2
58 #define VTK_FLY_STATIC_TRIAD 3
59 #define VTK_FLY_STATIC_EDGES 4
61 #define VTK_TICKS_INSIDE 0
62 #define VTK_TICKS_OUTSIDE 1
63 #define VTK_TICKS_BOTH 2
91 vtkSetVector6Macro(Bounds,
double);
93 void GetBounds(
double& xmin,
double& xmax,
double& ymin,
double& ymax,
94 double& zmin,
double& zmax);
106 vtkSetVector2Macro( XAxisRange,
double );
107 vtkSetVector2Macro( YAxisRange,
double );
108 vtkSetVector2Macro( ZAxisRange,
double );
109 vtkGetVector2Macro( XAxisRange,
double );
110 vtkGetVector2Macro( YAxisRange,
double );
111 vtkGetVector2Macro( ZAxisRange,
double );
126 vtkGetMacro(FlyMode,
int);
127 void SetFlyModeToOuterEdges()
129 void SetFlyModeToClosestTriad()
131 void SetFlyModeToFurthestTriad()
133 void SetFlyModeToStaticTriad()
135 void SetFlyModeToStaticEdges()
142 vtkSetStringMacro(XTitle);
143 vtkGetStringMacro(XTitle);
144 vtkSetStringMacro(XUnits);
145 vtkGetStringMacro(XUnits);
146 vtkSetStringMacro(YTitle);
147 vtkGetStringMacro(YTitle);
148 vtkSetStringMacro(YUnits);
149 vtkGetStringMacro(YUnits);
150 vtkSetStringMacro(ZTitle);
151 vtkGetStringMacro(ZTitle);
152 vtkSetStringMacro(ZUnits);
153 vtkGetStringMacro(ZUnits);
159 vtkSetStringMacro(XLabelFormat);
160 vtkGetStringMacro(XLabelFormat);
161 vtkSetStringMacro(YLabelFormat);
162 vtkGetStringMacro(YLabelFormat);
163 vtkSetStringMacro(ZLabelFormat);
164 vtkGetStringMacro(ZLabelFormat);
172 vtkGetMacro(Inertia,
int);
179 vtkSetMacro(CornerOffset,
double);
180 vtkGetMacro(CornerOffset,
double);
190 vtkSetMacro(XAxisVisibility,
int);
191 vtkGetMacro(XAxisVisibility,
int);
192 vtkBooleanMacro(XAxisVisibility,
int);
193 vtkSetMacro(YAxisVisibility,
int);
194 vtkGetMacro(YAxisVisibility,
int);
195 vtkBooleanMacro(YAxisVisibility,
int);
196 vtkSetMacro(ZAxisVisibility,
int);
197 vtkGetMacro(ZAxisVisibility,
int);
198 vtkBooleanMacro(ZAxisVisibility,
int);
203 vtkSetMacro(XAxisLabelVisibility,
int);
204 vtkGetMacro(XAxisLabelVisibility,
int);
205 vtkBooleanMacro(XAxisLabelVisibility,
int);
208 vtkSetMacro(YAxisLabelVisibility,
int);
209 vtkGetMacro(YAxisLabelVisibility,
int);
210 vtkBooleanMacro(YAxisLabelVisibility,
int);
212 vtkSetMacro(ZAxisLabelVisibility,
int);
213 vtkGetMacro(ZAxisLabelVisibility,
int);
214 vtkBooleanMacro(ZAxisLabelVisibility,
int);
218 vtkSetMacro(XAxisTickVisibility,
int);
219 vtkGetMacro(XAxisTickVisibility,
int);
220 vtkBooleanMacro(XAxisTickVisibility,
int);
223 vtkSetMacro(YAxisTickVisibility,
int);
224 vtkGetMacro(YAxisTickVisibility,
int);
225 vtkBooleanMacro(YAxisTickVisibility,
int);
227 vtkSetMacro(ZAxisTickVisibility,
int);
228 vtkGetMacro(ZAxisTickVisibility,
int);
229 vtkBooleanMacro(ZAxisTickVisibility,
int);
233 vtkSetMacro(XAxisMinorTickVisibility,
int);
234 vtkGetMacro(XAxisMinorTickVisibility,
int);
235 vtkBooleanMacro(XAxisMinorTickVisibility,
int);
238 vtkSetMacro(YAxisMinorTickVisibility,
int);
239 vtkGetMacro(YAxisMinorTickVisibility,
int);
240 vtkBooleanMacro(YAxisMinorTickVisibility,
int);
242 vtkSetMacro(ZAxisMinorTickVisibility,
int);
243 vtkGetMacro(ZAxisMinorTickVisibility,
int);
244 vtkBooleanMacro(ZAxisMinorTickVisibility,
int);
246 vtkSetMacro(DrawXGridlines,
int);
247 vtkGetMacro(DrawXGridlines,
int);
248 vtkBooleanMacro(DrawXGridlines,
int);
250 vtkSetMacro(DrawYGridlines,
int);
251 vtkGetMacro(DrawYGridlines,
int);
252 vtkBooleanMacro(DrawYGridlines,
int);
254 vtkSetMacro(DrawZGridlines,
int);
255 vtkGetMacro(DrawZGridlines,
int);
256 vtkBooleanMacro(DrawZGridlines,
int);
261 vtkGetMacro(TickLocation,
int);
264 void SetTickLocationToInside(
void)
266 void SetTickLocationToOutside(
void)
268 void SetTickLocationToBoth(
void)
271 void SetLabelScaling(
bool,
int,
int,
int);
279 int LabelExponent(
double min,
double max);
280 int Digits(
double min,
double max);
281 double MaxOf(
double,
double);
282 double MaxOf(
double,
double,
double,
double);
284 double FSign(
double,
double);
344 vtkSetStringMacro(ActualXLabel);
345 vtkSetStringMacro(ActualYLabel);
346 vtkSetStringMacro(ActualZLabel);
355 bool AutoLabelScaling;
359 double LastXRange[2];
360 double LastYRange[2];
361 double LastZRange[2];
371 bool MustAdjustXValue;
372 bool MustAdjustYValue;
373 bool MustAdjustZValue;
374 bool ForceXLabelReset;
375 bool ForceYLabelReset;
376 bool ForceZLabelReset;
378 double XAxisRange[2];
379 double YAxisRange[2];
380 double ZAxisRange[2];
383 void TransformBounds(
vtkViewport *viewport,
const double bounds[6],
385 void AdjustAxes(
double bounds[6],
386 double xCoords[4][6],
double yCoords[4][6],
387 double zCoords[4][6],
388 double xRange[2],
double yRange[2],
double zRange[2]);
390 bool ComputeTickSize(
double bounds[6]);
391 void AdjustValues(
const double xRange[2],
392 const double yRange[2],
393 const double zRange[2]);
394 void AdjustRange(
const double bounds[6]);
397 void SetNonDependentAttributes(
void);
400 double rangeMin,
double rangeMax);