OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Geometry.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: BGeometryBase.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.1.1.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: BGeometryBase
10// Pure virtual base class for all Beamline Geometries
11//
12// ------------------------------------------------------------------------
13// Class category: BeamlineBGeometryBase
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:32:34 $
17// $Author: fci $
18//
19// ------------------------------------------------------------------------
20
23
24// Class BGeometryBase.
25// ------------------------------------------------------------------------
26
28
30
31double BGeometryBase::getOrigin() const { return getArcLength() / 2.0; }
32
33double BGeometryBase::getEntrance() const { return -getOrigin(); }
34
35double BGeometryBase::getExit() const { return getArcLength() - getOrigin(); }
36
38
39Euclid3D BGeometryBase::getTransform(double s) const { return getTransform(0.0, s); }
40
42
44
46
virtual Euclid3D getTransform(double fromS, double toS) const =0
Get transform.
virtual Euclid3D getExitFrame() const
Get transform.
Definition Geometry.cpp:43
virtual Euclid3D getExitPatch() const
Get patch.
Definition Geometry.cpp:47
virtual void setElementLength(double length)
Set geometry length.
Definition Geometry.cpp:29
virtual ~BGeometryBase()
Definition Geometry.cpp:27
virtual double getEntrance() const
Get entrance position.
Definition Geometry.cpp:33
virtual double getExit() const
Get exit position.
Definition Geometry.cpp:35
virtual Euclid3D getTotalTransform() const
Get transform.
Definition Geometry.cpp:37
virtual double getOrigin() const
Get origin position.
Definition Geometry.cpp:31
virtual Euclid3D getEntranceFrame() const
Get transform.
Definition Geometry.cpp:41
virtual Euclid3D getEntrancePatch() const
Get patch.
Definition Geometry.cpp:45
virtual double getArcLength() const =0
Get arc length.
Displacement and rotation in space.
Definition Euclid3D.h:67
static Euclid3D identity()
Make identity.
Definition Euclid3D.cpp:97