46 #ifndef OME_XML_MODEL_ROI_H 47 #define OME_XML_MODEL_ROI_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/Union.h> 64 #include <ome/xml/model/detail/OMEModelObject.h> 77 class MicrobeamManipulation;
88 std::shared_ptr<Impl>
impl;
119 static std::shared_ptr<ROI>
133 operator= (
const ROI&) =
delete;
148 link (std::shared_ptr<Reference>& reference,
149 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
165 setID (
const std::string&
id);
172 std::shared_ptr<std::string>
180 const std::shared_ptr<std::string>
189 setName (std::shared_ptr<std::string>& name);
196 std::shared_ptr<ome::xml::model::Union>
204 const std::shared_ptr<ome::xml::model::Union>
213 setUnion (std::shared_ptr<ome::xml::model::Union>& union_);
238 const std::weak_ptr<ome::xml::model::Annotation>&
251 const std::weak_ptr<ome::xml::model::Annotation>&
253 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
266 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
284 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
291 std::shared_ptr<std::string>
299 const std::shared_ptr<std::string>
333 const std::weak_ptr<ome::xml::model::Image>&
346 const std::weak_ptr<ome::xml::model::Image>&
348 const std::shared_ptr<ome::xml::model::Image>& image_BackReference);
361 linkImage (
const std::shared_ptr<ome::xml::model::Image>& image_BackReference);
379 unlinkImage (
const std::shared_ptr<ome::xml::model::Image>& image_BackReference);
404 const std::weak_ptr<ome::xml::model::MicrobeamManipulation>&
417 const std::weak_ptr<ome::xml::model::MicrobeamManipulation>&
419 const std::shared_ptr<ome::xml::model::MicrobeamManipulation>& microbeamManipulation_BackReference);
432 linkMicrobeamManipulation (
const std::shared_ptr<ome::xml::model::MicrobeamManipulation>& microbeamManipulation_BackReference);
475 const std::weak_ptr<ome::xml::model::Folder>&
488 const std::weak_ptr<ome::xml::model::Folder>&
490 const std::shared_ptr<ome::xml::model::Folder>& folder_BackReference);
503 linkFolder (
const std::shared_ptr<ome::xml::model::Folder>& folder_BackReference);
521 unlinkFolder (
const std::shared_ptr<ome::xml::model::Folder>& folder_BackReference);
539 #endif // OME_XML_MODEL_ROI_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
virtual ~ROI()
Destructor.
Definition: ROI.cpp:201
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: ROI.cpp:228
bool unlinkMicrobeamManipulation(const std::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation_BackReference)
Unlink MicrobeamManipulation.
Definition: ROI.cpp:573
OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type getLinkedFolderList() const
Get the linked Folder list.
Definition: ROI.cpp:596
OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type::size_type sizeOfLinkedImageList() const
Get size of linked Image list.
Definition: ROI.cpp:474
OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, std::weak_ptr >::type getLinkedMicrobeamManipulationList() const
Get the linked MicrobeamManipulation list.
Definition: ROI.cpp:538
OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type sizeOfLinkedFolderList() const
Get size of linked Folder list.
Definition: ROI.cpp:590
void setUnion(std::shared_ptr< ome::xml::model::Union > &union_)
Set the Union property.
Definition: ROI.cpp:386
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: ROI.cpp:421
ROI model object.
Definition: ROI.h:83
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: ROI.cpp:721
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: ROI.cpp:393
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 linkImage(const std::shared_ptr< ome::xml::model::Image > &image_BackReference)
Link Image.
Definition: ROI.cpp:502
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, std::weak_ptr >::type::size_type sizeOfLinkedMicrobeamManipulationList() const
Get size of linked MicrobeamManipulation list.
Definition: ROI.cpp:532
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: ROI.cpp:365
const std::weak_ptr< ome::xml::model::Image > & setLinkedImage(OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Image > &image_BackReference)
Set linked Image.
Definition: ROI.cpp:492
void setDescription(std::shared_ptr< std::string > &description)
Set the Description property.
Definition: ROI.cpp:467
bool linkMicrobeamManipulation(const std::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation_BackReference)
Link MicrobeamManipulation.
Definition: ROI.cpp:560
const std::weak_ptr< ome::xml::model::MicrobeamManipulation > & getLinkedMicrobeamManipulation(OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, std::weak_ptr >::type::size_type index) const
Get linked MicrobeamManipulation.
Definition: ROI.cpp:544
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: ROI.cpp:435
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: ROI.cpp:405
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: ROI.cpp:306
void setID(const std::string &id)
Set the ID property.
Definition: ROI.cpp:344
const std::weak_ptr< ome::xml::model::MicrobeamManipulation > & setLinkedMicrobeamManipulation(OMEModelObject::indexed_container< ome::xml::model::MicrobeamManipulation, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation_BackReference)
Set linked MicrobeamManipulation.
Definition: ROI.cpp:550
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
std::shared_ptr< ome::xml::model::Union > getUnion()
Get the Union property.
Definition: ROI.cpp:372
Open Microscopy Environment C++ implementation.
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: ROI.cpp:647
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: ROI.cpp:222
const std::weak_ptr< ome::xml::model::Folder > & getLinkedFolder(OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type index) const
Get linked Folder.
Definition: ROI.cpp:602
OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type getLinkedImageList() const
Get the linked Image list.
Definition: ROI.cpp:480
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: ROI.cpp:399
Private implementation details of ROI model object.
Definition: ROI.cpp:90
const std::weak_ptr< ome::xml::model::Image > & getLinkedImage(OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type::size_type index) const
Get linked Image.
Definition: ROI.cpp:486
const std::weak_ptr< ome::xml::model::Folder > & setLinkedFolder(OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Folder > &folder_BackReference)
Set linked Folder.
Definition: ROI.cpp:608
static std::shared_ptr< ROI > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a ROI model object from DOM element.
Definition: ROI.cpp:206
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: ROI.cpp:411
const std::string & elementName() const
Get the element name of this model object.
Definition: ROI.cpp:215
bool linkFolder(const std::shared_ptr< ome::xml::model::Folder > &folder_BackReference)
Link Folder.
Definition: ROI.cpp:618
ROI()
Default constructor.
Definition: ROI.cpp:182
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: ROI.cpp:351
const std::string & getID() const
Get the ID property.
Definition: ROI.cpp:337
std::shared_ptr< Impl > impl
Private implementation details.
Definition: ROI.h:86
bool unlinkImage(const std::shared_ptr< ome::xml::model::Image > &image_BackReference)
Unlink Image.
Definition: ROI.cpp:515
std::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: ROI.cpp:453
bool unlinkFolder(const std::shared_ptr< ome::xml::model::Folder > &folder_BackReference)
Unlink Folder.
Definition: ROI.cpp:631