46 #ifndef OME_XML_MODEL_OBJECTIVE_H 47 #define OME_XML_MODEL_OBJECTIVE_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/Correction.h> 66 #include <ome/xml/model/enums/Immersion.h> 67 #include <ome/xml/model/enums/UnitsLength.h> 88 std::shared_ptr<Impl>
impl;
119 static std::shared_ptr<Objective>
148 link (std::shared_ptr<Reference>& reference,
149 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
156 std::shared_ptr<bool>
164 const std::shared_ptr<bool>
173 setIris (std::shared_ptr<bool>& iris);
180 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
188 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
204 std::shared_ptr<ome::xml::model::enums::Immersion>
212 const std::shared_ptr<ome::xml::model::enums::Immersion>
221 setImmersion (std::shared_ptr<ome::xml::model::enums::Immersion>& immersion);
228 std::shared_ptr<ome::xml::model::enums::Correction>
236 const std::shared_ptr<ome::xml::model::enums::Correction>
245 setCorrection (std::shared_ptr<ome::xml::model::enums::Correction>& correction);
252 std::shared_ptr<double>
260 const std::shared_ptr<double>
269 setLensNA (std::shared_ptr<double>& lensNA);
276 std::shared_ptr<double>
284 const std::shared_ptr<double>
300 std::shared_ptr<double>
308 const std::shared_ptr<double>
333 setID (
const std::string&
id);
358 const std::weak_ptr<ome::xml::model::Annotation>&
371 const std::weak_ptr<ome::xml::model::Annotation>&
373 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
386 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
404 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
411 std::weak_ptr<ome::xml::model::Instrument>
419 const std::weak_ptr<ome::xml::model::Instrument>
428 setInstrument (std::weak_ptr<ome::xml::model::Instrument>& instrument_BackReference);
446 #endif // OME_XML_MODEL_OBJECTIVE_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
const std::string & getID() const
Get the ID property.
Definition: Objective.cpp:509
void setInstrument(std::weak_ptr< ome::xml::model::Instrument > &instrument_BackReference)
Set the Instrument property.
Definition: Objective.cpp:597
static std::shared_ptr< Objective > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Objective model object from DOM element.
Definition: Objective.cpp:206
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getWorkingDistance()
Get the WorkingDistance property.
Definition: Objective.cpp:383
void setImmersion(std::shared_ptr< ome::xml::model::enums::Immersion > &immersion)
Set the Immersion property.
Definition: Objective.cpp:418
std::shared_ptr< double > getCalibratedMagnification()
Get the CalibratedMagnification property.
Definition: Objective.cpp:488
std::weak_ptr< ome::xml::model::Instrument > getInstrument()
Get the Instrument property.
Definition: Objective.cpp:583
Private implementation details of Objective model object.
Definition: Objective.cpp:76
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Objective.cpp:716
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 linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Objective.cpp:551
void setWorkingDistance(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &workingDistance)
Set the WorkingDistance property.
Definition: Objective.cpp:397
void setIris(std::shared_ptr< bool > &iris)
Set the Iris property.
Definition: Objective.cpp:376
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: Objective.cpp:331
void setNominalMagnification(std::shared_ptr< double > &nominalMagnification)
Set the NominalMagnification property.
Definition: Objective.cpp:481
std::shared_ptr< ome::xml::model::enums::Correction > getCorrection()
Get the Correction property.
Definition: Objective.cpp:425
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
std::shared_ptr< ome::xml::model::enums::Immersion > getImmersion()
Get the Immersion property.
Definition: Objective.cpp:404
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Objective.cpp:565
Open Microscopy Environment C++ implementation.
void setCalibratedMagnification(std::shared_ptr< double > &calibratedMagnification)
Set the CalibratedMagnification property.
Definition: Objective.cpp:502
std::shared_ptr< double > getNominalMagnification()
Get the NominalMagnification property.
Definition: Objective.cpp:467
Objective model object.
Definition: Objective.h:83
std::shared_ptr< bool > getIris()
Get the Iris property.
Definition: Objective.cpp:362
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Objective.cpp:523
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Objective.cpp:222
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: Objective.cpp:228
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: Objective.cpp:603
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Objective.cpp:529
virtual ~Objective()
Destructor.
Definition: Objective.cpp:201
ManufacturerSpec model object.
Definition: ManufacturerSpec.h:78
void setLensNA(std::shared_ptr< double > &lensNA)
Set the LensNA property.
Definition: Objective.cpp:460
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: Objective.cpp:541
A quantity of a defined unit.
Definition: Quantity.h:57
Objective()
Default constructor.
Definition: Objective.cpp:182
void setCorrection(std::shared_ptr< ome::xml::model::enums::Correction > &correction)
Set the Correction property.
Definition: Objective.cpp:439
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: Objective.cpp:535
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Objective.h:86
std::shared_ptr< double > getLensNA()
Get the LensNA property.
Definition: Objective.cpp:446
const std::string & elementName() const
Get the element name of this model object.
Definition: Objective.cpp:215
void setID(const std::string &id)
Set the ID property.
Definition: Objective.cpp:516