|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
A Geometry which wraps an arbitrary geometry in two s-rotations. More...
#include <SRotatedGeometry.h>


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 SRotatedGeometry & | operator= (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 BGeometryBase & | operator= (const BGeometryBase &right) |
| virtual void | setElementLength (double length) |
| Set geometry length. More... | |
Private Attributes | |
| double | srotIn |
| double | srotOut |
| const BGeometryBase & | geom |
A Geometry which wraps an arbitrary geometry in two s-rotations.
Definition at line 41 of file SRotatedGeometry.h.
Balance mode.
| Enumerator | |
|---|---|
| tilt |
srotOut is set to -srotIn. |
| balanceX |
srotOut calculated. |
Definition at line 45 of file SRotatedGeometry.h.
| 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().

| SRotatedGeometry::SRotatedGeometry | ( | const SRotatedGeometry & | rhs | ) |
Definition at line 40 of file SRotatedGeometry.cpp.
|
virtual |
Definition at line 46 of file SRotatedGeometry.cpp.
| void SRotatedGeometry::balanceSrots | ( | BalanceMode | mode = tilt | ) |
Balance rotations.
Definition at line 79 of file SRotatedGeometry.cpp.
References srotIn, srotOut, and tilt.
Referenced by SRotatedGeometry().
|
virtual |
Get arc length.
Implements BGeometryBase.
Definition at line 50 of file SRotatedGeometry.cpp.
References geom, and BGeometryBase::getArcLength().

|
virtual |
Get design length.
Implements BGeometryBase.
Definition at line 55 of file SRotatedGeometry.cpp.
References geom, and BGeometryBase::getElementLength().

|
virtual |
Get entrance.
Reimplemented from BGeometryBase.
Definition at line 101 of file SRotatedGeometry.cpp.
References geom, and BGeometryBase::getEntrance().

|
virtual |
Get transform.
Reimplemented from BGeometryBase.
Definition at line 148 of file SRotatedGeometry.cpp.
References geom, BGeometryBase::getEntranceFrame(), srotIn, and Euclid3D::ZRotation().

|
virtual |
Get patch.
Reimplemented from BGeometryBase.
Definition at line 154 of file SRotatedGeometry.cpp.
References srotIn, and Euclid3D::ZRotation().

|
virtual |
Get exit.
Reimplemented from BGeometryBase.
Definition at line 106 of file SRotatedGeometry.cpp.
References geom, and BGeometryBase::getExit().

|
virtual |
Get transform.
Reimplemented from BGeometryBase.
Definition at line 142 of file SRotatedGeometry.cpp.
References geom, BGeometryBase::getExitFrame(), srotOut, and Euclid3D::ZRotation().

|
virtual |
Get patch.
Reimplemented from BGeometryBase.
Definition at line 159 of file SRotatedGeometry.cpp.
References srotOut, and Euclid3D::ZRotation().

|
virtual |
Get origin.
Reimplemented from BGeometryBase.
Definition at line 96 of file SRotatedGeometry.cpp.
References geom, and BGeometryBase::getOrigin().

| double SRotatedGeometry::getSrotIn | ( | ) | const |
| double SRotatedGeometry::getSrotOut | ( | ) | const |
|
virtual |
Get transform.
Reimplemented from BGeometryBase.
Definition at line 128 of file SRotatedGeometry.cpp.
References geom, BGeometryBase::getTotalTransform(), srotIn, srotOut, and Euclid3D::ZRotation().

|
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().

|
virtual |
Get transform.
Reimplemented from BGeometryBase.
Definition at line 137 of file SRotatedGeometry.cpp.
References getTransform().

| const SRotatedGeometry& SRotatedGeometry::operator= | ( | const SRotatedGeometry & | ) |
| void SRotatedGeometry::setSrotIn | ( | double | phi | ) |
| void SRotatedGeometry::setSrotOut | ( | double | phi | ) |
|
private |
Definition at line 165 of file SRotatedGeometry.h.
Referenced by getArcLength(), getElementLength(), getEntrance(), getEntranceFrame(), getExit(), getExitFrame(), getOrigin(), getTotalTransform(), and getTransform().
|
private |
Definition at line 163 of file SRotatedGeometry.h.
Referenced by balanceSrots(), getEntranceFrame(), getEntrancePatch(), getSrotIn(), getTotalTransform(), getTransform(), and setSrotIn().
|
private |
Definition at line 164 of file SRotatedGeometry.h.
Referenced by balanceSrots(), getExitFrame(), getExitPatch(), getSrotOut(), getTotalTransform(), getTransform(), and setSrotOut().
1.8.5