60 #ifndef vtkAxisActor2D_h
61 #define vtkAxisActor2D_h
71 #define VTK_MAX_LABELS 25
107 vtkSetVector2Macro(Range,
double);
108 vtkGetVectorMacro(Range,
double,2);
115 vtkSetMacro(RulerMode,
int);
116 vtkGetMacro(RulerMode,
int);
117 vtkBooleanMacro(RulerMode,
int);
124 vtkGetMacro(RulerDistance,
double);
132 vtkGetMacro(NumberOfLabels,
int);
137 vtkSetStringMacro(LabelFormat);
138 vtkGetStringMacro(LabelFormat);
148 vtkSetMacro(AdjustLabels,
int);
149 vtkGetMacro(AdjustLabels,
int);
150 vtkBooleanMacro(AdjustLabels,
int);
153 this->UpdateAdjustedRange();
154 return this->AdjustedRange;
158 this->UpdateAdjustedRange();
159 _arg1 = this->AdjustedRange[0];
160 _arg2 = this->AdjustedRange[1];
164 this->GetAdjustedRange(_arg[0], _arg[1]);
168 this->UpdateAdjustedRange();
169 return this->AdjustedNumberOfLabels;
175 vtkSetStringMacro(Title);
176 vtkGetStringMacro(Title);
194 vtkSetClampMacro(TickLength,
int, 0, 100);
195 vtkGetMacro(TickLength,
int);
201 vtkSetClampMacro(NumberOfMinorTicks,
int, 0, 20);
202 vtkGetMacro(NumberOfMinorTicks,
int);
208 vtkSetClampMacro(MinorTickLength,
int, 0, 100);
209 vtkGetMacro(MinorTickLength,
int);
216 vtkSetClampMacro(TickOffset,
int, 0, 100);
217 vtkGetMacro(TickOffset,
int);
222 vtkSetMacro(AxisVisibility,
int);
223 vtkGetMacro(AxisVisibility,
int);
224 vtkBooleanMacro(AxisVisibility,
int);
229 vtkSetMacro(TickVisibility,
int);
230 vtkGetMacro(TickVisibility,
int);
231 vtkBooleanMacro(TickVisibility,
int);
236 vtkSetMacro(LabelVisibility,
int);
237 vtkGetMacro(LabelVisibility,
int);
238 vtkBooleanMacro(LabelVisibility,
int);
243 vtkSetMacro(TitleVisibility,
int);
244 vtkGetMacro(TitleVisibility,
int);
245 vtkBooleanMacro(TitleVisibility,
int);
251 vtkSetMacro(TitlePosition,
double);
252 vtkGetMacro(TitlePosition,
double);
259 vtkSetClampMacro(FontFactor,
double, 0.1, 2.0);
260 vtkGetMacro(FontFactor,
double);
266 vtkSetClampMacro(LabelFactor,
double, 0.1, 2.0);
267 vtkGetMacro(LabelFactor,
double);
294 static void ComputeRange(
double inRange[2],
309 static int SetMultipleFontSize(
vtkViewport *viewport,
321 vtkSetMacro(SizeFontRelativeToAxis,
int);
322 vtkGetMacro(SizeFontRelativeToAxis,
int);
323 vtkBooleanMacro(SizeFontRelativeToAxis,
int);
351 double AdjustedRange[2];
361 int LastPosition2[2];
364 int LastMaxLabelSize[2];
369 static double ComputeStringOffset(
double width,
double height,
double theta);
370 static void SetOffsetPosition(
double xTick[3],
double theta,
371 int stringHeight,
int stringWidth,
373 virtual void UpdateAdjustedRange();
abstract superclass for all actors, volumes and annotations
virtual void GetAdjustedRange(double _arg[2])
virtual void SetPosition(float x[2])
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract specification for Viewports
virtual double * GetPoint1()
a actor that draws 2D data
record modification and/or execution time
vtkActor2D ** LabelActors
virtual vtkCoordinate * GetPositionCoordinate()
Create an axis with tick marks and labels.
vtkTextProperty * TitleTextProperty
virtual void SetPoint1(double x, double y)
int AdjustedNumberOfLabels
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void SetPoint2(double x, double y)
virtual float * GetPosition2()
#define VTKRENDERINGANNOTATION_EXPORT
virtual vtkCoordinate * GetPoint2Coordinate()
virtual void GetAdjustedRange(double &_arg1, double &_arg2)
virtual vtkCoordinate * GetPoint1Coordinate()
window superclass for vtkRenderWindow
virtual double * GetAdjustedRange()
vtkTimeStamp AdjustedRangeBuildTime
vtkPolyDataMapper2D * AxisMapper
virtual int HasTranslucentPolygonalGeometry()
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
virtual double * GetPoint2()
a simple class to control print indentation
vtkTextMapper * TitleMapper
void PrintSelf(ostream &os, vtkIndent indent)
static vtkActor2D * New()
vtkTextMapper ** LabelMappers
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void SetPosition2(float x[2])
virtual float * GetPosition()
virtual void SetPoint2(double x[2])
virtual vtkCoordinate * GetPosition2Coordinate()
represent text properties.
vtkTextProperty * LabelTextProperty
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
virtual void SetPoint1(double x[2])
virtual void ShallowCopy(vtkProp *prop)
int SizeFontRelativeToAxis
virtual int RenderOverlay(vtkViewport *viewport)
virtual int GetAdjustedNumberOfLabels()
draw vtkPolyData onto the image plane