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;
97 ome::compat::shared_ptr<std::string>
name;
105 ome::compat::weak_ptr<ome::xml::model::Experiment>
experiment;
109 ome::compat::weak_ptr<ome::xml::model::Instrument>
instrument;
115 ome::compat::shared_ptr<ome::xml::model::StageLabel>
stageLabel;
117 ome::compat::shared_ptr<ome::xml::model::Pixels>
pixels;
160 static ome::compat::shared_ptr< Image>
185 link (ome::compat::shared_ptr<Reference>& reference,
186 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
202 setID (
const std::string&
id);
209 ome::compat::shared_ptr<std::string>
217 const ome::compat::shared_ptr<std::string>
226 setName (ome::compat::shared_ptr<std::string>& name);
233 ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
241 const ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
250 setAcquisitionDate (ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>& acquisitionDate);
258 ome::compat::weak_ptr<ome::xml::model::Experimenter>
267 const ome::compat::weak_ptr<ome::xml::model::Experimenter>
276 linkExperimenter (ome::compat::shared_ptr<ome::xml::model::Experimenter>& experimenter);
288 unlinkExperimenter (ome::compat::shared_ptr<ome::xml::model::Experimenter>& experimenter);
295 ome::compat::shared_ptr<std::string>
303 const ome::compat::shared_ptr<std::string>
312 setDescription (ome::compat::shared_ptr<std::string>& description);
320 ome::compat::weak_ptr<ome::xml::model::Experiment>
329 const ome::compat::weak_ptr<ome::xml::model::Experiment>
338 linkExperiment (ome::compat::shared_ptr<ome::xml::model::Experiment>& experiment);
350 unlinkExperiment (ome::compat::shared_ptr<ome::xml::model::Experiment>& experiment);
358 ome::compat::weak_ptr<ome::xml::model::ExperimenterGroup>
367 const ome::compat::weak_ptr<ome::xml::model::ExperimenterGroup>
376 linkExperimenterGroup (ome::compat::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
396 ome::compat::weak_ptr<ome::xml::model::Instrument>
405 const ome::compat::weak_ptr<ome::xml::model::Instrument>
414 linkInstrument (ome::compat::shared_ptr<ome::xml::model::Instrument>& instrument);
426 unlinkInstrument (ome::compat::shared_ptr<ome::xml::model::Instrument>& instrument);
433 ome::compat::shared_ptr<ome::xml::model::ObjectiveSettings>
441 const ome::compat::shared_ptr<ome::xml::model::ObjectiveSettings>
450 setObjectiveSettings (ome::compat::shared_ptr<ome::xml::model::ObjectiveSettings>& objectiveSettings);
457 ome::compat::shared_ptr<ome::xml::model::ImagingEnvironment>
465 const ome::compat::shared_ptr<ome::xml::model::ImagingEnvironment>
474 setImagingEnvironment (ome::compat::shared_ptr<ome::xml::model::ImagingEnvironment>& imagingEnvironment);
481 ome::compat::shared_ptr<ome::xml::model::StageLabel>
489 const ome::compat::shared_ptr<ome::xml::model::StageLabel>
498 setStageLabel (ome::compat::shared_ptr<ome::xml::model::StageLabel>& stageLabel);
505 ome::compat::shared_ptr<ome::xml::model::Pixels>
513 const ome::compat::shared_ptr<ome::xml::model::Pixels>
522 setPixels (ome::compat::shared_ptr<ome::xml::model::Pixels>& pixels);
547 const ome::compat::weak_ptr<ome::xml::model::ROI>&
560 const ome::compat::weak_ptr<ome::xml::model::ROI>&
562 const ome::compat::shared_ptr<ome::xml::model::ROI>& roi);
575 linkROI (
const ome::compat::shared_ptr<ome::xml::model::ROI>& roi);
593 unlinkROI (
const ome::compat::shared_ptr<ome::xml::model::ROI>& roi);
618 const ome::compat::weak_ptr<ome::xml::model::MicrobeamManipulation>&
631 const ome::compat::weak_ptr<ome::xml::model::MicrobeamManipulation>&
633 const ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation>& microbeamManipulation);
646 linkMicrobeamManipulation (
const ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation>& microbeamManipulation);
689 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
702 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
704 const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
717 linkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
735 unlinkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
760 const ome::compat::weak_ptr<ome::xml::model::Dataset>&
773 const ome::compat::weak_ptr<ome::xml::model::Dataset>&
775 const ome::compat::shared_ptr<ome::xml::model::Dataset>& dataset_BackReference);
788 linkDataset (
const ome::compat::shared_ptr<ome::xml::model::Dataset>& dataset_BackReference);
806 unlinkDataset (
const ome::compat::shared_ptr<ome::xml::model::Dataset>& dataset_BackReference);
831 const ome::compat::weak_ptr<ome::xml::model::WellSample>&
844 const ome::compat::weak_ptr<ome::xml::model::WellSample>&
846 const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample_BackReference);
859 linkWellSample (
const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample_BackReference);
877 unlinkWellSample (
const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample_BackReference);
901 #endif // OME_XML_MODEL_IMAGE_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, ome::compat::weak_ptr >::type microbeamManipulationLinks
MicrobeamManipulationRef reference (occurs more than once)
Definition: Image.h:121
ome::compat::shared_ptr< ome::xml::model::ObjectiveSettings > objectiveSettings
ObjectiveSettings property.
Definition: Image.h:111
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:1127
OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, ome::compat::weak_ptr >::type getLinkedMicrobeamManipulationList() const
Get the linked MicrobeamManipulation list.
Definition: Image.cpp:937
ome::compat::shared_ptr< ome::xml::model::Pixels > pixels
Pixels property.
Definition: Image.h:117
void setStageLabel(ome::compat::shared_ptr< ome::xml::model::StageLabel > &stageLabel)
Set the StageLabel property.
Definition: Image.cpp:843
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:871
ome::compat::shared_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: Image.cpp:850
ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > getAcquisitionDate()
Get the AcquisitionDate property.
Definition: Image.cpp:629
bool linkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Image.cpp:1019
void unlinkExperiment(ome::compat::shared_ptr< ome::xml::model::Experiment > &experiment)
Unlink Experiment.
Definition: Image.cpp:719
ome::compat::weak_ptr< ome::xml::model::Experimenter > getLinkedExperimenter()
Get linked Experimenter.
Definition: Image.cpp:650
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:1063
ome::compat::shared_ptr< ome::xml::model::StageLabel > stageLabel
StageLabel property.
Definition: Image.h:115
OMEModelObject::indexed_container< ome::xml::model::ROI, ome::compat::weak_ptr >::type getLinkedROIList() const
Get the linked ROI list.
Definition: Image.cpp:877
std::string id
ID property.
Definition: Image.h:95
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:1174
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type annotationLinks
AnnotationRef reference (occurs more than once)
Definition: Image.h:123
void setImagingEnvironment(ome::compat::shared_ptr< ome::xml::model::ImagingEnvironment > &imagingEnvironment)
Set the ImagingEnvironment property.
Definition: Image.cpp:822
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:1121
void linkInstrument(ome::compat::shared_ptr< ome::xml::model::Instrument > &instrument)
Link Instrument.
Definition: Image.cpp:771
ome::compat::weak_ptr< ome::xml::model::ExperimenterGroup > experimenterGroup
ExperimenterGroupRef reference.
Definition: Image.h:107
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:991
bool linkWellSample(const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample_BackReference)
Link WellSample.
Definition: Image.cpp:1137
bool unlinkROI(const ome::compat::shared_ptr< ome::xml::model::ROI > &roi)
Unlink ROI.
Definition: Image.cpp:913
ome::compat::shared_ptr< std::string > getName()
Get the Name property.
Definition: Image.cpp:608
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Image.cpp:997
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:1069
void linkExperiment(ome::compat::shared_ptr< ome::xml::model::Experiment > &experiment)
Link Experiment.
Definition: Image.cpp:713
DOM Document wrapper.
Definition: Document.h:82
void unlinkExperimenter(ome::compat::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Unlink Experimenter.
Definition: Image.cpp:669
ome::compat::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: Image.cpp:679
ome::compat::shared_ptr< std::string > description
Description property.
Definition: Image.h:103
DOM Element wrapper.
Definition: Element.h:66
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:829
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:883
void unlinkInstrument(ome::compat::shared_ptr< ome::xml::model::Instrument > &instrument)
Unlink Instrument.
Definition: Image.cpp:777
bool linkDataset(const ome::compat::shared_ptr< ome::xml::model::Dataset > &dataset_BackReference)
Link Dataset.
Definition: Image.cpp:1079
OMEModelObject::indexed_container< ome::xml::model::Dataset, ome::compat::weak_ptr >::type datasetLinks
Dataset_BackReference back reference (occurs more than once)
Definition: Image.h:125
void setID(const std::string &id)
Set the ID property.
Definition: Image.cpp:601
OMEModelObject::indexed_container< ome::xml::model::Dataset, ome::compat::weak_ptr >::type getLinkedDatasetList() const
Get the linked Dataset list.
Definition: Image.cpp:1057
bool linkMicrobeamManipulation(const ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Link MicrobeamManipulation.
Definition: Image.cpp:959
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:273
Image()
Default constructor.
Definition: Image.cpp:192
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:622
ome::compat::weak_ptr< ome::xml::model::Experiment > experiment
ExperimentRef reference.
Definition: Image.h:105
ome::compat::weak_ptr< ome::xml::model::Instrument > instrument
InstrumentRef reference.
Definition: Image.h:109
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
void unlinkExperimenterGroup(ome::compat::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Unlink ExperimenterGroup.
Definition: Image.cpp:748
void setAcquisitionDate(ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > &acquisitionDate)
Set the AcquisitionDate property.
Definition: Image.cpp:643
ome::compat::weak_ptr< ome::xml::model::Instrument > getLinkedInstrument()
Get linked Instrument.
Definition: Image.cpp:758
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:1009
const std::string & getID() const
Get the ID property.
Definition: Image.cpp:594
OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type wellSamples
WellSample_BackReference back reference (occurs more than once)
Definition: Image.h:127
bool linkROI(const ome::compat::shared_ptr< ome::xml::model::ROI > &roi)
Link ROI.
Definition: Image.cpp:899
bool unlinkWellSample(const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample_BackReference)
Unlink WellSample.
Definition: Image.cpp:1150
ome::compat::weak_ptr< ome::xml::model::ExperimenterGroup > getLinkedExperimenterGroup()
Get linked ExperimenterGroup.
Definition: Image.cpp:729
bool unlinkDataset(const ome::compat::shared_ptr< ome::xml::model::Dataset > &dataset_BackReference)
Unlink Dataset.
Definition: Image.cpp:1092
void setPixels(ome::compat::shared_ptr< ome::xml::model::Pixels > &pixels)
Set the Pixels property.
Definition: Image.cpp:864
ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > acquisitionDate
AcquisitionDate property.
Definition: Image.h:99
void linkExperimenterGroup(ome::compat::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Link ExperimenterGroup.
Definition: Image.cpp:742
ome::compat::weak_ptr< ome::xml::model::Experimenter > experimenter
ExperimenterRef reference.
Definition: Image.h:101
OMEModelObject::indexed_container< ome::xml::model::ROI, ome::compat::weak_ptr >::type roiLinks
ROIRef reference (occurs more than once)
Definition: Image.h:119
ome::compat::shared_ptr< ome::xml::model::ObjectiveSettings > getObjectiveSettings()
Get the ObjectiveSettings property.
Definition: Image.cpp:787
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:889
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Image.cpp:264
virtual ~Image()
Destructor.
Definition: Image.cpp:243
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:943
ome::compat::shared_ptr< ome::xml::model::ImagingEnvironment > imagingEnvironment
ImagingEnvironment property.
Definition: Image.h:113
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:1051
bool unlinkMicrobeamManipulation(const ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Unlink MicrobeamManipulation.
Definition: Image.cpp:973
ome::compat::shared_ptr< std::string > name
Name property.
Definition: Image.h:97
void linkExperimenter(ome::compat::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Link Experimenter.
Definition: Image.cpp:663
ome::compat::weak_ptr< ome::xml::model::Experiment > getLinkedExperiment()
Get linked Experiment.
Definition: Image.cpp:700
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:248
void setDescription(ome::compat::shared_ptr< std::string > &description)
Set the Description property.
Definition: Image.cpp:693
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:1003
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Image.cpp:1410
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:1167
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:1109
const std::string & elementName() const
Get the element name of this model object.
Definition: Image.cpp:257
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:949
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:487
ome::compat::shared_ptr< ome::xml::model::ImagingEnvironment > getImagingEnvironment()
Get the ImagingEnvironment property.
Definition: Image.cpp:808
bool unlinkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Image.cpp:1033
void setObjectiveSettings(ome::compat::shared_ptr< ome::xml::model::ObjectiveSettings > &objectiveSettings)
Set the ObjectiveSettings property.
Definition: Image.cpp:801
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:931
OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type getLinkedWellSampleList() const
Get the linked WellSample list.
Definition: Image.cpp:1115
Xerces-C modern C++ wrapper.
Definition: Base.h:53