Parent Directory
|
Revision Log
|
Revision Graph
Revision 1.2 - (view) (download)
| 1 : | giraudpf | 1.1 | #include "LocationAsapElementByProps.hh" |
| 2 : | giraudpf | 1.2 | #include "AtosException.hh" |
| 3 : | |||
| 4 : | giraudpf | 1.1 | using namespace asap::atos; |
| 5 : | |||
| 6 : | LocationAsapElementByProps::LocationAsapElementByProps (Element* el, handle<AtosPlotProperties> props) | ||
| 7 : | : LocationAsapElement(el, GLOBALNOMINAL) { | ||
| 8 : | _props = props; | ||
| 9 : | } | ||
| 10 : | |||
| 11 : | LocationAsapElementByProps::LocationAsapElementByProps (const LocationAsapElementByProps& loc) | ||
| 12 : | : LocationAsapElement(loc), | ||
| 13 : | _props(loc._props) { | ||
| 14 : | } | ||
| 15 : | |||
| 16 : | LocationAsapElementByProps::~LocationAsapElementByProps() { | ||
| 17 : | |||
| 18 : | } | ||
| 19 : | |||
| 20 : | Location* LocationAsapElementByProps::clone() const { | ||
| 21 : | return new LocationAsapElementByProps(*this); | ||
| 22 : | } | ||
| 23 : | |||
| 24 : | LocationAsapElementByProps::location_t LocationAsapElementByProps::type() const { | ||
| 25 : | switch(_props->displayLocationType()) { | ||
| 26 : | case AtosPlotProperties::GLOBAL: | ||
| 27 : | return GLOBAL; | ||
| 28 : | case AtosPlotProperties::GLOBALCORRECTION: | ||
| 29 : | return GLOBALCORRECTION; | ||
| 30 : | case AtosPlotProperties::GLOBALNOMINAL: | ||
| 31 : | return GLOBALNOMINAL; | ||
| 32 : | giraudpf | 1.2 | default: |
| 33 : | throw AtosException("LocationAsapElementByProps::type(): unknown type"); | ||
| 34 : | giraudpf | 1.1 | } |
| 35 : | } |
| CERN Central CVS service | ViewVC Help |
| Powered by ViewVC 1.0.9 |