46 #ifndef OME_XML_MODEL_LABEL_H
47 #define OME_XML_MODEL_LABEL_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/Shape.h>
83 std::shared_ptr<Impl>
impl;
114 static std::shared_ptr<Label>
144 link (std::shared_ptr<Reference>& reference,
145 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
198 #endif // OME_XML_MODEL_LABEL_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
Label & operator=(const Label &)
Assignment operator (deleted).
double getY() const
Get the Y property.
Definition: Label.cpp:205
virtual ~Label()
Destructor.
Definition: Label.cpp:131
const std::string & getShapeType() const
Get the Shape type.
Definition: Label.cpp:232
const std::string & elementName() const
Get the element name of this model object.
Definition: Label.cpp:145
Private implementation details of Label model object.
Definition: Label.cpp:70
double getX() const
Get the X property.
Definition: Label.cpp:219
void setY(double y)
Set the Y property.
Definition: Label.cpp:212
static std::shared_ptr< Label > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Label model object from DOM element.
Definition: Label.cpp:136
Label()
Default constructor.
Definition: Label.cpp:116
Shape model object.
Definition: Shape.h:87
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Label.cpp:152
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Label.h:81
Label model object.
Definition: Label.h:78
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: Label.cpp:239
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Label.cpp:270
void setX(double x)
Set the X property.
Definition: Label.cpp:226
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: Label.cpp:190
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: Label.cpp:158