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/AffineTransform.h>
63 #include <ome/xml/model/Union.h>
64 #include <ome/xml/model/detail/OMEModelObject.h>
65 #include <ome/xml/model/enums/FillRule.h>
66 #include <ome/xml/model/enums/FontFamily.h>
67 #include <ome/xml/model/enums/FontStyle.h>
68 #include <ome/xml/model/enums/LineCap.h>
69 #include <ome/xml/model/primitives/Color.h>
70 #include <ome/xml/model/primitives/NonNegativeInteger.h>
90 ome::compat::shared_ptr<Impl>
impl;
125 link (ome::compat::shared_ptr<Reference>& reference,
126 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
133 ome::compat::shared_ptr<std::string>
141 const ome::compat::shared_ptr<std::string>
157 ome::compat::shared_ptr<double>
165 const ome::compat::shared_ptr<double>
181 ome::compat::shared_ptr<bool>
189 const ome::compat::shared_ptr<bool>
198 setLocked (ome::compat::shared_ptr<bool>& locked);
205 ome::compat::shared_ptr<ome::xml::model::enums::FillRule>
213 const ome::compat::shared_ptr<ome::xml::model::enums::FillRule>
222 setFillRule (ome::compat::shared_ptr<ome::xml::model::enums::FillRule>& fillRule);
229 ome::compat::shared_ptr<bool>
237 const ome::compat::shared_ptr<bool>
246 setVisible (ome::compat::shared_ptr<bool>& visible);
253 ome::compat::shared_ptr<ome::xml::model::enums::LineCap>
261 const ome::compat::shared_ptr<ome::xml::model::enums::LineCap>
270 setLineCap (ome::compat::shared_ptr<ome::xml::model::enums::LineCap>& lineCap);
277 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
285 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
294 setTheC (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theC);
301 ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>
309 const ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>
318 setFontFamily (ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>& fontFamily);
325 ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>
333 const ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>
342 setFontStyle (ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>& fontStyle);
349 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
357 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
366 setFontSize (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& fontSize);
373 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
381 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
390 setFillColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& fillColor);
397 ome::compat::shared_ptr<std::string>
405 const ome::compat::shared_ptr<std::string>
414 setText (ome::compat::shared_ptr<std::string>& text);
421 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
429 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
438 setStrokeColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& strokeColor);
445 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
453 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
462 setTheT (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theT);
478 setID (
const std::string&
id);
485 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
493 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
502 setTheZ (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theZ);
517 ome::compat::shared_ptr<ome::xml::model::AffineTransform>
525 const ome::compat::shared_ptr<ome::xml::model::AffineTransform>
534 setTransform (ome::compat::shared_ptr<ome::xml::model::AffineTransform>& transform);
541 ome::compat::weak_ptr<ome::xml::model::Union>
549 const ome::compat::weak_ptr<ome::xml::model::Union>
558 setUnion (ome::compat::weak_ptr<ome::xml::model::Union>& union_BackReference);
565 virtual const std::string&
585 #endif // OME_XML_MODEL_SHAPE_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
ome::compat::shared_ptr< ome::xml::model::enums::LineCap > getLineCap()
Get the LineCap property.
Definition: Shape.cpp:653
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheZ()
Get the TheZ property.
Definition: Shape.cpp:856
ome::compat::shared_ptr< ome::xml::model::enums::FontStyle > getFontStyle()
Get the FontStyle property.
Definition: Shape.cpp:716
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Shape.cpp:1139
void setLocked(ome::compat::shared_ptr< bool > &locked)
Set the Locked property.
Definition: Shape.cpp:604
void setUnion(ome::compat::weak_ptr< ome::xml::model::Union > &union_BackReference)
Set the Union property.
Definition: Shape.cpp:920
void setTheC(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theC)
Set the TheC property.
Definition: Shape.cpp:688
ome::compat::shared_ptr< ome::xml::model::AffineTransform > getTransform()
Get the Transform property.
Definition: Shape.cpp:885
void setFontFamily(ome::compat::shared_ptr< ome::xml::model::enums::FontFamily > &fontFamily)
Set the FontFamily property.
Definition: Shape.cpp:709
DOM Document wrapper.
Definition: Document.h:83
DOM Element wrapper.
Definition: Element.h:66
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:289
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
ome::compat::shared_ptr< double > getStrokeWidth()
Get the StrokeWidth property.
Definition: Shape.cpp:569
void setID(const std::string &id)
Set the ID property.
Definition: Shape.cpp:849
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheC()
Get the TheC property.
Definition: Shape.cpp:674
void setTransform(ome::compat::shared_ptr< ome::xml::model::AffineTransform > &transform)
Set the Transform property.
Definition: Shape.cpp:899
void setVisible(ome::compat::shared_ptr< bool > &visible)
Set the Visible property.
Definition: Shape.cpp:646
void setStrokeColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &strokeColor)
Set the StrokeColor property.
Definition: Shape.cpp:814
void setFontSize(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &fontSize)
Set the FontSize property.
Definition: Shape.cpp:751
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:533
ome::compat::shared_ptr< ome::xml::model::enums::FillRule > getFillRule()
Get the FillRule property.
Definition: Shape.cpp:611
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
ome::compat::shared_ptr< std::string > getStrokeDashArray()
Get the StrokeDashArray property.
Definition: Shape.cpp:548
ome::compat::shared_ptr< ome::xml::model::primitives::Color > getFillColor()
Get the FillColor property.
Definition: Shape.cpp:758
void setStrokeDashArray(ome::compat::shared_ptr< std::string > &strokeDashArray)
Set the StrokeDashArray property.
Definition: Shape.cpp:562
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFontSize()
Get the FontSize property.
Definition: Shape.cpp:737
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Shape.h:88
void setText(ome::compat::shared_ptr< std::string > &text)
Set the Text property.
Definition: Shape.cpp:793
void setTheT(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theT)
Set the TheT property.
Definition: Shape.cpp:835
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:927
void setFontStyle(ome::compat::shared_ptr< ome::xml::model::enums::FontStyle > &fontStyle)
Set the FontStyle property.
Definition: Shape.cpp:730
ome::compat::shared_ptr< bool > getVisible()
Get the Visible property.
Definition: Shape.cpp:632
ome::compat::shared_ptr< bool > getLocked()
Get the Locked property.
Definition: Shape.cpp:590
void setLineCap(ome::compat::shared_ptr< ome::xml::model::enums::LineCap > &lineCap)
Set the LineCap property.
Definition: Shape.cpp:667
Shape model object.
Definition: Shape.h:85
Shape()
Default constructor.
Definition: Shape.cpp:255
void setTheZ(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theZ)
Set the TheZ property.
Definition: Shape.cpp:870
Private implementation details of Shape model object.
Definition: Shape.cpp:88
void setStrokeWidth(ome::compat::shared_ptr< double > &strokeWidth)
Set the StrokeWidth property.
Definition: Shape.cpp:583
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheT()
Get the TheT property.
Definition: Shape.cpp:821
virtual ~Shape()
Destructor.
Definition: Shape.cpp:274
ome::compat::shared_ptr< std::string > getText()
Get the Text property.
Definition: Shape.cpp:779
ome::compat::weak_ptr< ome::xml::model::Union > getUnion()
Get the Union property.
Definition: Shape.cpp:906
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Shape.cpp:280
void setFillRule(ome::compat::shared_ptr< ome::xml::model::enums::FillRule > &fillRule)
Set the FillRule property.
Definition: Shape.cpp:625
const std::string & getID() const
Get the ID property.
Definition: Shape.cpp:842
ome::compat::shared_ptr< ome::xml::model::enums::FontFamily > getFontFamily()
Get the FontFamily property.
Definition: Shape.cpp:695
virtual const std::string & getShapeType() const =0
Get the Shape type.
Xerces-C modern C++ wrapper.
Definition: Base.h:53
ome::compat::shared_ptr< ome::xml::model::primitives::Color > getStrokeColor()
Get the StrokeColor property.
Definition: Shape.cpp:800
void setFillColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &fillColor)
Set the FillColor property.
Definition: Shape.cpp:772