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>
86 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
markerEnd;
92 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
markerStart;
125 static ome::compat::shared_ptr< Line>
150 link (ome::compat::shared_ptr<Reference>& reference,
151 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
190 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
198 const ome::compat::shared_ptr<ome::xml::model::enums::Marker>
207 setMarkerEnd (ome::compat::shared_ptr<ome::xml::model::enums::Marker>& markerEnd);
246 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
254 const ome::compat::shared_ptr<ome::xml::model::enums::Marker>
263 setMarkerStart (ome::compat::shared_ptr<ome::xml::model::enums::Marker>& markerStart);
289 #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:161
double y2
Y2 property.
Definition: Line.h:82
double getX2() const
Get the X2 property.
Definition: Line.cpp:262
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerStart()
Get the MarkerStart property.
Definition: Line.cpp:325
double getY1() const
Get the Y1 property.
Definition: Line.cpp:297
void setY2(double y2)
Set the Y2 property.
Definition: Line.cpp:255
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:145
double y1
Y1 property.
Definition: Line.h:88
void setX2(double x2)
Set the X2 property.
Definition: Line.cpp:269
void setMarkerEnd(ome::compat::shared_ptr< ome::xml::model::enums::Marker > &markerEnd)
Set the MarkerEnd property.
Definition: Line.cpp:290
virtual ~Line()
Destructor.
Definition: Line.cpp:140
Line model object.
Definition: Line.h:78
DOM Document wrapper.
Definition: Document.h:82
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:359
double getY2() const
Get the Y2 property.
Definition: Line.cpp:248
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerEnd()
Get the MarkerEnd property.
Definition: Line.cpp:276
void setMarkerStart(ome::compat::shared_ptr< ome::xml::model::enums::Marker > &markerStart)
Set the MarkerStart property.
Definition: Line.cpp:339
void setX1(double x1)
Set the X1 property.
Definition: Line.cpp:318
ome::compat::shared_ptr< ome::xml::model::enums::Marker > markerEnd
MarkerEnd property.
Definition: Line.h:86
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:154
double x2
X2 property.
Definition: Line.h:84
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:233
const std::string & getShapeType() const
Get the Shape type.
Definition: Line.cpp:345
ome::compat::shared_ptr< ome::xml::model::enums::Marker > markerStart
MarkerStart property.
Definition: Line.h:92
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:170
double x1
X1 property.
Definition: Line.h:90
Shape model object.
Definition: Shape.h:85
void setY1(double y1)
Set the Y1 property.
Definition: Line.cpp:304
double getX1() const
Get the X1 property.
Definition: Line.cpp:311
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:352
Line()
Default constructor.
Definition: Line.cpp:111
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Line.cpp:434
Xerces-C modern C++ wrapper.
Definition: Base.h:53