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
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:372
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerStart()
Get the MarkerStart property.
Definition: Line.cpp:345
void setY2(double y2)
Set the Y2 property.
Definition: Line.cpp:275
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:379
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Line.h:83
const std::string & elementName() const
Get the element name of this model object.
Definition: Line.cpp:174
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:165
void setX2(double x2)
Set the X2 property.
Definition: Line.cpp:289
void setMarkerEnd(ome::compat::shared_ptr< ome::xml::model::enums::Marker > &markerEnd)
Set the MarkerEnd property.
Definition: Line.cpp:310
virtual ~Line()
Destructor.
Definition: Line.cpp:160
Line model object.
Definition: Line.h:80
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Line.cpp:181
ome::compat::shared_ptr< ome::xml::model::enums::Marker > getMarkerEnd()
Get the MarkerEnd property.
Definition: Line.cpp:296
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:359
void setX1(double x1)
Set the X1 property.
Definition: Line.cpp:338
Open Microscopy Environment C++ implementation.
double getX2() const
Get the X2 property.
Definition: Line.cpp:282
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:253
const std::string & getShapeType() const
Get the Shape type.
Definition: Line.cpp:365
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:189
Line & operator=(const Line &)
Assignment operator (deleted).
double getY2() const
Get the Y2 property.
Definition: Line.cpp:268
Shape model object.
Definition: Shape.h:88
double getY1() const
Get the Y1 property.
Definition: Line.cpp:317
void setY1(double y1)
Set the Y1 property.
Definition: Line.cpp:324
Line()
Default constructor.
Definition: Line.cpp:145
double getX1() const
Get the X1 property.
Definition: Line.cpp:331
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Line.cpp:454