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>
84 ome::compat::shared_ptr<Impl>
impl;
115 static ome::compat::shared_ptr< Detector>
140 link (ome::compat::shared_ptr<Reference>& reference,
141 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
148 ome::compat::shared_ptr<double>
156 const ome::compat::shared_ptr<double>
165 setZoom (ome::compat::shared_ptr<double>& zoom);
172 ome::compat::shared_ptr<double>
180 const ome::compat::shared_ptr<double>
196 ome::compat::shared_ptr<double>
204 const ome::compat::shared_ptr<double>
213 setGain (ome::compat::shared_ptr<double>& gain);
220 ome::compat::shared_ptr<double>
228 const ome::compat::shared_ptr<double>
237 setOffset (ome::compat::shared_ptr<double>& offset);
244 ome::compat::shared_ptr<ome::xml::model::enums::DetectorType>
252 const ome::compat::shared_ptr<ome::xml::model::enums::DetectorType>
261 setType (ome::compat::shared_ptr<ome::xml::model::enums::DetectorType>& type);
277 setID (
const std::string&
id);
284 ome::compat::shared_ptr<double>
292 const ome::compat::shared_ptr<double>
301 setVoltage (ome::compat::shared_ptr<double>& voltage);
308 ome::compat::weak_ptr<ome::xml::model::Instrument>
316 const ome::compat::weak_ptr<ome::xml::model::Instrument>
325 setInstrument (ome::compat::weak_ptr<ome::xml::model::Instrument>& instrument_BackReference);
349 #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:458
const std::string & getID() const
Get the ID property.
Definition: Detector.cpp:409
void setVoltage(ome::compat::shared_ptr< double > &voltage)
Set the Voltage property.
Definition: Detector.cpp:437
void setAmplificationGain(ome::compat::shared_ptr< double > &lificationGain)
Set the AmplificationGain property.
Definition: Detector.cpp:339
ome::compat::shared_ptr< double > getVoltage()
Get the Voltage property.
Definition: Detector.cpp:423
ome::compat::shared_ptr< double > getOffset()
Get the Offset property.
Definition: Detector.cpp:367
void setOffset(ome::compat::shared_ptr< double > &offset)
Set the Offset property.
Definition: Detector.cpp:381
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:465
DOM Document wrapper.
Definition: Document.h:83
DOM Element wrapper.
Definition: Element.h:66
void setID(const std::string &id)
Set the ID property.
Definition: Detector.cpp:416
void setZoom(ome::compat::shared_ptr< double > &zoom)
Set the Zoom property.
Definition: Detector.cpp:318
Private implementation details of Detector model object.
Definition: Detector.cpp:72
void setType(ome::compat::shared_ptr< ome::xml::model::enums::DetectorType > &type)
Set the Type property.
Definition: Detector.cpp:402
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:289
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:185
ome::compat::shared_ptr< ome::xml::model::enums::DetectorType > getType()
Get the Type property.
Definition: Detector.cpp:388
Detector model object.
Definition: Detector.h:79
ome::compat::weak_ptr< ome::xml::model::Instrument > getInstrument()
Get the Instrument property.
Definition: Detector.cpp:444
ome::compat::shared_ptr< double > getZoom()
Get the Zoom property.
Definition: Detector.cpp:304
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Detector.h:82
void setGain(ome::compat::shared_ptr< double > &gain)
Set the Gain property.
Definition: Detector.cpp:360
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:570
Detector()
Default constructor.
Definition: Detector.cpp:161
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:472
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Detector.cpp:201
ome::compat::shared_ptr< double > getGain()
Get the Gain property.
Definition: Detector.cpp:346
const std::string & elementName() const
Get the element name of this model object.
Definition: Detector.cpp:194
ManufacturerSpec model object.
Definition: ManufacturerSpec.h:77
virtual ~Detector()
Destructor.
Definition: Detector.cpp:180
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:210
ome::compat::shared_ptr< double > getAmplificationGain()
Get the AmplificationGain property.
Definition: Detector.cpp:325
Xerces-C modern C++ wrapper.
Definition: Base.h:53