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> 61 #include <ome/xml/model/primitives/Quantity.h> 63 #include <ome/xml/model/AffineTransform.h> 64 #include <ome/xml/model/Union.h> 65 #include <ome/xml/model/detail/OMEModelObject.h> 66 #include <ome/xml/model/enums/FillRule.h> 67 #include <ome/xml/model/enums/FontFamily.h> 68 #include <ome/xml/model/enums/FontStyle.h> 69 #include <ome/xml/model/enums/UnitsLength.h> 70 #include <ome/xml/model/primitives/Color.h> 71 #include <ome/xml/model/primitives/NonNegativeInteger.h> 92 std::shared_ptr<Impl>
impl;
131 link (std::shared_ptr<Reference>& reference,
132 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
139 std::shared_ptr<std::string>
147 const std::shared_ptr<std::string>
163 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
171 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
187 std::shared_ptr<bool>
195 const std::shared_ptr<bool>
204 setLocked (std::shared_ptr<bool>& locked);
211 std::shared_ptr<ome::xml::model::enums::FillRule>
219 const std::shared_ptr<ome::xml::model::enums::FillRule>
228 setFillRule (std::shared_ptr<ome::xml::model::enums::FillRule>& fillRule);
235 std::shared_ptr<std::string>
243 const std::shared_ptr<std::string>
252 setText (std::shared_ptr<std::string>& text);
259 std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
267 const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
276 setTheC (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theC);
283 std::shared_ptr<ome::xml::model::enums::FontFamily>
291 const std::shared_ptr<ome::xml::model::enums::FontFamily>
300 setFontFamily (std::shared_ptr<ome::xml::model::enums::FontFamily>& fontFamily);
307 std::shared_ptr<ome::xml::model::enums::FontStyle>
315 const std::shared_ptr<ome::xml::model::enums::FontStyle>
324 setFontStyle (std::shared_ptr<ome::xml::model::enums::FontStyle>& fontStyle);
331 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeInteger > >&
339 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeInteger > >&
355 std::shared_ptr<ome::xml::model::primitives::Color>
363 const std::shared_ptr<ome::xml::model::primitives::Color>
372 setFillColor (std::shared_ptr<ome::xml::model::primitives::Color>& fillColor);
379 std::shared_ptr<ome::xml::model::primitives::Color>
387 const std::shared_ptr<ome::xml::model::primitives::Color>
396 setStrokeColor (std::shared_ptr<ome::xml::model::primitives::Color>& strokeColor);
403 std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
411 const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
420 setTheT (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theT);
436 setID (
const std::string&
id);
443 std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
451 const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
460 setTheZ (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theZ);
467 std::shared_ptr<ome::xml::model::AffineTransform>
475 const std::shared_ptr<ome::xml::model::AffineTransform>
509 const std::weak_ptr<ome::xml::model::Annotation>&
522 const std::weak_ptr<ome::xml::model::Annotation>&
524 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
537 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
555 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
562 std::weak_ptr<ome::xml::model::Union>
570 const std::weak_ptr<ome::xml::model::Union>
579 setUnion (std::weak_ptr<ome::xml::model::Union>& union_BackReference);
586 virtual const std::string&
605 #endif // OME_XML_MODEL_SHAPE_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
std::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:631
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Shape.cpp:1033
void setFontFamily(std::shared_ptr< ome::xml::model::enums::FontFamily > &fontFamily)
Set the FontFamily property.
Definition: Shape.cpp:603
std::shared_ptr< ome::xml::model::primitives::Color > getStrokeColor()
Get the StrokeColor property.
Definition: Shape.cpp:673
void setStrokeDashArray(std::shared_ptr< std::string > &strokeDashArray)
Set the StrokeDashArray property.
Definition: Shape.cpp:477
void setFillColor(std::shared_ptr< ome::xml::model::primitives::Color > &fillColor)
Set the FillColor property.
Definition: Shape.cpp:666
Shape & operator=(const Shape &)
Assignment operator (deleted).
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: Shape.cpp:852
void setTheZ(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theZ)
Set the TheZ property.
Definition: Shape.cpp:743
void setFontSize(const std::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:645
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Shape.cpp:813
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
std::shared_ptr< ome::xml::model::enums::FontFamily > getFontFamily()
Get the FontFamily property.
Definition: Shape.cpp:589
void setTheC(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theC)
Set the TheC property.
Definition: Shape.cpp:582
void setTheT(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theT)
Set the TheT property.
Definition: Shape.cpp:708
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:255
void setText(std::shared_ptr< std::string > &text)
Set the Text property.
Definition: Shape.cpp:561
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void setID(const std::string &id)
Set the ID property.
Definition: Shape.cpp:722
virtual const std::string & getShapeType() const =0
Get the Shape type.
std::shared_ptr< ome::xml::model::primitives::Color > getFillColor()
Get the FillColor property.
Definition: Shape.cpp:652
std::shared_ptr< bool > getLocked()
Get the Locked property.
Definition: Shape.cpp:505
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: Shape.cpp:783
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: Shape.cpp:432
void setStrokeWidth(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &strokeWidth)
Set the StrokeWidth property.
Definition: Shape.cpp:498
void setUnion(std::weak_ptr< ome::xml::model::Union > &union_BackReference)
Set the Union property.
Definition: Shape.cpp:845
void setFillRule(std::shared_ptr< ome::xml::model::enums::FillRule > &fillRule)
Set the FillRule property.
Definition: Shape.cpp:540
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheZ()
Get the TheZ property.
Definition: Shape.cpp:729
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheC()
Get the TheC property.
Definition: Shape.cpp:568
Open Microscopy Environment C++ implementation.
std::shared_ptr< ome::xml::model::enums::FontStyle > getFontStyle()
Get the FontStyle property.
Definition: Shape.cpp:610
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Shape.cpp:799
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Shape.h:90
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 setTransform(std::shared_ptr< ome::xml::model::AffineTransform > &transform)
Set the Transform property.
Definition: Shape.cpp:764
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getStrokeWidth()
Get the StrokeWidth property.
Definition: Shape.cpp:484
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Shape.cpp:777
const std::string & getID() const
Get the ID property.
Definition: Shape.cpp:715
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Shape.cpp:771
Shape model object.
Definition: Shape.h:87
Shape()
Default constructor.
Definition: Shape.cpp:229
std::shared_ptr< std::string > getText()
Get the Text property.
Definition: Shape.cpp:547
std::weak_ptr< ome::xml::model::Union > getUnion()
Get the Union property.
Definition: Shape.cpp:831
Private implementation details of Shape model object.
Definition: Shape.cpp:78
void setFontStyle(std::shared_ptr< ome::xml::model::enums::FontStyle > &fontStyle)
Set the FontStyle property.
Definition: Shape.cpp:624
A quantity of a defined unit.
Definition: Quantity.h:57
virtual ~Shape()
Destructor.
Definition: Shape.cpp:244
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: Shape.cpp:789
void setLocked(std::shared_ptr< bool > &locked)
Set the Locked property.
Definition: Shape.cpp:519
void setStrokeColor(std::shared_ptr< ome::xml::model::primitives::Color > &strokeColor)
Set the StrokeColor property.
Definition: Shape.cpp:687
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheT()
Get the TheT property.
Definition: Shape.cpp:694
std::shared_ptr< std::string > getStrokeDashArray()
Get the StrokeDashArray property.
Definition: Shape.cpp:463
std::shared_ptr< ome::xml::model::enums::FillRule > getFillRule()
Get the FillRule property.
Definition: Shape.cpp:526
std::shared_ptr< ome::xml::model::AffineTransform > getTransform()
Get the Transform property.
Definition: Shape.cpp:750