Beamline.cpp 1.37 KB
Newer Older
gsell's avatar
gsell committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
// ------------------------------------------------------------------------
// $RCSfile: Beamline.cpp,v $
// ------------------------------------------------------------------------
// $Revision: 1.1.1.1 $
// ------------------------------------------------------------------------
// Copyright: see Copyright.readme
// ------------------------------------------------------------------------
//
// Class: Beamline
//   Represents an abstract sequence of elements.
//
// ------------------------------------------------------------------------
// Class category: Beamlines
// ------------------------------------------------------------------------
//
// $Date: 2000/03/27 09:32:34 $
// $Author: fci $
//
// ------------------------------------------------------------------------

#include "Beamlines/Beamline.h"


// Class Beamline
// ------------------------------------------------------------------------


Beamline::Beamline():
    ElementBase() {
    shareFlag = false;
}


Beamline::Beamline(const Beamline &):
    ElementBase() {
    shareFlag = false;
}


40
Beamline::Beamline(const std::string &name):
gsell's avatar
gsell committed
41 42 43 44 45 46 47
    ElementBase(name) {
    shareFlag = false;
}


Beamline::~Beamline()
{}
48 49 50 51 52

Vector_t Beamline::getOrigin3D() const {
    return Vector_t(0);
}

53
Quaternion Beamline::getInitialDirection() const {
54 55 56 57 58 59
    return Quaternion(1, 0, 0, 0);
}

bool Beamline::getRelativeFlag() const {
    return false;
}