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/primitives/Quantity.h> 64 #include <ome/xml/model/Shape.h> 65 #include <ome/xml/model/enums/Marker.h> 85 ome::compat::shared_ptr<Impl>
impl;
116 static ome::compat::shared_ptr< Line>
146 link (ome::compat::shared_ptr<Reference>& reference,
147 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
186 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
194 const ome::compat::shared_ptr<ome::xml::model::enums::Marker>
203 setMarkerEnd (ome::compat::shared_ptr<ome::xml::model::enums::Marker>& markerEnd);
242 ome::compat::shared_ptr<ome::xml::model::enums::Marker>
250 const ome::compat::shared_ptr<ome::xml::model::enums::Marker>
259 setMarkerStart (ome::compat::shared_ptr<ome::xml::model::enums::Marker>& markerStart);
285 #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:185
double getX2() const
Get the X2 property.
Definition: Line.cpp:286
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerStart()
Get the MarkerStart property.
Definition: Line.cpp:349
double getY1() const
Get the Y1 property.
Definition: Line.cpp:321
void setY2(double y2)
Set the Y2 property.
Definition: Line.cpp:279
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Line.h:83
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:169
void setX2(double x2)
Set the X2 property.
Definition: Line.cpp:293
void setMarkerEnd(ome::compat::shared_ptr< ome::xml::model::enums::Marker > &markerEnd)
Set the MarkerEnd property.
Definition: Line.cpp:314
virtual ~Line()
Destructor.
Definition: Line.cpp:164
Line model object.
Definition: Line.h:80
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:383
double getY2() const
Get the Y2 property.
Definition: Line.cpp:272
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerEnd()
Get the MarkerEnd property.
Definition: Line.cpp:300
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:363
void setX1(double x1)
Set the X1 property.
Definition: Line.cpp:342
Open Microscopy Environment C++ implementation.
const std::string & elementName() const
Get the element name of this model object.
Definition: Line.cpp:178
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:257
const std::string & getShapeType() const
Get the Shape type.
Definition: Line.cpp:369
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:193
Line & operator=(const Line &)
Assignment operator (deleted).
Shape model object.
Definition: Shape.h:88
void setY1(double y1)
Set the Y1 property.
Definition: Line.cpp:328
double getX1() const
Get the X1 property.
Definition: Line.cpp:335
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:376
Line()
Default constructor.
Definition: Line.cpp:145
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Line.cpp:458