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>
93 ome::compat::shared_ptr<bool>
locked;
95 ome::compat::shared_ptr<ome::xml::model::enums::FillRule>
fillRule;
99 ome::compat::shared_ptr<ome::xml::model::enums::LineCap>
lineCap;
101 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
theC;
103 ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>
fontFamily;
105 ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>
fontStyle;
107 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
fontSize;
109 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
fillColor;
111 ome::compat::shared_ptr<std::string>
text;
113 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
strokeColor;
115 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
theT;
119 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
theZ;
129 ome::compat::shared_ptr<ome::xml::model::AffineTransform>
transform;
131 ome::compat::weak_ptr<ome::xml::model::Union>
union_;
167 link (ome::compat::shared_ptr<Reference>& reference,
168 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
175 ome::compat::shared_ptr<std::string>
183 const ome::compat::shared_ptr<std::string>
199 ome::compat::shared_ptr<double>
207 const ome::compat::shared_ptr<double>
223 ome::compat::shared_ptr<bool>
231 const ome::compat::shared_ptr<bool>
240 setLocked (ome::compat::shared_ptr<bool>& locked);
247 ome::compat::shared_ptr<ome::xml::model::enums::FillRule>
255 const ome::compat::shared_ptr<ome::xml::model::enums::FillRule>
264 setFillRule (ome::compat::shared_ptr<ome::xml::model::enums::FillRule>& fillRule);
271 ome::compat::shared_ptr<bool>
279 const ome::compat::shared_ptr<bool>
288 setVisible (ome::compat::shared_ptr<bool>& visible);
295 ome::compat::shared_ptr<ome::xml::model::enums::LineCap>
303 const ome::compat::shared_ptr<ome::xml::model::enums::LineCap>
312 setLineCap (ome::compat::shared_ptr<ome::xml::model::enums::LineCap>& lineCap);
319 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
327 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
336 setTheC (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theC);
343 ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>
351 const ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>
360 setFontFamily (ome::compat::shared_ptr<ome::xml::model::enums::FontFamily>& fontFamily);
367 ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>
375 const ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>
384 setFontStyle (ome::compat::shared_ptr<ome::xml::model::enums::FontStyle>& fontStyle);
391 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
399 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
408 setFontSize (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& fontSize);
415 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
423 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
432 setFillColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& fillColor);
439 ome::compat::shared_ptr<std::string>
447 const ome::compat::shared_ptr<std::string>
456 setText (ome::compat::shared_ptr<std::string>& text);
463 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
471 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
480 setStrokeColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& strokeColor);
487 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
495 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
504 setTheT (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theT);
520 setID (
const std::string&
id);
527 ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
535 const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
544 setTheZ (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& theZ);
559 ome::compat::shared_ptr<ome::xml::model::AffineTransform>
567 const ome::compat::shared_ptr<ome::xml::model::AffineTransform>
576 setTransform (ome::compat::shared_ptr<ome::xml::model::AffineTransform>& transform);
583 ome::compat::weak_ptr<ome::xml::model::Union>
591 const ome::compat::weak_ptr<ome::xml::model::Union>
600 setUnion (ome::compat::weak_ptr<ome::xml::model::Union>& union_BackReference);
607 virtual const std::string&
627 #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:596
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheZ()
Get the TheZ property.
Definition: Shape.cpp:799
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > theZ
TheZ property.
Definition: Shape.h:119
ome::compat::shared_ptr< ome::xml::model::enums::FontStyle > getFontStyle()
Get the FontStyle property.
Definition: Shape.cpp:659
ome::compat::shared_ptr< std::string > strokeDashArray
StrokeDashArray property.
Definition: Shape.h:89
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > theC
TheC property.
Definition: Shape.h:101
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Shape.cpp:1082
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > theT
TheT property.
Definition: Shape.h:115
void setLocked(ome::compat::shared_ptr< bool > &locked)
Set the Locked property.
Definition: Shape.cpp:547
void setUnion(ome::compat::weak_ptr< ome::xml::model::Union > &union_BackReference)
Set the Union property.
Definition: Shape.cpp:863
void setTheC(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theC)
Set the TheC property.
Definition: Shape.cpp:631
ome::compat::shared_ptr< ome::xml::model::AffineTransform > getTransform()
Get the Transform property.
Definition: Shape.cpp:828
void setFontFamily(ome::compat::shared_ptr< ome::xml::model::enums::FontFamily > &fontFamily)
Set the FontFamily property.
Definition: Shape.cpp:652
ome::compat::shared_ptr< ome::xml::model::enums::FillRule > fillRule
FillRule property.
Definition: Shape.h:95
DOM Document wrapper.
Definition: Document.h:82
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:232
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
ome::compat::shared_ptr< double > getStrokeWidth()
Get the StrokeWidth property.
Definition: Shape.cpp:512
void setID(const std::string &id)
Set the ID property.
Definition: Shape.cpp:792
virtual const std::string & getShapeType() const =0
Get the Shape type.
ome::compat::shared_ptr< ome::xml::model::enums::LineCap > lineCap
LineCap property.
Definition: Shape.h:99
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheC()
Get the TheC property.
Definition: Shape.cpp:617
void setTransform(ome::compat::shared_ptr< ome::xml::model::AffineTransform > &transform)
Set the Transform property.
Definition: Shape.cpp:842
ome::compat::shared_ptr< bool > locked
Locked property.
Definition: Shape.h:93
void setVisible(ome::compat::shared_ptr< bool > &visible)
Set the Visible property.
Definition: Shape.cpp:589
void setStrokeColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &strokeColor)
Set the StrokeColor property.
Definition: Shape.cpp:757
ome::compat::shared_ptr< ome::xml::model::enums::FontStyle > fontStyle
FontStyle property.
Definition: Shape.h:105
void setFontSize(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &fontSize)
Set the FontSize property.
Definition: Shape.cpp:694
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:476
ome::compat::shared_ptr< ome::xml::model::enums::FillRule > getFillRule()
Get the FillRule property.
Definition: Shape.cpp:554
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
ome::compat::shared_ptr< std::string > getStrokeDashArray()
Get the StrokeDashArray property.
Definition: Shape.cpp:491
ome::compat::shared_ptr< ome::xml::model::primitives::Color > getFillColor()
Get the FillColor property.
Definition: Shape.cpp:701
ome::compat::shared_ptr< bool > visible
Visible property.
Definition: Shape.h:97
void setStrokeDashArray(ome::compat::shared_ptr< std::string > &strokeDashArray)
Set the StrokeDashArray property.
Definition: Shape.cpp:505
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFontSize()
Get the FontSize property.
Definition: Shape.cpp:680
void setText(ome::compat::shared_ptr< std::string > &text)
Set the Text property.
Definition: Shape.cpp:736
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > fontSize
FontSize property.
Definition: Shape.h:107
void setTheT(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theT)
Set the TheT property.
Definition: Shape.cpp:778
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:870
void setFontStyle(ome::compat::shared_ptr< ome::xml::model::enums::FontStyle > &fontStyle)
Set the FontStyle property.
Definition: Shape.cpp:673
ome::compat::shared_ptr< std::string > text
Text property.
Definition: Shape.h:111
ome::compat::shared_ptr< bool > getVisible()
Get the Visible property.
Definition: Shape.cpp:575
ome::compat::weak_ptr< ome::xml::model::Union > union_
Union_BackReference back reference.
Definition: Shape.h:131
ome::compat::shared_ptr< bool > getLocked()
Get the Locked property.
Definition: Shape.cpp:533
void setLineCap(ome::compat::shared_ptr< ome::xml::model::enums::LineCap > &lineCap)
Set the LineCap property.
Definition: Shape.cpp:610
Shape model object.
Definition: Shape.h:85
Shape()
Default constructor.
Definition: Shape.cpp:164
void setTheZ(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &theZ)
Set the TheZ property.
Definition: Shape.cpp:813
ome::compat::shared_ptr< ome::xml::model::primitives::Color > strokeColor
StrokeColor property.
Definition: Shape.h:113
void setStrokeWidth(ome::compat::shared_ptr< double > &strokeWidth)
Set the StrokeWidth property.
Definition: Shape.cpp:526
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getTheT()
Get the TheT property.
Definition: Shape.cpp:764
virtual ~Shape()
Destructor.
Definition: Shape.cpp:217
ome::compat::shared_ptr< std::string > getText()
Get the Text property.
Definition: Shape.cpp:722
ome::compat::weak_ptr< ome::xml::model::Union > getUnion()
Get the Union property.
Definition: Shape.cpp:849
ome::compat::shared_ptr< ome::xml::model::primitives::Color > fillColor
FillColor property.
Definition: Shape.h:109
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Shape.cpp:223
ome::compat::shared_ptr< double > strokeWidth
StrokeWidth property.
Definition: Shape.h:91
void setFillRule(ome::compat::shared_ptr< ome::xml::model::enums::FillRule > &fillRule)
Set the FillRule property.
Definition: Shape.cpp:568
const std::string & getID() const
Get the ID property.
Definition: Shape.cpp:785
std::string id
ID property.
Definition: Shape.h:117
ome::compat::shared_ptr< ome::xml::model::enums::FontFamily > fontFamily
FontFamily property.
Definition: Shape.h:103
ome::compat::shared_ptr< ome::xml::model::enums::FontFamily > getFontFamily()
Get the FontFamily property.
Definition: Shape.cpp:638
ome::compat::shared_ptr< ome::xml::model::AffineTransform > transform
*** WARNING *** Unhandled or skipped property Line *** WARNING *** Unhandled or skipped property Rect...
Definition: Shape.h:129
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:743
void setFillColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &fillColor)
Set the FillColor property.
Definition: Shape.cpp:715