Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TransformBase Class Reference

#include <TransformBase.h>

Inheritance diagram for TransformBase:

Inheritance graph
[legend]
Collaboration diagram for TransformBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

A transform that transforms coordinates from one coordinate system to another.

Todo:
When a Coordinate class is implemented, we can replace many functions below with ones that take a Coordinate as an argument.

Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 33 of file TransformBase.h.

Public Member Functions

virtual double aspectRatio () const
 Get the aspect ratio.
virtual TransformBaseclone () const =0
 Creates a new Transform object by copying an existing one.
const std::stringname () const
 Returns the name of the Transform.
virtual ~TransformBase ()
 The virtual destructor.

Protected Member Functions

 TransformBase (const TransformBase &t)
 The copy constructor.
 TransformBase ()
 The default constructor.

Protected Attributes

std::string m_name
 Name of the Transform.


Constructor & Destructor Documentation

TransformBase::TransformBase  )  [protected]
 

The default constructor.

Sets the function name to "nil". It should be overridden by a derived class. If the function name is "nil", then this indicates the error condition that the default constructor was called directly.

Definition at line 29 of file TransformBase.cxx.

References m_name.

TransformBase::TransformBase const TransformBase t  )  [protected]
 

The copy constructor.

Definition at line 34 of file TransformBase.cxx.

TransformBase::~TransformBase  )  [virtual]
 

The virtual destructor.

Definition at line 39 of file TransformBase.cxx.


Member Function Documentation

double TransformBase::aspectRatio  )  const [virtual]
 

Get the aspect ratio.

Reimplemented in BinaryTransform, HammerAito, Lambert, and XYTransform.

Definition at line 48 of file TransformBase.cxx.

Referenced by CompositePlotter::getAspectRatio().

virtual TransformBase* TransformBase::clone  )  const [pure virtual]
 

Creates a new Transform object by copying an existing one.

Implemented in BinaryTransform, HammerAito, Lambert, LinearTransform, LogTransform, UnaryTransform, XYTransform, XYZTransform, and XYZTransformBase.

Referenced by CompositePlotter::CompositePlotter(), and TransformFactory::createTransform().

const string & TransformBase::name  )  const
 

Returns the name of the Transform.

Definition at line 43 of file TransformBase.cxx.

References m_name.

Referenced by BinaryTransform::BinaryTransform(), TransformXML::createElement(), DisplayController::getLog(), DisplayController::setLog(), and XYTransform::XYTransform().


Member Data Documentation

std::string TransformBase::m_name [protected]
 

Name of the Transform.

Definition at line 39 of file TransformBase.h.

Referenced by BinaryTransform::BinaryTransform(), HammerAito::HammerAito(), Lambert::Lambert(), LinearTransform::LinearTransform(), LogTransform::LogTransform(), name(), TransformBase(), XYTransform::XYTransform(), XYZTransform::XYZTransform(), and XYZTransformBase::XYZTransformBase().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3