46 #ifndef OME_XML_MODEL_LINE_H
47 #define OME_XML_MODEL_LINE_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/Shape.h>
63 #include <ome/xml/model/enums/Marker.h>
83 ome::compat::shared_ptr<Impl>
impl;
114 static ome::compat::shared_ptr< Line>
139 link (ome::compat::shared_ptr<Reference>& reference,
140 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
179 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
187 const ome::compat::shared_ptr<ome::xml::model::enums::Marker>
196 setMarkerEnd (ome::compat::shared_ptr<ome::xml::model::enums::Marker>& markerEnd);
235 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
243 const ome::compat::shared_ptr<ome::xml::model::enums::Marker>
252 setMarkerStart (ome::compat::shared_ptr<ome::xml::model::enums::Marker>& markerStart);
278 #endif // OME_XML_MODEL_LINE_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Line.cpp:186
double getX2() const
Get the X2 property.
Definition: Line.cpp:287
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerStart()
Get the MarkerStart property.
Definition: Line.cpp:350
double getY1() const
Get the Y1 property.
Definition: Line.cpp:322
void setY2(double y2)
Set the Y2 property.
Definition: Line.cpp:280
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Line.h:81
static ome::compat::shared_ptr< Line > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Line model object from DOM element.
Definition: Line.cpp:170
void setX2(double x2)
Set the X2 property.
Definition: Line.cpp:294
void setMarkerEnd(ome::compat::shared_ptr< ome::xml::model::enums::Marker > &markerEnd)
Set the MarkerEnd property.
Definition: Line.cpp:315
virtual ~Line()
Destructor.
Definition: Line.cpp:165
Line model object.
Definition: Line.h:78
DOM Document wrapper.
Definition: Document.h:83
DOM Element wrapper.
Definition: Element.h:66
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: Line.cpp:384
double getY2() const
Get the Y2 property.
Definition: Line.cpp:273
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerEnd()
Get the MarkerEnd property.
Definition: Line.cpp:301
Private implementation details of Line model object.
Definition: Line.cpp:71
void setMarkerStart(ome::compat::shared_ptr< ome::xml::model::enums::Marker > &markerStart)
Set the MarkerStart property.
Definition: Line.cpp:364
void setX1(double x1)
Set the X1 property.
Definition: Line.cpp:343
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
const std::string & elementName() const
Get the element name of this model object.
Definition: Line.cpp:179
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: Line.cpp:258
const std::string & getShapeType() const
Get the Shape type.
Definition: Line.cpp:370
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: Line.cpp:195
Shape model object.
Definition: Shape.h:85
void setY1(double y1)
Set the Y1 property.
Definition: Line.cpp:329
double getX1() const
Get the X1 property.
Definition: Line.cpp:336
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Line.cpp:377
Line()
Default constructor.
Definition: Line.cpp:146
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Line.cpp:459
Xerces-C modern C++ wrapper.
Definition: Base.h:53