54 #include "vtkChartsCoreModule.h" 90 TICK_WILKINSON_EXTENDED
102 virtual void SetPosition(
int position);
103 vtkGetMacro(Position,
int);
111 void SetPoint1(
float x,
float y);
118 vtkGetVector2Macro(Point1,
float);
127 void SetPoint2(
float x,
float y);
134 vtkGetVector2Macro(Point2,
float);
142 virtual void SetNumberOfTicks(
int numberOfTicks);
148 vtkGetMacro(NumberOfTicks,
int);
155 vtkSetMacro(TickLength,
float);
156 vtkGetMacro(TickLength,
float);
172 virtual void SetMinimum(
double minimum);
180 vtkGetMacro(Minimum,
double);
188 virtual void SetMaximum(
double maximum);
196 vtkGetMacro(Maximum,
double);
204 virtual void SetUnscaledMinimum(
double minimum);
210 vtkGetMacro(UnscaledMinimum,
double);
216 virtual void SetUnscaledMaximum(
double maximum);
222 vtkGetMacro(UnscaledMaximum,
double);
235 virtual void SetRange(
double minimum,
double maximum);
236 virtual void SetRange(
double range[2]);
237 virtual void SetUnscaledRange(
double minimum,
double maximum);
238 virtual void SetUnscaledRange(
double range[2]);
249 virtual void GetRange(
double*
range);
250 virtual void GetUnscaledRange(
double*
range);
256 virtual void SetMinimumLimit(
double lowest);
262 vtkGetMacro(MinimumLimit,
double);
268 virtual void SetMaximumLimit(
double highest);
274 vtkGetMacro(MaximumLimit,
double);
280 virtual void SetUnscaledMinimumLimit(
double lowest);
286 vtkGetMacro(UnscaledMinimumLimit,
double);
292 virtual void SetUnscaledMaximumLimit(
double highest);
298 vtkGetMacro(UnscaledMaximumLimit,
double);
305 vtkGetVector2Macro(Margins,
int);
312 vtkSetVector2Macro(Margins,
int);
343 vtkGetMacro(LogScaleActive,
bool);
353 vtkGetMacro(LogScale,
bool);
354 virtual void SetLogScale(
bool logScale);
355 vtkBooleanMacro(LogScale,
bool);
362 vtkSetMacro(GridVisible,
bool);
363 vtkGetMacro(GridVisible,
bool);
370 vtkSetMacro(LabelsVisible,
bool);
371 vtkGetMacro(LabelsVisible,
bool);
378 vtkSetMacro(RangeLabelsVisible,
bool);
379 vtkGetMacro(RangeLabelsVisible,
bool);
386 vtkSetMacro(LabelOffset,
float);
387 vtkGetMacro(LabelOffset,
float);
394 vtkSetMacro(TicksVisible,
bool);
395 vtkGetMacro(TicksVisible,
bool);
402 vtkSetMacro(AxisVisible,
bool);
403 vtkGetMacro(AxisVisible,
bool);
410 vtkSetMacro(TitleVisible,
bool);
411 vtkGetMacro(TitleVisible,
bool);
419 virtual void SetPrecision(
int precision);
420 vtkGetMacro(Precision,
int);
428 STANDARD_NOTATION = 0,
439 virtual void SetLabelFormat(
const std::string& fmt);
459 virtual void SetNotation(
int notation);
460 vtkGetMacro(Notation,
int);
477 vtkSetMacro(Behavior,
int);
478 vtkGetMacro(Behavior,
int);
485 vtkGetObjectMacro(Pen,
vtkPen);
492 vtkGetObjectMacro(GridPen,
vtkPen);
503 vtkSetMacro(TickLabelAlgorithm,
int);
504 vtkGetMacro(TickLabelAlgorithm,
int);
512 vtkSetMacro(ScalingFactor,
double);
513 vtkGetMacro(ScalingFactor,
double);
514 vtkSetMacro(Shift,
double);
515 vtkGetMacro(Shift,
double);
535 virtual void AutoScale();
541 virtual void RecalculateTickSpacing();
582 static double NiceNumber(
double number,
bool roundUp);
588 static double NiceMinMax(
double& min,
double&
max,
float pixelRange,
float tickPixelSpacing);
608 void UpdateLogScaleActive(
bool updateMinMaxFromUnscaled);
613 virtual void GenerateTickLabels(
double min,
double max);
618 virtual void GenerateTickLabels();
620 virtual void GenerateLabelFormat(
int notation,
double n);
631 double CalculateNiceMinMax(
double& min,
double&
max);
642 double LogScaleTickMark(
double number,
bool roundUp,
bool& niceValue,
int&
order);
655 virtual void GenerateLogSpacedLinearTicks(
int order,
double min,
double max);
667 void GenerateLogScaleTickMarks(
668 int order,
double min = 1.0,
double max = 9.0,
bool detailLabels =
true);
777 void operator=(
const vtkAxis&) =
delete;
782 bool InRange(
double value);
vtkTextProperty * LabelProperties
Location
Enumeration of the axis locations in a conventional XY chart.
Wrapper around std::string to keep symbols short.
double NonLogUnscaledMinLimit
vtkPen * Pen
This object stores the vtkPen that controls how the axis is drawn.
base class for items that are part of a vtkContextScene.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
std::string RangeLabelFormat
double Shift
Scaling factor used on this axis, this is used to accurately render very small/large numbers accurate...
record modification and/or execution time
dynamic, self-adjusting array of float
a vtkAbstractArray subclass for strings
int TickLabelAlgorithm
The algorithm being used to tick label placement.
dynamic, self-adjusting array of double
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
double UnscaledMinimumLimit
double UnscaledMaximumLimit
bool Resized
Flag to indicate that the axis has been resized.
Class for drawing 2D primitives to a graphical context.
takes care of drawing 2D axes
a simple class to control print indentation
vtkSmartPointer< vtkStringArray > TickLabels
The labels for the tick marks.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
represent text properties.
vtkPen * GridPen
This object stores the vtkPen that controls how the grid lines are drawn.
double ScalingFactor
Scaling factor used on this axis, this is used to accurately render very small/large numbers accurate...
vtkTextProperty * TitleProperties
bool CustomTickLabels
Are we using custom tick labels, or should the axis generate them?
vtkSmartPointer< vtkDoubleArray > TickPositions
Position of tick marks in screen coordinates.
bool UsingNiceMinMax
Hint as to whether a nice min/max was set, otherwise labels may not be present at the top/bottom of t...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
double NonLogUnscaledMaxLimit
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
vtkSmartPointer< vtkFloatArray > TickScenePositions
Position of tick marks in screen coordinates.
bool TickMarksDirty
Mark the tick labels as dirty when the min/max value is changed.