Public Member Functions | Protected Attributes | Private Attributes | List of all members
XYZTransform Class Reference

A transform that transforms the X, Y and Z coordinates independently. More...

#include <XYZTransform.h>

Inheritance diagram for XYZTransform:
Inheritance graph
[legend]
Collaboration diagram for XYZTransform:
Collaboration graph
[legend]

Public Member Functions

virtual double aspectRatio () const
 Get the aspect ratio. More...
 
virtual XYZTransformclone () const
 Creates a new Transform object by copying an existing one. More...
 
virtual bool isLinearInZ () const
 Returns true if Z axis is linear. More...
 
virtual const RangelimitX () const
 Returns a Range whose values are the limits on the X coordinate. More...
 
virtual const RangelimitY () const
 Returns a Range whose values are the limits on the Y coordinate. More...
 
virtual const RangelimitZ () const
 Returns a Range whose values are the limits on the Z coordinate. More...
 
const std::string & name () const
 Returns the name of the Transform. More...
 
virtual void transform (double &x, double &y, double &z) const
 
virtual void transform (std::vector< double > &x, std::vector< double > &y, std::vector< double > &z) const
 
virtual void validate (Range &x, Range &y, Range &z) const
 
TransformBasexTransform () const
 Returns the transform function on the X axis. More...
 
 XYZTransform (UnaryTransform *x, UnaryTransform *y, UnaryTransform *z)
 The following constructor takes three base constructors as arguments. More...
 
 XYZTransform (const XYZTransform &)
 The copy constructor. More...
 
TransformBaseyTransform () const
 Returns the transform function on the Y axis. More...
 
TransformBasezTransform () const
 Returns the transform function on the Z axis. More...
 
virtual ~XYZTransform ()
 The virtual destructor. More...
 

Protected Attributes

std::string m_name
 Name of the Transform. More...
 

Private Attributes

UnaryTransformm_x
 The transform on the X axis. More...
 
UnaryTransformm_y
 The transform on the Y axis. More...
 
UnaryTransformm_z
 The transform on the Z axis. More...
 

Detailed Description

A transform that transforms the X, Y and Z coordinates independently.

Author
Paul F. Kunz Paul_.nosp@m.Kunz.nosp@m.@slac.nosp@m..sta.nosp@m.nford.nosp@m..edu
Oded Wurman owurm.nosp@m.an@s.nosp@m.tanfo.nosp@m.rd.e.nosp@m.du

Definition at line 27 of file XYZTransform.h.

Constructor & Destructor Documentation

◆ XYZTransform() [1/2]

The following constructor takes three base constructors as arguments.

Definition at line 20 of file XYZTransform.cxx.

References TransformBase::m_name, XYZTransform::m_x, XYZTransform::m_y, and XYZTransform::m_z.

Referenced by XYZTransform::clone().

◆ XYZTransform() [2/2]

XYZTransform ( const XYZTransform t)

The copy constructor.

Definition at line 37 of file XYZTransform.cxx.

References UnaryTransform::clone(), XYZTransform::clone(), XYZTransform::m_x, XYZTransform::m_y, and XYZTransform::m_z.

◆ ~XYZTransform()

~XYZTransform ( )
virtual

The virtual destructor.

Definition at line 30 of file XYZTransform.cxx.

References XYZTransform::m_x, XYZTransform::m_y, and XYZTransform::m_z.

Member Function Documentation

◆ aspectRatio()

double aspectRatio ( ) const
virtualinherited

◆ clone()

XYZTransform * clone ( ) const
virtual

Creates a new Transform object by copying an existing one.

Implements XYZTransformBase.

Definition at line 54 of file XYZTransform.cxx.

References XYZTransform::XYZTransform().

Referenced by XYZTransform::XYZTransform().

◆ isLinearInZ()

bool isLinearInZ ( ) const
virtual

Returns true if Z axis is linear.

Definition at line 123 of file XYZTransform.cxx.

References UnaryTransform::isLinear(), and XYZTransform::m_z.

◆ limitX()

const Range & limitX ( ) const
virtual

Returns a Range whose values are the limits on the X coordinate.

Definition at line 91 of file XYZTransform.cxx.

References UnaryTransform::limits(), and XYZTransform::m_x.

◆ limitY()

const Range & limitY ( ) const
virtual

Returns a Range whose values are the limits on the Y coordinate.

Definition at line 97 of file XYZTransform.cxx.

References UnaryTransform::limits(), and XYZTransform::m_y.

◆ limitZ()

const Range & limitZ ( ) const
virtual

Returns a Range whose values are the limits on the Z coordinate.

Definition at line 103 of file XYZTransform.cxx.

References UnaryTransform::limits(), and XYZTransform::m_z.

◆ name()

const string & name ( ) const
inherited

◆ transform() [1/2]

void transform ( double &  x,
double &  y,
double &  z 
) const
virtual

◆ transform() [2/2]

void transform ( std::vector< double > &  x,
std::vector< double > &  y,
std::vector< double > &  z 
) const
virtual

◆ validate()

void validate ( Range x,
Range y,
Range z 
) const
virtual

◆ xTransform()

TransformBase * xTransform ( ) const

Returns the transform function on the X axis.

Definition at line 108 of file XYZTransform.cxx.

References XYZTransform::m_x.

◆ yTransform()

TransformBase * yTransform ( ) const

Returns the transform function on the Y axis.

Definition at line 113 of file XYZTransform.cxx.

References XYZTransform::m_y.

◆ zTransform()

TransformBase * zTransform ( ) const

Returns the transform function on the Z axis.

Definition at line 118 of file XYZTransform.cxx.

References XYZTransform::m_z.

Member Data Documentation

◆ m_name

std::string m_name
protectedinherited

◆ m_x

UnaryTransform* m_x
private

◆ m_y

UnaryTransform* m_y
private

◆ m_z

UnaryTransform* m_z
private

The documentation for this class was generated from the following files:

Generated for HippoDraw Class Library by doxygen