Go to the documentation of this file.
57 #include "vtkChartsCoreModule.h"
91 TICK_WILKINSON_EXTENDED
104 vtkGetMacro(Position,
int);
119 vtkGetVector2Macro(Point1,
float);
135 vtkGetVector2Macro(Point2,
float);
149 vtkGetMacro(NumberOfTicks,
int);
156 vtkSetMacro(TickLength,
float);
157 vtkGetMacro(TickLength,
float);
181 vtkGetMacro(Minimum,
double);
197 vtkGetMacro(Maximum,
double);
211 vtkGetMacro(UnscaledMinimum,
double);
223 vtkGetMacro(UnscaledMaximum,
double);
236 virtual void SetRange(
double minimum,
double maximum);
263 vtkGetMacro(MinimumLimit,
double);
275 vtkGetMacro(MaximumLimit,
double);
287 vtkGetMacro(UnscaledMinimumLimit,
double);
299 vtkGetMacro(UnscaledMaximumLimit,
double);
306 vtkGetVector2Macro(Margins,
int);
313 vtkSetVector2Macro(Margins,
int);
344 vtkGetMacro(LogScaleActive,
bool);
354 vtkGetMacro(LogScale,
bool);
356 vtkBooleanMacro(LogScale,
bool);
363 vtkSetMacro(GridVisible,
bool);
364 vtkGetMacro(GridVisible,
bool);
371 vtkSetMacro(LabelsVisible,
bool);
372 vtkGetMacro(LabelsVisible,
bool);
379 vtkSetMacro(RangeLabelsVisible,
bool);
380 vtkGetMacro(RangeLabelsVisible,
bool);
387 vtkSetMacro(LabelOffset,
float);
388 vtkGetMacro(LabelOffset,
float);
395 vtkSetMacro(TicksVisible,
bool);
396 vtkGetMacro(TicksVisible,
bool);
403 vtkSetMacro(AxisVisible,
bool);
404 vtkGetMacro(AxisVisible,
bool);
411 vtkSetMacro(TitleVisible,
bool);
412 vtkGetMacro(TitleVisible,
bool);
421 vtkGetMacro(Precision,
int);
428 STANDARD_NOTATION = 0,
460 vtkGetMacro(Notation,
int);
476 vtkSetMacro(Behavior,
int);
477 vtkGetMacro(Behavior,
int);
502 vtkSetMacro(TickLabelAlgorithm,
int)
503 vtkGetMacro(TickLabelAlgorithm,
int)
511 vtkSetMacro(ScalingFactor,
double)
512 vtkGetMacro(ScalingFactor,
double)
513 vtkSetMacro(Shift,
double)
514 vtkGetMacro(Shift,
double)
521 void Update() override;
534 virtual
void AutoScale();
540 virtual
void RecalculateTickSpacing();
582 static
double NiceNumber(
double number,
bool roundUp);
588 static
double NiceMinMax(
double &min,
double &
max,
float pixelRange,
589 float tickPixelSpacing);
609 void UpdateLogScaleActive(
bool updateMinMaxFromUnscaled);
614 void GenerateTickLabels(
double min,
double max);
619 void GenerateTickLabels();
621 virtual
void GenerateLabelFormat(
int notation,
double n);
632 double CalculateNiceMinMax(
double &min,
double &
max);
643 double LogScaleTickMark(
double number,
659 virtual
void GenerateLogSpacedLinearTicks(
int order,
double min,
double max);
671 void GenerateLogScaleTickMarks(
int order,
674 bool detailLabels = true);
688 double UnscaledMinimum;
689 double UnscaledMaximum;
690 double UnscaledMinimumLimit;
691 double UnscaledMaximumLimit;
692 double NonLogUnscaledMinLimit;
693 double NonLogUnscaledMaxLimit;
701 bool RangeLabelsVisible;
708 std::
string LabelFormat;
709 std::
string RangeLabelFormat;
721 double ScalingFactor;
728 bool CustomTickLabels;
759 bool UsingNiceMinMax;
774 int TickLabelAlgorithm;
783 void operator=(const
vtkAxis &) = delete;
788 bool InRange(
double value);
virtual void GetUnscaledRange(double *range)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetPosition(int position)
Get/set the position of the axis (LEFT, BOTTOM, RIGHT, TOP, PARALLEL).
virtual void SetUnscaledRange(double range[2])
void SetPoint1(const vtkVector2f &pos)
Set point 1 of the axis (in pixels), this is usually the origin.
dynamic, self-adjusting array of float
vtkVector2f GetPosition2()
record modification and/or execution time
virtual void SetUnscaledMinimum(double minimum)
Set the logical, unscaled minimum value of the axis, in plot coordinates.
virtual void SetMaximum(double maximum)
Set the logical maximum value of the axis, in plot coordinates.
Hold a reference to a vtkObjectBase instance.
virtual void SetNumberOfTicks(int numberOfTicks)
Set the number of tick marks for this axis.
Class for drawing 2D primitives to a graphical context.
virtual void SetPrecision(int precision)
Get/set the numerical precision to use, default is 2.
virtual void SetRange(double minimum, double maximum)
Set the logical range of the axis, in plot coordinates.
virtual void SetLogScale(bool logScale)
virtual void SetTitle(const vtkStdString &title)
Get/set the title text of the axis.
virtual void SetLabelFormat(const std::string &fmt)
Get/Set the printf-style format string used when TickLabelAlgorithm is TICK_SIMPLE and Notation is PR...
virtual void SetMinimum(double minimum)
Set the logical minimum value of the axis, in plot coordinates.
virtual void SetUnscaledMinimumLimit(double lowest)
Set the logical lowest possible value for Minimum, in plot coordinates.
void SetPoint2(float x, float y)
virtual vtkStdString GetTitle()
virtual void SetUnscaledRange(double minimum, double maximum)
Location
Enumeration of the axis locations in a conventional XY chart.
a simple class to control print indentation
static vtkAxis * New()
Creates a 2D Chart object.
virtual void SetRange(double range[2])
represent text properties.
base class for items that are part of a vtkContextScene.
virtual void SetNotation(int notation)
Get/set the numerical notation, standard, scientific, fixed, or a printf-style format string.
takes care of drawing 2D axes
virtual void SetUnscaledMaximumLimit(double highest)
Set the logical highest possible value for Maximum, in plot coordinates.
virtual void GetRange(double *range)
Get the logical range of the axis, in plot coordinates.
a vtkAbstractArray subclass for strings
void SetPoint1(float x, float y)
vtkVector2f GetPosition1()
virtual void SetMinimumLimit(double lowest)
Set the logical lowest possible value for Minimum, in plot coordinates.
dynamic, self-adjusting array of double
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Wrapper around std::string to keep symbols short.
virtual void SetMaximumLimit(double highest)
Set the logical highest possible value for Maximum, in plot coordinates.
virtual void SetUnscaledMaximum(double maximum)
Set the logical maximum value of the axis, in plot coordinates.
void SetPoint2(const vtkVector2f &pos)
Set point 2 of the axis (in pixels), this is usually the terminus.