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

A Geometry which wraps an arbitrary geometry in two s-rotations. More...

#include <SRotatedGeometry.h>

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

Public Types

enum  BalanceMode { tilt, balanceX }
 Balance mode. More...
 

Public Member Functions

 SRotatedGeometry (const BGeometryBase &geom, double srotIn, double srotOut)
 Constructor. More...
 
 SRotatedGeometry (const BGeometryBase &geom, double srotIn, BalanceMode mode=tilt)
 Constructor. More...
 
 SRotatedGeometry (const SRotatedGeometry &)
 
virtual ~SRotatedGeometry ()
 
const SRotatedGeometryoperator= (const SRotatedGeometry &)
 
virtual double getArcLength () const
 Get arc length. More...
 
virtual double getElementLength () const
 Get design length. More...
 
double getSrotIn () const
 Get entrance rotation. More...
 
double getSrotOut () const
 Get exit rotation. More...
 
void setSrotIn (double)
 Set entrance rotation. More...
 
void setSrotOut (double)
 Set exit rotation. More...
 
void balanceSrots (BalanceMode mode=tilt)
 Balance rotations. 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...
 
Euclid3D getEntrancePatch () const
 Get patch. More...
 
Euclid3D getExitPatch () const
 Get patch. More...
 
- Public Member Functions inherited from BGeometryBase
 BGeometryBase ()
 
 BGeometryBase (const BGeometryBase &right)
 
virtual ~BGeometryBase ()
 
const BGeometryBaseoperator= (const BGeometryBase &right)
 
virtual void setElementLength (double length)
 Set geometry length. More...
 

Private Attributes

double srotIn
 
double srotOut
 
const BGeometryBasegeom
 

Detailed Description

A Geometry which wraps an arbitrary geometry in two s-rotations.

Definition at line 41 of file SRotatedGeometry.h.

Member Enumeration Documentation

Balance mode.

Enumerator
tilt 

srotOut is set to -srotIn.

balanceX 

srotOut calculated.

Definition at line 45 of file SRotatedGeometry.h.

Constructor & Destructor Documentation

SRotatedGeometry::SRotatedGeometry ( const BGeometryBase geom,
double  srotIn,
double  srotOut 
)

Constructor.

Definition at line 28 of file SRotatedGeometry.cpp.

SRotatedGeometry::SRotatedGeometry ( const BGeometryBase geom,
double  srotIn,
BalanceMode  mode = tilt 
)

Constructor.

Definition at line 34 of file SRotatedGeometry.cpp.

References balanceSrots().

Here is the call graph for this function:

SRotatedGeometry::SRotatedGeometry ( const SRotatedGeometry rhs)

Definition at line 40 of file SRotatedGeometry.cpp.

SRotatedGeometry::~SRotatedGeometry ( )
virtual

Definition at line 46 of file SRotatedGeometry.cpp.

Member Function Documentation

void SRotatedGeometry::balanceSrots ( BalanceMode  mode = tilt)

Balance rotations.

Definition at line 79 of file SRotatedGeometry.cpp.

References srotIn, srotOut, and tilt.

Referenced by SRotatedGeometry().

double SRotatedGeometry::getArcLength ( ) const
virtual

Get arc length.

Implements BGeometryBase.

Definition at line 50 of file SRotatedGeometry.cpp.

References geom, and BGeometryBase::getArcLength().

Here is the call graph for this function:

double SRotatedGeometry::getElementLength ( ) const
virtual

Get design length.

Implements BGeometryBase.

Definition at line 55 of file SRotatedGeometry.cpp.

References geom, and BGeometryBase::getElementLength().

Here is the call graph for this function:

double SRotatedGeometry::getEntrance ( ) const
virtual

Get entrance.

Reimplemented from BGeometryBase.

Definition at line 101 of file SRotatedGeometry.cpp.

References geom, and BGeometryBase::getEntrance().

Here is the call graph for this function:

Euclid3D SRotatedGeometry::getEntranceFrame ( ) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 148 of file SRotatedGeometry.cpp.

References geom, BGeometryBase::getEntranceFrame(), srotIn, and Euclid3D::ZRotation().

Here is the call graph for this function:

Euclid3D SRotatedGeometry::getEntrancePatch ( ) const
virtual

Get patch.

Reimplemented from BGeometryBase.

Definition at line 154 of file SRotatedGeometry.cpp.

References srotIn, and Euclid3D::ZRotation().

Here is the call graph for this function:

double SRotatedGeometry::getExit ( ) const
virtual

Get exit.

Reimplemented from BGeometryBase.

Definition at line 106 of file SRotatedGeometry.cpp.

References geom, and BGeometryBase::getExit().

Here is the call graph for this function:

Euclid3D SRotatedGeometry::getExitFrame ( ) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 142 of file SRotatedGeometry.cpp.

References geom, BGeometryBase::getExitFrame(), srotOut, and Euclid3D::ZRotation().

Here is the call graph for this function:

Euclid3D SRotatedGeometry::getExitPatch ( ) const
virtual

Get patch.

Reimplemented from BGeometryBase.

Definition at line 159 of file SRotatedGeometry.cpp.

References srotOut, and Euclid3D::ZRotation().

Here is the call graph for this function:

double SRotatedGeometry::getOrigin ( ) const
virtual

Get origin.

Reimplemented from BGeometryBase.

Definition at line 96 of file SRotatedGeometry.cpp.

References geom, and BGeometryBase::getOrigin().

Here is the call graph for this function:

double SRotatedGeometry::getSrotIn ( ) const

Get entrance rotation.

Definition at line 60 of file SRotatedGeometry.cpp.

References srotIn.

double SRotatedGeometry::getSrotOut ( ) const

Get exit rotation.

Definition at line 65 of file SRotatedGeometry.cpp.

References srotOut.

Euclid3D SRotatedGeometry::getTotalTransform ( ) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 128 of file SRotatedGeometry.cpp.

References geom, BGeometryBase::getTotalTransform(), srotIn, srotOut, and Euclid3D::ZRotation().

Here is the call graph for this function:

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

Get transform.

Implements BGeometryBase.

Definition at line 111 of file SRotatedGeometry.cpp.

References geom, BGeometryBase::getEntrance(), BGeometryBase::getExit(), BGeometryBase::getTransform(), srotIn, srotOut, and Euclid3D::ZRotation().

Referenced by getTransform().

Here is the call graph for this function:

Euclid3D SRotatedGeometry::getTransform ( double  s) const
virtual

Get transform.

Reimplemented from BGeometryBase.

Definition at line 137 of file SRotatedGeometry.cpp.

References getTransform().

Here is the call graph for this function:

const SRotatedGeometry& SRotatedGeometry::operator= ( const SRotatedGeometry )
void SRotatedGeometry::setSrotIn ( double  phi)

Set entrance rotation.

Definition at line 70 of file SRotatedGeometry.cpp.

References srotIn.

void SRotatedGeometry::setSrotOut ( double  phi)

Set exit rotation.

Definition at line 75 of file SRotatedGeometry.cpp.

References srotOut.

Member Data Documentation

const BGeometryBase& SRotatedGeometry::geom
private
double SRotatedGeometry::srotIn
private
double SRotatedGeometry::srotOut
private

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