OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
StraightGeometry Class Reference

A geometry representing a straight line. More...

#include <StraightGeometry.h>

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

Public Member Functions

 StraightGeometry (double length=0.0)
 Constructor. More...
 
 StraightGeometry (const StraightGeometry &right)
 
virtual ~StraightGeometry ()
 
const StraightGeometryoperator= (const StraightGeometry &right)
 
virtual double getArcLength () const
 Get arc length. More...
 
virtual double getElementLength () const
 Get design length. More...
 
virtual void setElementLength (double length)
 Set design length. More...
 
double getOrigin () const
 Get origin. More...
 
double getEntrance () const
 Get entrance. More...
 
double getExit () const
 Get exit. More...
 
Euclid3D getTransform (double fromS, double toS) const
 Get transform. More...
 
Euclid3D getTransform (double s) const
 Get transform. More...
 
Euclid3D getTotalTransform () const
 Get transform. More...
 
Euclid3D getEntranceFrame () const
 Get transform. More...
 
Euclid3D getExitFrame () const
 Get transform. More...
 
- Public Member Functions inherited from BGeometryBase
 BGeometryBase ()
 
 BGeometryBase (const BGeometryBase &right)
 
virtual ~BGeometryBase ()
 
const BGeometryBaseoperator= (const BGeometryBase &right)
 
virtual Euclid3D getEntrancePatch () const
 Get patch. More...
 
virtual Euclid3D getExitPatch () const
 Get patch. More...
 

Private Attributes

double len
 

Detailed Description

A geometry representing a straight line.

Definition at line 34 of file StraightGeometry.h.

Constructor & Destructor Documentation

StraightGeometry::StraightGeometry ( double  length = 0.0)
inline

Constructor.

Definition at line 109 of file StraightGeometry.h.

StraightGeometry::StraightGeometry ( const StraightGeometry right)
inline

Definition at line 112 of file StraightGeometry.h.

StraightGeometry::~StraightGeometry ( )
virtual

Definition at line 29 of file StraightGeometry.cpp.

Member Function Documentation

double StraightGeometry::getArcLength ( ) const
virtual

Get arc length.

Implements BGeometryBase.

Reimplemented in RBendGeometry.

Definition at line 33 of file StraightGeometry.cpp.

References len.

double StraightGeometry::getElementLength ( ) const
virtual

Get design length.

Implements BGeometryBase.

Reimplemented in RBendGeometry.

Definition at line 38 of file StraightGeometry.cpp.

References len.

Referenced by RBendGeometry::getArcLength(), RBendGeometry::getElementLength(), Corrector::goOnline(), and Corrector::setDesignEnergy().

double StraightGeometry::getEntrance ( ) const
virtual

Get entrance.

Reimplemented from BGeometryBase.

Definition at line 53 of file StraightGeometry.cpp.

References len.

Euclid3D StraightGeometry::getEntranceFrame ( ) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 78 of file StraightGeometry.cpp.

References len, and Euclid3D::translation().

Referenced by RBendGeometry::getEntranceFrame().

Here is the call graph for this function:

double StraightGeometry::getExit ( ) const
virtual

Get exit.

Reimplemented from BGeometryBase.

Definition at line 58 of file StraightGeometry.cpp.

References len.

Euclid3D StraightGeometry::getExitFrame ( ) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 83 of file StraightGeometry.cpp.

References len, and Euclid3D::translation().

Referenced by RBendGeometry::getExitFrame().

Here is the call graph for this function:

double StraightGeometry::getOrigin ( ) const
virtual

Get origin.

Reimplemented from BGeometryBase.

Definition at line 48 of file StraightGeometry.cpp.

References len.

Euclid3D StraightGeometry::getTotalTransform ( ) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 68 of file StraightGeometry.cpp.

References len, and Euclid3D::translation().

Referenced by RBendGeometry::getTotalTransform().

Here is the call graph for this function:

Euclid3D StraightGeometry::getTransform ( double  fromS,
double  toS 
) const
virtual

Get transform.

Implements BGeometryBase.

Definition at line 63 of file StraightGeometry.cpp.

References Euclid3D::translation().

Here is the call graph for this function:

Euclid3D StraightGeometry::getTransform ( double  s) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 73 of file StraightGeometry.cpp.

References Euclid3D::translation().

Here is the call graph for this function:

const StraightGeometry & StraightGeometry::operator= ( const StraightGeometry right)
inline

Definition at line 117 of file StraightGeometry.h.

References len.

void StraightGeometry::setElementLength ( double  length)
virtual

Set design length.

Reimplemented from BGeometryBase.

Definition at line 43 of file StraightGeometry.cpp.

References len.

Referenced by VerticalFFAMagnet::initialise(), MultipoleTStraight::initialise(), VariableRFCavity::setLength(), and OpalRBend::update().

Member Data Documentation

double StraightGeometry::len
private

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