A transform that transforms coordinates in one dimension from one coordinate system to another. More...
#include <UnaryTransform.h>
Public Member Functions | |
virtual const Range & | adjustValues (AxisModelBase &model, const Range &limit)=0 |
Sets the range of given axis to be a new "nice" within the limits given. | |
virtual double | aspectRatio () const |
Get the aspect ratio. | |
virtual UnaryTransform * | clone () const =0 |
Function to make copy of object. | |
virtual void | inverseTransform (double &x) const =0 |
Inverse transforms the coordinate x. | |
virtual bool | isLinear () const =0 |
virtual const Range & | limits () const |
Returns a Range whose values are the limits on the coordinate. | |
const std::string & | name () const |
Returns the name of the Transform. | |
virtual const std::vector < AxisTick > & | setTicks (AxisModelBase &axis)=0 |
Sets the vector of ticks along the axis to which this unary transform is applied. | |
virtual void | transform (double &x) const =0 |
virtual void | transform (std::vector< double > &x) const =0 |
Transforms each element of the vector x. | |
virtual void | validate (Range &) const =0 |
Validates the Range. | |
virtual | ~UnaryTransform () |
The virtual destructor. |
Protected Member Functions | |
UnaryTransform (double low, double high) | |
Constructor for setting m_limits. |
Protected Attributes | |
const Range | m_limits |
The valid Range of the transform. | |
std::string | m_name |
Name of the Transform. |
A transform that transforms coordinates in one dimension from one coordinate system to another.
Definition at line 35 of file UnaryTransform.h.
|
protected |
Constructor for setting m_limits.
Definition at line 18 of file UnaryTransform.cxx.
|
virtual |
The virtual destructor.
Definition at line 23 of file UnaryTransform.cxx.
|
pure virtual |
Sets the range of given axis to be a new "nice" within the limits given.
Implemented in LogTransform, and LinearTransform.
|
virtualinherited |
Get the aspect ratio.
Reimplemented in BinaryTransform, XYTransform, HammerAito2, HammerAito, Mercator, Mercator2, AIR, AIR2, ARC, ARC2, Cartesian, Cartesian2, GlobalSinusoidal, GlobalSinusoidal2, Lambert, Lambert2, SIN, SIN2, STG, STG2, TAN, and TAN2.
Definition at line 50 of file TransformBase.cxx.
Referenced by CompositePlotter::getAspectRatio().
|
pure virtual |
Function to make copy of object.
Implements TransformBase.
Implemented in LogTransform, and LinearTransform.
Referenced by BinaryTransform::BinaryTransform(), TransformFactory::createXY(), TransformFactory::createXYZ(), XYTransform::XYTransform(), and XYZTransform::XYZTransform().
|
pure virtual |
Inverse transforms the coordinate x.
Implemented in LogTransform, and LinearTransform.
Referenced by XYTransform::inverseTransform(), and BinaryTransform::inverseTransformZ().
|
pure virtual |
Implemented in LogTransform, and LinearTransform.
Referenced by XYZTransform::isLinearInZ(), and BinaryTransform::isLinearInZ().
|
virtual |
Returns a Range whose values are the limits on the coordinate.
Definition at line 28 of file UnaryTransform.cxx.
References UnaryTransform::m_limits.
Referenced by XYZTransform::limitX(), XYTransform::limitX(), XYZTransform::limitY(), XYTransform::limitY(), XYZTransform::limitZ(), and BinaryTransform::limitZ().
|
inherited |
Returns the name of the Transform.
Definition at line 45 of file TransformBase.cxx.
References TransformBase::m_name.
Referenced by BinaryTransform::BinaryTransform(), TransformXML::createElement(), DisplayController::getLog(), DisplayController::setLog(), Inspector::updateTransformTab(), and XYTransform::XYTransform().
|
pure virtual |
Sets the vector of ticks along the axis to which this unary transform is applied.
Implemented in LogTransform, and LinearTransform.
Referenced by XYTransform::setTicks().
|
pure virtual |
Implemented in LogTransform, and LinearTransform.
Referenced by XYZTransform::transform(), XYTransform::transform(), and BinaryTransform::transformZ().
|
pure virtual |
Transforms each element of the vector x.
Implemented in LogTransform, and LinearTransform.
|
pure virtual |
Validates the Range.
Adjusts the Range to be restricted to that which is valid for the transform.
Implemented in LogTransform, and LinearTransform.
Referenced by XYZTransform::validate(), and XYTransform::validate().
|
protected |
The valid Range of the transform.
Definition at line 41 of file UnaryTransform.h.
Referenced by UnaryTransform::limits().
|
protectedinherited |
Name of the Transform.
Definition at line 42 of file TransformBase.h.
Referenced by AIR::AIR(), AIR2::AIR2(), ARC::ARC(), ARC2::ARC2(), BinaryTransform::BinaryTransform(), Cartesian::Cartesian(), Cartesian2::Cartesian2(), GlobalSinusoidal::GlobalSinusoidal(), GlobalSinusoidal2::GlobalSinusoidal2(), HammerAito::HammerAito(), HammerAito2::HammerAito2(), Lambert::Lambert(), Lambert2::Lambert2(), LinearTransform::LinearTransform(), LogTransform::LogTransform(), Mercator::Mercator(), Mercator2::Mercator2(), TransformBase::name(), SIN::SIN(), SIN2::SIN2(), STG::STG(), STG2::STG2(), TAN::TAN(), TAN2::TAN2(), TransformBase::TransformBase(), XYTransform::XYTransform(), XYZTransform::XYZTransform(), and XYZTransformBase::XYZTransformBase().