57 #include "vtkChartsCoreModule.h"
91 TICK_WILKINSON_EXTENDED
104 vtkGetMacro(Position,
int);
119 vtkGetVector2Macro(Point1,
float);
135 vtkGetVector2Macro(Point2,
float);
149 vtkGetMacro(NumberOfTicks,
int);
173 vtkGetMacro(Minimum,
double);
189 vtkGetMacro(Maximum,
double);
203 vtkGetMacro(UnscaledMinimum,
double);
215 vtkGetMacro(UnscaledMaximum,
double);
228 virtual void SetRange(
double minimum,
double maximum);
255 vtkGetMacro(MinimumLimit,
double);
267 vtkGetMacro(MaximumLimit,
double);
279 vtkGetMacro(UnscaledMinimumLimit,
double);
291 vtkGetMacro(UnscaledMaximumLimit,
double);
298 vtkGetVector2Macro(Margins,
int);
305 vtkSetVector2Macro(Margins,
int);
336 vtkGetMacro(LogScaleActive,
bool);
346 vtkGetMacro(LogScale,
bool);
356 vtkGetMacro(GridVisible,
bool);
364 vtkGetMacro(LabelsVisible,
bool);
372 vtkGetMacro(RangeLabelsVisible,
bool);
380 vtkGetMacro(LabelOffset,
float);
388 vtkGetMacro(TicksVisible,
bool);
396 vtkGetMacro(AxisVisible,
bool);
405 vtkGetMacro(Precision,
int);
412 STANDARD_NOTATION = 0,
444 vtkGetMacro(Notation,
int);
461 vtkGetMacro(Behavior,
int);
487 vtkGetMacro(TickLabelAlgorithm,
int)
496 vtkGetMacro(ScalingFactor,
double)
498 vtkGetMacro(Shift,
double)
518 virtual
void AutoScale();
524 virtual
void RecalculateTickSpacing();
566 static
double NiceNumber(
double number,
bool roundUp);
572 static
double NiceMinMax(
double &min,
double &
max,
float pixelRange,
573 float tickPixelSpacing);
593 void UpdateLogScaleActive(
bool updateMinMaxFromUnscaled);
598 void GenerateTickLabels(
double min,
double max);
603 void GenerateTickLabels();
605 void GenerateLabelFormat(
int notation,
double n);
616 double CalculateNiceMinMax(
double &min,
double &
max);
627 double LogScaleTickMark(
double number,
643 void GenerateLogSpacedLinearTicks(
int order,
double min,
double max);
655 void GenerateLogScaleTickMarks(
int order,
658 bool detailLabels = true);
671 double UnscaledMinimum;
672 double UnscaledMaximum;
673 double UnscaledMinimumLimit;
674 double UnscaledMaximumLimit;
675 double NonLogUnscaledMinLimit;
676 double NonLogUnscaledMaxLimit;
684 bool RangeLabelsVisible;
690 std::
string LabelFormat;
691 std::
string RangeLabelFormat;
703 double ScalingFactor;
710 bool CustomTickLabels;
741 bool UsingNiceMinMax;
756 int TickLabelAlgorithm;
765 void operator=(const
vtkAxis &) VTK_DELETE_FUNCTION;
770 bool InRange(
double value);
takes care of drawing 2D axes
virtual void SetUnscaledMaximumLimit(double highest)
Set the logical highest possible value for Maximum, in plot coordinates.
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 SetPoint1(float x, float y)
void SetPoint2(const vtkVector2f &pos)
Set point 2 of the axis (in pixels), this is usually the terminus.
vtkVector2f GetPosition2()
virtual void SetNotation(int notation)
Get/set the numerical notation, standard, scientific, fixed, or a printf-style format string.
virtual void SetNumberOfTicks(int numberOfTicks)
Set the number of tick marks for this 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 SetTitle(const vtkStdString &title)
Get/set the title text of the axis.
virtual void SetUnscaledRange(double range[2])
void SetPoint1(const vtkVector2f &pos)
Set point 1 of the axis (in pixels), this is usually the origin.
virtual void SetPosition(int position)
Get/set the position of the axis (LEFT, BOTTOM, RIGHT, TOP, PARALLEL).
virtual void GetRange(double *range)
Get the logical range of the axis, in plot coordinates.
vtkVector2f GetPosition1()
virtual void SetMaximumLimit(double highest)
Set the logical highest possible value for Maximum, in plot coordinates.
void SetPoint2(float x, float y)
virtual void SetPrecision(int precision)
Get/set the numerical precision to use, default is 2.
virtual void SetMinimumLimit(double lowest)
Set the logical lowest possible value for Minimum, in plot coordinates.
virtual void SetUnscaledMinimum(double minimum)
Set the logical, unscaled minimum value of the axis, in plot coordinates.
virtual void SetRange(double range[2])
Location
Enumeration of the axis locations in a conventional XY chart.
virtual void SetUnscaledMaximum(double maximum)
Set the logical maximum value of the axis, in plot coordinates.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void GetUnscaledRange(double *range)
virtual void SetRange(double minimum, double maximum)
Set the logical range of the axis, in plot coordinates.
virtual vtkStdString GetTitle()
static vtkAxis * New()
Creates a 2D Chart object.
virtual void SetUnscaledRange(double minimum, double maximum)
virtual void SetMaximum(double maximum)
Set the logical maximum value of the axis, in plot coordinates.
virtual void SetLogScale(bool logScale)
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
dynamic, self-adjusting array of double
dynamic, self-adjusting array of float
a simple class to control print indentation
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Hold a reference to a vtkObjectBase instance.
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
represent text properties.
record modification and/or execution time
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTimeStamp BuildTime
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void Update()
Updates the extensions string.