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> 61 #include <ome/xml/model/primitives/Quantity.h> 63 #include <ome/xml/model/Instrument.h> 64 #include <ome/xml/model/ManufacturerSpec.h> 65 #include <ome/xml/model/enums/DetectorType.h> 66 #include <ome/xml/model/enums/UnitsElectricPotential.h> 87 std::shared_ptr<Impl>
impl;
118 static std::shared_ptr<Detector>
132 operator= (
const Detector&) =
delete;
147 link (std::shared_ptr<Reference>& reference,
148 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
155 std::shared_ptr<double>
163 const std::shared_ptr<double>
172 setZoom (std::shared_ptr<double>& zoom);
179 std::shared_ptr<double>
187 const std::shared_ptr<double>
203 std::shared_ptr<double>
211 const std::shared_ptr<double>
220 setGain (std::shared_ptr<double>& gain);
227 std::shared_ptr<double>
235 const std::shared_ptr<double>
244 setOffset (std::shared_ptr<double>& offset);
251 std::shared_ptr<ome::xml::model::enums::DetectorType>
259 const std::shared_ptr<ome::xml::model::enums::DetectorType>
268 setType (std::shared_ptr<ome::xml::model::enums::DetectorType>& type);
284 setID (
const std::string&
id);
291 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsElectricPotential > >&
299 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsElectricPotential > >&
333 const std::weak_ptr<ome::xml::model::Annotation>&
346 const std::weak_ptr<ome::xml::model::Annotation>&
348 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
361 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
379 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
386 std::weak_ptr<ome::xml::model::Instrument>
394 const std::weak_ptr<ome::xml::model::Instrument>
403 setInstrument (std::weak_ptr<ome::xml::model::Instrument>& instrument_BackReference);
421 #endif // OME_XML_MODEL_DETECTOR_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Detector.cpp:214
const std::weak_ptr< ome::xml::model::Annotation > & setLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Set linked Annotation.
Definition: Detector.cpp:505
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Detector.cpp:487
std::weak_ptr< ome::xml::model::Instrument > getInstrument()
Get the Instrument property.
Definition: Detector.cpp:547
void setZoom(std::shared_ptr< double > &zoom)
Set the Zoom property.
Definition: Detector.cpp:361
boost::multi_index_container< Ptr< T >, boost::multi_index::indexed_by< boost::multi_index::random_access<>, boost::multi_index::ordered_unique< boost::multi_index::identity< Ptr< T > >, std::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:93
bool link(std::shared_ptr< Reference > &reference, std::shared_ptr< ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: Detector.cpp:316
void setID(const std::string &id)
Set the ID property.
Definition: Detector.cpp:459
std::shared_ptr< double > getGain()
Get the Gain property.
Definition: Detector.cpp:389
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsElectricPotential > > & getVoltage()
Get the Voltage property.
Definition: Detector.cpp:466
std::shared_ptr< double > getAmplificationGain()
Get the AmplificationGain property.
Definition: Detector.cpp:368
void setType(std::shared_ptr< ome::xml::model::enums::DetectorType > &type)
Set the Type property.
Definition: Detector.cpp:445
Private implementation details of Detector model object.
Definition: Detector.cpp:75
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Detector.cpp:515
std::shared_ptr< double > getOffset()
Get the Offset property.
Definition: Detector.cpp:410
Detector model object.
Definition: Detector.h:82
std::shared_ptr< ome::xml::model::enums::DetectorType > getType()
Get the Type property.
Definition: Detector.cpp:431
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
Open Microscopy Environment C++ implementation.
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Detector.h:85
const std::string & getID() const
Get the ID property.
Definition: Detector.cpp:452
Detector()
Default constructor.
Definition: Detector.cpp:174
const std::string & elementName() const
Get the element name of this model object.
Definition: Detector.cpp:207
void setAmplificationGain(std::shared_ptr< double > &lificationGain)
Set the AmplificationGain property.
Definition: Detector.cpp:382
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Detector.cpp:493
void setInstrument(std::weak_ptr< ome::xml::model::Instrument > &instrument_BackReference)
Set the Instrument property.
Definition: Detector.cpp:561
ManufacturerSpec model object.
Definition: ManufacturerSpec.h:78
void setVoltage(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsElectricPotential > > &voltage)
Set the Voltage property.
Definition: Detector.cpp:480
std::shared_ptr< double > getZoom()
Get the Zoom property.
Definition: Detector.cpp:347
A quantity of a defined unit.
Definition: Quantity.h:57
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Detector.cpp:670
virtual ~Detector()
Destructor.
Definition: Detector.cpp:193
const std::weak_ptr< ome::xml::model::Annotation > & getLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type index) const
Get linked Annotation.
Definition: Detector.cpp:499
virtual SKIP 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:220
static std::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:198
void setGain(std::shared_ptr< double > &gain)
Set the Gain property.
Definition: Detector.cpp:403
virtual void 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:567
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Detector.cpp:529
void setOffset(std::shared_ptr< double > &offset)
Set the Offset property.
Definition: Detector.cpp:424