46 #ifndef OME_XML_MODEL_SHAPE_H 47 #define OME_XML_MODEL_SHAPE_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/primitives/Quantity.h> 64 #include <ome/xml/model/AffineTransform.h> 65 #include <ome/xml/model/Union.h> 66 #include <ome/xml/model/detail/OMEModelObject.h> 67 #include <ome/xml/model/enums/FillRule.h> 68 #include <ome/xml/model/enums/FontFamily.h> 69 #include <ome/xml/model/enums/FontStyle.h> 70 #include <ome/xml/model/enums/UnitsLength.h> 71 #include <ome/xml/model/primitives/Color.h> 72 #include <ome/xml/model/primitives/NonNegativeInteger.h> 93 ome::compat::shared_ptr<Impl>
impl;
132 link (ome::compat::shared_ptr<Reference>& reference,
133 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
140 ome::compat::shared_ptr<std::string>
148 const ome::compat::shared_ptr<std::string>
164 ome::compat::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
172 const ome::compat::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
188 ome::compat::shared_ptr<bool>
196 const ome::compat::shared_ptr<bool>
205 setLocked (ome::compat::shared_ptr<bool>& locked);
212 ome::compat::shared_ptr<ome::xml::model::enums::FillRule>
220 const ome::compat::shared_ptr<ome::xml::model::enums::FillRule>
229 setFillRule (ome::compat::shared_ptr<ome::xml::model::enums::FillRule>& fillRule);
236 ome::compat::shared_ptr<std::string>
244 const ome::compat::shared_ptr<std::string>
253 setText (ome::compat::shared_ptr<std::string>& text);
260 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
268 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
277 setTheC (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theC);
284 ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>
292 const ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>
301 setFontFamily (ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>& fontFamily);
308 ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>
316 const ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>
325 setFontStyle (ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>& fontStyle);
332 ome::compat::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeInteger > >&
340 const ome::compat::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeInteger > >&
356 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
364 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
373 setFillColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& fillColor);
380 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
388 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
397 setStrokeColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& strokeColor);
404 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
412 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
421 setTheT (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theT);
437 setID (
const std::string&
id);
444 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
452 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
461 setTheZ (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theZ);
468 ome::compat::shared_ptr<ome::xml::model::AffineTransform>
476 const ome::compat::shared_ptr<ome::xml::model::AffineTransform>
510 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
523 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
525 const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
538 linkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
556 unlinkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
563 ome::compat::weak_ptr<ome::xml::model::Union>
571 const ome::compat::weak_ptr<ome::xml::model::Union>
580 setUnion (ome::compat::weak_ptr<ome::xml::model::Union>& union_BackReference);
587 virtual const std::string&
611 #endif // OME_XML_MODEL_SHAPE_H OME model interface (abstract top-level container)
Definition: OMEModel.h:62
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheZ()
Get the TheZ property.
Definition: Shape.cpp:727
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: Shape.cpp:781
ome::compat::shared_ptr< ome::xml::model::enums::FontStyle > getFontStyle()
Get the FontStyle property.
Definition: Shape.cpp:608
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Shape.cpp:1059
ome::compat::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeInteger > > & getFontSize()
Get the FontSize property.
Definition: Shape.cpp:629
void setLocked(ome::compat::shared_ptr< bool > &locked)
Set the Locked property.
Definition: Shape.cpp:517
Shape & operator=(const Shape &)
Assignment operator (deleted).
void setUnion(ome::compat::weak_ptr< ome::xml::model::Union > &union_BackReference)
Set the Union property.
Definition: Shape.cpp:843
void setTheC(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theC)
Set the TheC property.
Definition: Shape.cpp:580
ome::compat::shared_ptr< ome::xml::model::AffineTransform > getTransform()
Get the Transform property.
Definition: Shape.cpp:748
void setFontFamily(ome::compat::shared_ptr< ome::xml::model::enums::FontFamily > &fontFamily)
Set the FontFamily property.
Definition: Shape.cpp:601
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Shape.cpp:249
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: Shape.cpp:257
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void setID(const std::string &id)
Set the ID property.
Definition: Shape.cpp:720
virtual const std::string & getShapeType() const =0
Get the Shape type.
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
void setStrokeWidth(const ome::compat::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &strokeWidth)
Set the StrokeWidth property.
Definition: Shape.cpp:496
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheC()
Get the TheC property.
Definition: Shape.cpp:566
void setTransform(ome::compat::shared_ptr< ome::xml::model::AffineTransform > &transform)
Set the Transform property.
Definition: Shape.cpp:762
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: Shape.cpp:787
void setStrokeColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &strokeColor)
Set the StrokeColor property.
Definition: Shape.cpp:685
ome::compat::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getStrokeWidth()
Get the StrokeWidth property.
Definition: Shape.cpp:482
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: Shape.cpp:430
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:85
ome::compat::shared_ptr< ome::xml::model::enums::FillRule > getFillRule()
Get the FillRule property.
Definition: Shape.cpp:524
Open Microscopy Environment C++ implementation.
ome::compat::shared_ptr< std::string > getStrokeDashArray()
Get the StrokeDashArray property.
Definition: Shape.cpp:461
ome::compat::shared_ptr< ome::xml::model::primitives::Color > getFillColor()
Get the FillColor property.
Definition: Shape.cpp:650
void setStrokeDashArray(ome::compat::shared_ptr< std::string > &strokeDashArray)
Set the StrokeDashArray property.
Definition: Shape.cpp:475
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Shape.h:91
void setText(ome::compat::shared_ptr< std::string > &text)
Set the Text property.
Definition: Shape.cpp:559
void setTheT(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theT)
Set the TheT property.
Definition: Shape.cpp:706
bool linkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Shape.cpp:797
void transform(const std::string &target_schema, const Input &input, Output &output, ome::common::xml::EntityResolver &entity_resolver, OMETransformResolver &transform_resolver)
Transform OME-XML to a different model schema version.
Definition: OMETransform.h:99
void setFontStyle(ome::compat::shared_ptr< ome::xml::model::enums::FontStyle > &fontStyle)
Set the FontStyle property.
Definition: Shape.cpp:622
const std::string & getID() const
Get the ID property.
Definition: Shape.cpp:713
ome::compat::shared_ptr< bool > getLocked()
Get the Locked property.
Definition: Shape.cpp:503
Shape model object.
Definition: Shape.h:88
Shape()
Default constructor.
Definition: Shape.cpp:229
void setTheZ(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theZ)
Set the TheZ property.
Definition: Shape.cpp:741
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Shape.cpp:775
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Shape.cpp:769
Private implementation details of Shape model object.
Definition: Shape.cpp:78
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheT()
Get the TheT property.
Definition: Shape.cpp:692
A quantity of a defined unit.
Definition: Quantity.h:57
virtual ~Shape()
Destructor.
Definition: Shape.cpp:244
ome::compat::shared_ptr< std::string > getText()
Get the Text property.
Definition: Shape.cpp:545
void setFontSize(const ome::compat::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeInteger > > &fontSize)
Set the FontSize property.
Definition: Shape.cpp:643
ome::compat::weak_ptr< ome::xml::model::Union > getUnion()
Get the Union property.
Definition: Shape.cpp:829
void setFillRule(ome::compat::shared_ptr< ome::xml::model::enums::FillRule > &fillRule)
Set the FillRule property.
Definition: Shape.cpp:538
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: Shape.cpp:857
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Shape.cpp:850
bool unlinkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Shape.cpp:811
ome::compat::shared_ptr< ome::xml::model::enums::FontFamily > getFontFamily()
Get the FontFamily property.
Definition: Shape.cpp:587
ome::compat::shared_ptr< ome::xml::model::primitives::Color > getStrokeColor()
Get the StrokeColor property.
Definition: Shape.cpp:671
void setFillColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &fillColor)
Set the FillColor property.
Definition: Shape.cpp:664