void setNeedsXTicks(bool needs_x_ticks)
Sets whether this transform needs x ticks.
void inverseTransformZ(double &z) const
Inverse transforms the z coordinate.
bool needsGrid() const
Returns whether this transform needs grid.
virtual ~BinaryTransform()
The virtual destructor.
void setZTransform(TransformBase *transform)
Sets the transform function on the Z axis.
void transformZ(double &z) const
Transforms the z coordinate.
A transform that transforms coordinates from one coordinate system to another.
UnaryTransform class interface.
virtual void transform(double &x, double &y) const =0
Transform the coordinates on the X and Y axes.
void setNeedsYTicks(bool needs_y_ticks)
Sets whether this transform needs y yicks.
virtual UnaryTransform * clone() const =0
Function to make copy of object.
void setNeedsGrid(bool needs_grid)
Sets whether this transform needs grid.
virtual const Range & limits() const
Returns a Range whose values are the limits on the coordinate.
virtual bool isLinear() const =0
virtual void transform(double &x) const =0
BinaryTransform()
The default constructor.
bool m_is_periodic
Is this transform periodic.
virtual void inverseTransform(double &x) const =0
Inverse transforms the coordinate x.
hippodraw::BinaryTransform class interface
const Range & limitZ() const
Returns the Range limits on the third coordinate.
virtual bool isLinearInZ() const
Returns true if the transform would be one to one on Z axes.
bool needsYTicks() const
Returns whether this transform needs y ticks.
bool needsXTicks() const
Returns whether this transform needs x ticks.
TransformBase * zTransform() const
Returns the transform function on the Z axis.
const std::string & name() const
Returns the name of the Transform.
bool m_needs_y_ticks
Does this binary transform y ticks?
std::string m_name
Name of the Transform.
bool m_needs_x_ticks
Does this binary transform x ticks?
A transform that transforms coordinates from one 2D coordinate system to another. ...
A transform that transforms coordinates in one dimension from one coordinate system to another...
Expresses a range of values.
UnaryTransform * m_z
The transform on the Z axis.
virtual double aspectRatio() const
Returns the aspect ratio.
bool isPeriodic() const
Sets whether this transform is periodic.
bool m_needs_grid
Does this binary transform needs grid?