46 #ifndef OME_XML_MODEL_IMAGE_H 47 #define OME_XML_MODEL_IMAGE_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/Experiment.h> 63 #include <ome/xml/model/Experimenter.h> 64 #include <ome/xml/model/ExperimenterGroup.h> 65 #include <ome/xml/model/ImagingEnvironment.h> 66 #include <ome/xml/model/Instrument.h> 67 #include <ome/xml/model/ObjectiveSettings.h> 68 #include <ome/xml/model/Pixels.h> 69 #include <ome/xml/model/StageLabel.h> 70 #include <ome/xml/model/detail/OMEModelObject.h> 71 #include <ome/xml/model/primitives/Timestamp.h> 83 class MicrobeamManipulation;
96 ome::compat::shared_ptr<Impl>
impl;
127 static ome::compat::shared_ptr< Image>
152 link (ome::compat::shared_ptr<Reference>& reference,
153 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
169 setID (
const std::string&
id);
176 ome::compat::shared_ptr<std::string>
184 const ome::compat::shared_ptr<std::string>
193 setName (ome::compat::shared_ptr<std::string>& name);
200 ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
208 const ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
217 setAcquisitionDate (ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>& acquisitionDate);
225 ome::compat::weak_ptr<ome::xml::model::Experimenter>
234 const ome::compat::weak_ptr<ome::xml::model::Experimenter>
243 linkExperimenter (ome::compat::shared_ptr<ome::xml::model::Experimenter>& experimenter);
255 unlinkExperimenter (ome::compat::shared_ptr<ome::xml::model::Experimenter>& experimenter);
262 ome::compat::shared_ptr<std::string>
270 const ome::compat::shared_ptr<std::string>
279 setDescription (ome::compat::shared_ptr<std::string>& description);
287 ome::compat::weak_ptr<ome::xml::model::Experiment>
296 const ome::compat::weak_ptr<ome::xml::model::Experiment>
305 linkExperiment (ome::compat::shared_ptr<ome::xml::model::Experiment>& experiment);
317 unlinkExperiment (ome::compat::shared_ptr<ome::xml::model::Experiment>& experiment);
325 ome::compat::weak_ptr<ome::xml::model::ExperimenterGroup>
334 const ome::compat::weak_ptr<ome::xml::model::ExperimenterGroup>
343 linkExperimenterGroup (ome::compat::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
363 ome::compat::weak_ptr<ome::xml::model::Instrument>
372 const ome::compat::weak_ptr<ome::xml::model::Instrument>
381 linkInstrument (ome::compat::shared_ptr<ome::xml::model::Instrument>& instrument);
393 unlinkInstrument (ome::compat::shared_ptr<ome::xml::model::Instrument>& instrument);
400 ome::compat::shared_ptr<ome::xml::model::ObjectiveSettings>
408 const ome::compat::shared_ptr<ome::xml::model::ObjectiveSettings>
417 setObjectiveSettings (ome::compat::shared_ptr<ome::xml::model::ObjectiveSettings>& objectiveSettings);
424 ome::compat::shared_ptr<ome::xml::model::ImagingEnvironment>
432 const ome::compat::shared_ptr<ome::xml::model::ImagingEnvironment>
441 setImagingEnvironment (ome::compat::shared_ptr<ome::xml::model::ImagingEnvironment>& imagingEnvironment);
448 ome::compat::shared_ptr<ome::xml::model::StageLabel>
456 const ome::compat::shared_ptr<ome::xml::model::StageLabel>
465 setStageLabel (ome::compat::shared_ptr<ome::xml::model::StageLabel>& stageLabel);
472 ome::compat::shared_ptr<ome::xml::model::Pixels>
480 const ome::compat::shared_ptr<ome::xml::model::Pixels>
489 setPixels (ome::compat::shared_ptr<ome::xml::model::Pixels>& pixels);
514 const ome::compat::weak_ptr<ome::xml::model::ROI>&
527 const ome::compat::weak_ptr<ome::xml::model::ROI>&
529 const ome::compat::shared_ptr<ome::xml::model::ROI>& roi);
542 linkROI (
const ome::compat::shared_ptr<ome::xml::model::ROI>& roi);
560 unlinkROI (
const ome::compat::shared_ptr<ome::xml::model::ROI>& roi);
585 const ome::compat::weak_ptr<ome::xml::model::MicrobeamManipulation>&
598 const ome::compat::weak_ptr<ome::xml::model::MicrobeamManipulation>&
600 const ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation>& microbeamManipulation);
613 linkMicrobeamManipulation (
const ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation>& microbeamManipulation);
656 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
669 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
671 const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
684 linkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
702 unlinkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
727 const ome::compat::weak_ptr<ome::xml::model::Dataset>&
740 const ome::compat::weak_ptr<ome::xml::model::Dataset>&
742 const ome::compat::shared_ptr<ome::xml::model::Dataset>& dataset_BackReference);
755 linkDataset (
const ome::compat::shared_ptr<ome::xml::model::Dataset>& dataset_BackReference);
773 unlinkDataset (
const ome::compat::shared_ptr<ome::xml::model::Dataset>& dataset_BackReference);
798 const ome::compat::weak_ptr<ome::xml::model::WellSample>&
811 const ome::compat::weak_ptr<ome::xml::model::WellSample>&
813 const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample_BackReference);
826 linkWellSample (
const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample_BackReference);
844 unlinkWellSample (
const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample_BackReference);
868 #endif // OME_XML_MODEL_IMAGE_H OME model interface (abstract top-level container)
Definition: OMEModel.h:62
const ome::compat::weak_ptr< ome::xml::model::WellSample > & setLinkedWellSample(OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample_BackReference)
Set linked WellSample.
Definition: Image.cpp:1174
OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, ome::compat::weak_ptr >::type getLinkedMicrobeamManipulationList() const
Get the linked MicrobeamManipulation list.
Definition: Image.cpp:984
void setStageLabel(ome::compat::shared_ptr< ome::xml::model::StageLabel > &stageLabel)
Set the StageLabel property.
Definition: Image.cpp:890
OMEModelObject::indexed_container< ome::xml::model::ROI, ome::compat::weak_ptr >::type::size_type sizeOfLinkedROIList() const
Get size of linked ROI list.
Definition: Image.cpp:918
ome::compat::shared_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: Image.cpp:897
ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > getAcquisitionDate()
Get the AcquisitionDate property.
Definition: Image.cpp:676
bool linkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Image.cpp:1066
void unlinkExperiment(ome::compat::shared_ptr< ome::xml::model::Experiment > &experiment)
Unlink Experiment.
Definition: Image.cpp:766
ome::compat::weak_ptr< ome::xml::model::Experimenter > getLinkedExperimenter()
Get linked Experimenter.
Definition: Image.cpp:697
const ome::compat::weak_ptr< ome::xml::model::Dataset > & getLinkedDataset(OMEModelObject::indexed_container< ome::xml::model::Dataset, ome::compat::weak_ptr >::type::size_type index) const
Get linked Dataset.
Definition: Image.cpp:1110
OMEModelObject::indexed_container< ome::xml::model::ROI, ome::compat::weak_ptr >::type getLinkedROIList() const
Get the linked ROI list.
Definition: Image.cpp:924
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: Image.cpp:1221
void setImagingEnvironment(ome::compat::shared_ptr< ome::xml::model::ImagingEnvironment > &imagingEnvironment)
Set the ImagingEnvironment property.
Definition: Image.cpp:869
const ome::compat::weak_ptr< ome::xml::model::WellSample > & getLinkedWellSample(OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type::size_type index) const
Get linked WellSample.
Definition: Image.cpp:1168
void linkInstrument(ome::compat::shared_ptr< ome::xml::model::Instrument > &instrument)
Link Instrument.
Definition: Image.cpp:818
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Image.cpp:1038
bool linkWellSample(const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample_BackReference)
Link WellSample.
Definition: Image.cpp:1184
bool unlinkROI(const ome::compat::shared_ptr< ome::xml::model::ROI > &roi)
Unlink ROI.
Definition: Image.cpp:960
ome::compat::shared_ptr< std::string > getName()
Get the Name property.
Definition: Image.cpp:655
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Image.cpp:1044
const ome::compat::weak_ptr< ome::xml::model::Dataset > & setLinkedDataset(OMEModelObject::indexed_container< ome::xml::model::Dataset, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::Dataset > &dataset_BackReference)
Set linked Dataset.
Definition: Image.cpp:1116
void linkExperiment(ome::compat::shared_ptr< ome::xml::model::Experiment > &experiment)
Link Experiment.
Definition: Image.cpp:760
void unlinkExperimenter(ome::compat::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Unlink Experimenter.
Definition: Image.cpp:716
ome::compat::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: Image.cpp:726
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
Image model object.
Definition: Image.h:91
ome::compat::shared_ptr< ome::xml::model::StageLabel > getStageLabel()
Get the StageLabel property.
Definition: Image.cpp:876
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 > >, ome::compat::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:94
const ome::compat::weak_ptr< ome::xml::model::ROI > & getLinkedROI(OMEModelObject::indexed_container< ome::xml::model::ROI, ome::compat::weak_ptr >::type::size_type index) const
Get linked ROI.
Definition: Image.cpp:930
void unlinkInstrument(ome::compat::shared_ptr< ome::xml::model::Instrument > &instrument)
Unlink Instrument.
Definition: Image.cpp:824
bool linkDataset(const ome::compat::shared_ptr< ome::xml::model::Dataset > &dataset_BackReference)
Link Dataset.
Definition: Image.cpp:1126
Private implementation details of Image model object.
Definition: Image.cpp:119
void setID(const std::string &id)
Set the ID property.
Definition: Image.cpp:648
OMEModelObject::indexed_container< ome::xml::model::Dataset, ome::compat::weak_ptr >::type getLinkedDatasetList() const
Get the linked Dataset list.
Definition: Image.cpp:1104
bool linkMicrobeamManipulation(const ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Link MicrobeamManipulation.
Definition: Image.cpp:1006
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: Image.cpp:320
Image()
Default constructor.
Definition: Image.cpp:271
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:85
void setName(ome::compat::shared_ptr< std::string > &name)
Set the Name property.
Definition: Image.cpp:669
Open Microscopy Environment C++ implementation.
void unlinkExperimenterGroup(ome::compat::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Unlink ExperimenterGroup.
Definition: Image.cpp:795
void setAcquisitionDate(ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > &acquisitionDate)
Set the AcquisitionDate property.
Definition: Image.cpp:690
ome::compat::weak_ptr< ome::xml::model::Instrument > getLinkedInstrument()
Get linked Instrument.
Definition: Image.cpp:805
const ome::compat::weak_ptr< ome::xml::model::Annotation > & setLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Set linked Annotation.
Definition: Image.cpp:1056
const std::string & getID() const
Get the ID property.
Definition: Image.cpp:641
bool linkROI(const ome::compat::shared_ptr< ome::xml::model::ROI > &roi)
Link ROI.
Definition: Image.cpp:946
bool unlinkWellSample(const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample_BackReference)
Unlink WellSample.
Definition: Image.cpp:1197
ome::compat::weak_ptr< ome::xml::model::ExperimenterGroup > getLinkedExperimenterGroup()
Get linked ExperimenterGroup.
Definition: Image.cpp:776
bool unlinkDataset(const ome::compat::shared_ptr< ome::xml::model::Dataset > &dataset_BackReference)
Unlink Dataset.
Definition: Image.cpp:1139
void setPixels(ome::compat::shared_ptr< ome::xml::model::Pixels > &pixels)
Set the Pixels property.
Definition: Image.cpp:911
void linkExperimenterGroup(ome::compat::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Link ExperimenterGroup.
Definition: Image.cpp:789
ome::compat::shared_ptr< ome::xml::model::ObjectiveSettings > getObjectiveSettings()
Get the ObjectiveSettings property.
Definition: Image.cpp:834
const ome::compat::weak_ptr< ome::xml::model::ROI > & setLinkedROI(OMEModelObject::indexed_container< ome::xml::model::ROI, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::ROI > &roi)
Set linked ROI.
Definition: Image.cpp:936
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Image.cpp:311
virtual ~Image()
Destructor.
Definition: Image.cpp:290
const ome::compat::weak_ptr< ome::xml::model::MicrobeamManipulation > & getLinkedMicrobeamManipulation(OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, ome::compat::weak_ptr >::type::size_type index) const
Get linked MicrobeamManipulation.
Definition: Image.cpp:990
OMEModelObject::indexed_container< ome::xml::model::Dataset, ome::compat::weak_ptr >::type::size_type sizeOfLinkedDatasetList() const
Get size of linked Dataset list.
Definition: Image.cpp:1098
bool unlinkMicrobeamManipulation(const ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Unlink MicrobeamManipulation.
Definition: Image.cpp:1020
void linkExperimenter(ome::compat::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Link Experimenter.
Definition: Image.cpp:710
ome::compat::weak_ptr< ome::xml::model::Experiment > getLinkedExperiment()
Get linked Experiment.
Definition: Image.cpp:747
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Image.h:94
static ome::compat::shared_ptr< Image > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Image model object from DOM element.
Definition: Image.cpp:295
void setDescription(ome::compat::shared_ptr< std::string > &description)
Set the Description property.
Definition: Image.cpp:740
const ome::compat::weak_ptr< ome::xml::model::Annotation > & getLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type index) const
Get linked Annotation.
Definition: Image.cpp:1050
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Image.cpp:1457
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Image.cpp:1214
OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type::size_type sizeOfLinkedWellSampleList() const
Get size of linked WellSample list.
Definition: Image.cpp:1156
const std::string & elementName() const
Get the element name of this model object.
Definition: Image.cpp:304
const ome::compat::weak_ptr< ome::xml::model::MicrobeamManipulation > & setLinkedMicrobeamManipulation(OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Set linked MicrobeamManipulation.
Definition: Image.cpp:996
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: Image.cpp:534
ome::compat::shared_ptr< ome::xml::model::ImagingEnvironment > getImagingEnvironment()
Get the ImagingEnvironment property.
Definition: Image.cpp:855
bool unlinkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Image.cpp:1080
void setObjectiveSettings(ome::compat::shared_ptr< ome::xml::model::ObjectiveSettings > &objectiveSettings)
Set the ObjectiveSettings property.
Definition: Image.cpp:848
OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, ome::compat::weak_ptr >::type::size_type sizeOfLinkedMicrobeamManipulationList() const
Get size of linked MicrobeamManipulation list.
Definition: Image.cpp:978
OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type getLinkedWellSampleList() const
Get the linked WellSample list.
Definition: Image.cpp:1162