46 #ifndef OME_XML_MODEL_DETECTORSETTINGS_H
47 #define OME_XML_MODEL_DETECTORSETTINGS_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/Detector.h>
63 #include <ome/xml/model/Settings.h>
64 #include <ome/xml/model/enums/Binning.h>
65 #include <ome/xml/model/primitives/PositiveInteger.h>
84 ome::compat::shared_ptr<double>
zoom;
86 ome::compat::shared_ptr<ome::xml::model::enums::Binning>
binning;
88 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
integration;
92 ome::compat::shared_ptr<double>
gain;
94 ome::compat::shared_ptr<double>
offset;
100 ome::compat::weak_ptr<ome::xml::model::Detector>
detector;
133 static ome::compat::shared_ptr< DetectorSettings>
158 link (ome::compat::shared_ptr<Reference>& reference,
159 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
166 ome::compat::shared_ptr<double>
174 const ome::compat::shared_ptr<double>
183 setZoom (ome::compat::shared_ptr<double>& zoom);
190 ome::compat::shared_ptr<ome::xml::model::enums::Binning>
198 const ome::compat::shared_ptr<ome::xml::model::enums::Binning>
207 setBinning (ome::compat::shared_ptr<ome::xml::model::enums::Binning>& binning);
214 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
222 const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
231 setIntegration (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& integration);
238 ome::compat::shared_ptr<double>
246 const ome::compat::shared_ptr<double>
262 ome::compat::shared_ptr<double>
270 const ome::compat::shared_ptr<double>
279 setGain (ome::compat::shared_ptr<double>& gain);
286 ome::compat::shared_ptr<double>
294 const ome::compat::shared_ptr<double>
303 setOffset (ome::compat::shared_ptr<double>& offset);
319 setID (
const std::string&
id);
326 ome::compat::shared_ptr<double>
334 const ome::compat::shared_ptr<double>
343 setVoltage (ome::compat::shared_ptr<double>& voltage);
350 ome::compat::weak_ptr<ome::xml::model::Detector>
358 const ome::compat::weak_ptr<ome::xml::model::Detector>
367 setDetector (ome::compat::weak_ptr<ome::xml::model::Detector>& detector);
391 #endif // OME_XML_MODEL_DETECTORSETTINGS_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
void setReadOutRate(ome::compat::shared_ptr< double > &readOutRate)
Set the ReadOutRate property.
Definition: DetectorSettings.cpp:366
void setDetector(ome::compat::weak_ptr< ome::xml::model::Detector > &detector)
Set the Detector property.
Definition: DetectorSettings.cpp:464
ome::compat::shared_ptr< double > getReadOutRate()
Get the ReadOutRate property.
Definition: DetectorSettings.cpp:352
ome::compat::shared_ptr< double > getVoltage()
Get the Voltage property.
Definition: DetectorSettings.cpp:429
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: DetectorSettings.cpp:177
Settings model object.
Definition: Settings.h:77
ome::compat::shared_ptr< double > getGain()
Get the Gain property.
Definition: DetectorSettings.cpp:373
const std::string & elementName() const
Get the element name of this model object.
Definition: DetectorSettings.cpp:170
ome::compat::shared_ptr< double > offset
Offset property.
Definition: DetectorSettings.h:94
void setZoom(ome::compat::shared_ptr< double > &zoom)
Set the Zoom property.
Definition: DetectorSettings.cpp:303
void setBinning(ome::compat::shared_ptr< ome::xml::model::enums::Binning > &binning)
Set the Binning property.
Definition: DetectorSettings.cpp:324
ome::compat::weak_ptr< ome::xml::model::Detector > getDetector()
Get the Detector property.
Definition: DetectorSettings.cpp:450
DOM Document wrapper.
Definition: Document.h:82
DOM Element wrapper.
Definition: Element.h:66
void setGain(ome::compat::shared_ptr< double > &gain)
Set the Gain property.
Definition: DetectorSettings.cpp:387
ome::compat::shared_ptr< double > getZoom()
Get the Zoom property.
Definition: DetectorSettings.cpp:289
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getIntegration()
Get the Integration property.
Definition: DetectorSettings.cpp:331
ome::compat::shared_ptr< ome::xml::model::enums::Binning > binning
Binning property.
Definition: DetectorSettings.h:86
void setIntegration(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &integration)
Set the Integration property.
Definition: DetectorSettings.cpp:345
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: DetectorSettings.cpp:471
ome::compat::shared_ptr< double > zoom
Zoom property.
Definition: DetectorSettings.h:84
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: DetectorSettings.cpp:274
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
DetectorSettings()
Default constructor.
Definition: DetectorSettings.cpp:121
DetectorSettings model object.
Definition: DetectorSettings.h:80
static ome::compat::shared_ptr< DetectorSettings > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a DetectorSettings model object from DOM element.
Definition: DetectorSettings.cpp:161
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: DetectorSettings.cpp:186
ome::compat::shared_ptr< ome::xml::model::enums::Binning > getBinning()
Get the Binning property.
Definition: DetectorSettings.cpp:310
void setID(const std::string &id)
Set the ID property.
Definition: DetectorSettings.cpp:422
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: DetectorSettings.cpp:588
ome::compat::shared_ptr< double > readOutRate
ReadOutRate property.
Definition: DetectorSettings.h:90
ome::compat::shared_ptr< double > getOffset()
Get the Offset property.
Definition: DetectorSettings.cpp:394
const std::string & getID() const
Get the ID property.
Definition: DetectorSettings.cpp:415
std::string id
ID property.
Definition: DetectorSettings.h:96
ome::compat::shared_ptr< double > voltage
Voltage property.
Definition: DetectorSettings.h:98
void setVoltage(ome::compat::shared_ptr< double > &voltage)
Set the Voltage property.
Definition: DetectorSettings.cpp:443
ome::compat::weak_ptr< ome::xml::model::Detector > detector
DetectorRef back reference.
Definition: DetectorSettings.h:100
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: DetectorSettings.cpp:478
ome::compat::shared_ptr< double > gain
Gain property.
Definition: DetectorSettings.h:92
virtual ~DetectorSettings()
Destructor.
Definition: DetectorSettings.cpp:156
void setOffset(ome::compat::shared_ptr< double > &offset)
Set the Offset property.
Definition: DetectorSettings.cpp:408
Xerces-C modern C++ wrapper.
Definition: Base.h:53
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > integration
Integration property.
Definition: DetectorSettings.h:88