46 #ifndef OME_XML_MODEL_DETECTOR_H
47 #define OME_XML_MODEL_DETECTOR_H
57 #include <ome/common/xml/dom/Document.h>
58 #include <ome/common/xml/dom/Element.h>
59 #include <ome/common/xml/dom/Node.h>
60 #include <ome/common/xml/dom/NodeList.h>
62 #include <ome/xml/model/Instrument.h>
63 #include <ome/xml/model/ManufacturerSpec.h>
64 #include <ome/xml/model/enums/DetectorType.h>
83 ome::compat::shared_ptr<double>
zoom;
87 ome::compat::shared_ptr<double>
gain;
89 ome::compat::shared_ptr<double>
offset;
91 ome::compat::shared_ptr<ome::xml::model::enums::DetectorType>
type;
97 ome::compat::weak_ptr<ome::xml::model::Instrument>
instrument;
130 static ome::compat::shared_ptr< Detector>
155 link (ome::compat::shared_ptr<Reference>& reference,
156 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
163 ome::compat::shared_ptr<double>
171 const ome::compat::shared_ptr<double>
180 setZoom (ome::compat::shared_ptr<double>& zoom);
187 ome::compat::shared_ptr<double>
195 const ome::compat::shared_ptr<double>
211 ome::compat::shared_ptr<double>
219 const ome::compat::shared_ptr<double>
228 setGain (ome::compat::shared_ptr<double>& gain);
235 ome::compat::shared_ptr<double>
243 const ome::compat::shared_ptr<double>
252 setOffset (ome::compat::shared_ptr<double>& offset);
259 ome::compat::shared_ptr<ome::xml::model::enums::DetectorType>
267 const ome::compat::shared_ptr<ome::xml::model::enums::DetectorType>
276 setType (ome::compat::shared_ptr<ome::xml::model::enums::DetectorType>& type);
292 setID (
const std::string&
id);
299 ome::compat::shared_ptr<double>
307 const ome::compat::shared_ptr<double>
316 setVoltage (ome::compat::shared_ptr<double>& voltage);
323 ome::compat::weak_ptr<ome::xml::model::Instrument>
331 const ome::compat::weak_ptr<ome::xml::model::Instrument>
340 setInstrument (ome::compat::weak_ptr<ome::xml::model::Instrument>& instrument_BackReference);
364 #endif // OME_XML_MODEL_DETECTOR_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
void setInstrument(ome::compat::weak_ptr< ome::xml::model::Instrument > &instrument_BackReference)
Set the Instrument property.
Definition: Detector.cpp:429
const std::string & getID() const
Get the ID property.
Definition: Detector.cpp:380
void setVoltage(ome::compat::shared_ptr< double > &voltage)
Set the Voltage property.
Definition: Detector.cpp:408
void setAmplificationGain(ome::compat::shared_ptr< double > &lificationGain)
Set the AmplificationGain property.
Definition: Detector.cpp:310
ome::compat::shared_ptr< double > getVoltage()
Get the Voltage property.
Definition: Detector.cpp:394
ome::compat::shared_ptr< std::string > model
Model property.
Definition: ManufacturerSpec.h:83
ome::compat::shared_ptr< double > offset
Offset property.
Definition: Detector.h:89
ome::compat::shared_ptr< double > getOffset()
Get the Offset property.
Definition: Detector.cpp:338
void setOffset(ome::compat::shared_ptr< double > &offset)
Set the Offset property.
Definition: Detector.cpp:352
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Detector.cpp:436
DOM Document wrapper.
Definition: Document.h:82
DOM Element wrapper.
Definition: Element.h:66
void setID(const std::string &id)
Set the ID property.
Definition: Detector.cpp:387
void setZoom(ome::compat::shared_ptr< double > &zoom)
Set the Zoom property.
Definition: Detector.cpp:289
void setType(ome::compat::shared_ptr< ome::xml::model::enums::DetectorType > &type)
Set the Type property.
Definition: Detector.cpp:373
bool link(ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: Detector.cpp:260
ome::compat::shared_ptr< double > voltage
Voltage property.
Definition: Detector.h:95
static ome::compat::shared_ptr< Detector > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Detector model object from DOM element.
Definition: Detector.cpp:156
ome::compat::shared_ptr< ome::xml::model::enums::DetectorType > getType()
Get the Type property.
Definition: Detector.cpp:359
Detector model object.
Definition: Detector.h:79
ome::compat::weak_ptr< ome::xml::model::Instrument > getInstrument()
Get the Instrument property.
Definition: Detector.cpp:415
ome::compat::shared_ptr< double > getZoom()
Get the Zoom property.
Definition: Detector.cpp:275
void setGain(ome::compat::shared_ptr< double > &gain)
Set the Gain property.
Definition: Detector.cpp:331
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Detector.cpp:541
Detector()
Default constructor.
Definition: Detector.cpp:118
virtual common::xml::dom::Element asXMLElementInternal(common::xml::dom::Document &document, common::xml::dom::Element &element) const
Transform the object hierarchy rooted at this element to XML.
Definition: Detector.cpp:443
ome::compat::shared_ptr< double > gain
Gain property.
Definition: Detector.h:87
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Detector.cpp:172
ome::compat::shared_ptr< double > amplificationGain
AmplificationGain property.
Definition: Detector.h:85
ome::compat::shared_ptr< double > getGain()
Get the Gain property.
Definition: Detector.cpp:317
ome::compat::shared_ptr< ome::xml::model::enums::DetectorType > type
Type property.
Definition: Detector.h:91
std::string id
ID property.
Definition: Detector.h:93
const std::string & elementName() const
Get the element name of this model object.
Definition: Detector.cpp:165
ome::compat::weak_ptr< ome::xml::model::Instrument > instrument
Instrument_BackReference back reference.
Definition: Detector.h:97
ManufacturerSpec model object.
Definition: ManufacturerSpec.h:77
virtual ~Detector()
Destructor.
Definition: Detector.cpp:151
virtual void update(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Update the object hierarchy recursively from an XML DOM tree.
Definition: Detector.cpp:181
ome::compat::shared_ptr< double > getAmplificationGain()
Get the AmplificationGain property.
Definition: Detector.cpp:296
ome::compat::shared_ptr< double > zoom
Zoom property.
Definition: Detector.h:83
Xerces-C modern C++ wrapper.
Definition: Base.h:53