54 #include "vtkChartsCoreModule.h"
88 TICK_WILKINSON_EXTENDED
100 virtual void SetPosition(
int position);
101 vtkGetMacro(Position,
int);
109 void SetPoint1(
float x,
float y);
116 vtkGetVector2Macro(Point1,
float);
125 void SetPoint2(
float x,
float y);
132 vtkGetVector2Macro(Point2,
float);
140 virtual void SetNumberOfTicks(
int numberOfTicks);
146 vtkGetMacro(NumberOfTicks,
int);
154 vtkGetMacro(TickLength,
float);
170 virtual void SetMinimum(
double minimum);
178 vtkGetMacro(Minimum,
double);
186 virtual void SetMaximum(
double maximum);
194 vtkGetMacro(Maximum,
double);
202 virtual void SetUnscaledMinimum(
double minimum);
208 vtkGetMacro(UnscaledMinimum,
double);
214 virtual void SetUnscaledMaximum(
double maximum);
220 vtkGetMacro(UnscaledMaximum,
double);
233 virtual void SetRange(
double minimum,
double maximum);
234 virtual void SetRange(
double range[2]);
235 virtual void SetUnscaledRange(
double minimum,
double maximum);
236 virtual void SetUnscaledRange(
double range[2]);
247 virtual void GetRange(
double *
range);
248 virtual void GetUnscaledRange(
double *
range);
254 virtual void SetMinimumLimit(
double lowest);
260 vtkGetMacro(MinimumLimit,
double);
266 virtual void SetMaximumLimit(
double highest);
272 vtkGetMacro(MaximumLimit,
double);
278 virtual void SetUnscaledMinimumLimit(
double lowest);
284 vtkGetMacro(UnscaledMinimumLimit,
double);
290 virtual void SetUnscaledMaximumLimit(
double highest);
296 vtkGetMacro(UnscaledMaximumLimit,
double);
303 vtkGetVector2Macro(Margins,
int);
310 vtkSetVector2Macro(Margins,
int);
341 vtkGetMacro(LogScaleActive,
bool);
351 vtkGetMacro(LogScale,
bool);
352 virtual void SetLogScale(
bool logScale);
361 vtkGetMacro(GridVisible,
bool);
369 vtkGetMacro(LabelsVisible,
bool);
377 vtkGetMacro(RangeLabelsVisible,
bool);
385 vtkGetMacro(LabelOffset,
float);
393 vtkGetMacro(TicksVisible,
bool);
401 vtkGetMacro(AxisVisible,
bool);
409 virtual void SetPrecision(
int precision);
410 vtkGetMacro(Precision,
int);
417 STANDARD_NOTATION = 0,
428 virtual void SetLabelFormat(
const std::string &fmt);
448 virtual void SetNotation(
int notation);
449 vtkGetMacro(Notation,
int);
466 vtkGetMacro(Behavior,
int);
473 vtkGetObjectMacro(Pen,
vtkPen);
480 vtkGetObjectMacro(GridPen,
vtkPen);
492 vtkGetMacro(TickLabelAlgorithm,
int)
501 vtkGetMacro(ScalingFactor,
double)
503 vtkGetMacro(Shift,
double)
510 void Update() VTK_OVERRIDE;
523 virtual
void AutoScale();
529 virtual
void RecalculateTickSpacing();
571 static
double NiceNumber(
double number,
bool roundUp);
577 static
double NiceMinMax(
double &min,
double &
max,
float pixelRange,
578 float tickPixelSpacing);
588 ~vtkAxis() VTK_OVERRIDE;
598 void UpdateLogScaleActive(
bool updateMinMaxFromUnscaled);
603 void GenerateTickLabels(
double min,
double max);
608 void GenerateTickLabels();
610 void GenerateLabelFormat(
int notation,
double n);
621 double CalculateNiceMinMax(
double &min,
double &max);
632 double LogScaleTickMark(
double number,
648 void GenerateLogSpacedLinearTicks(
int order,
double min,
double max);
660 void GenerateLogScaleTickMarks(
int order,
663 bool detailLabels = true);
677 double UnscaledMinimum;
678 double UnscaledMaximum;
679 double UnscaledMinimumLimit;
680 double UnscaledMaximumLimit;
681 double NonLogUnscaledMinLimit;
682 double NonLogUnscaledMaxLimit;
690 bool RangeLabelsVisible;
696 std::
string LabelFormat;
697 std::
string RangeLabelFormat;
709 double ScalingFactor;
716 bool CustomTickLabels;
747 bool UsingNiceMinMax;
762 int TickLabelAlgorithm;
770 vtkAxis(const vtkAxis &) VTK_DELETE_FUNCTION;
771 void operator=(const vtkAxis &) VTK_DELETE_FUNCTION;
776 bool InRange(
double value);
Location
Enumeration of the axis locations in a conventional XY chart.
Wrapper around std::string to keep symbols short.
base class for items that are part of a vtkContextScene.
record modification and/or execution time
dynamic, self-adjusting array of float
a vtkAbstractArray subclass for strings
virtual void Update()
Updates the extensions string.
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of double
Class for drawing 2D primitives to a graphical context.
takes care of drawing 2D axes
a simple class to control print indentation
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...