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> 61 #include <ome/xml/model/primitives/Quantity.h> 63 #include <ome/xml/model/Shape.h> 64 #include <ome/xml/model/enums/Marker.h> 84 std::shared_ptr<Impl>
impl;
115 static std::shared_ptr<Line>
129 operator= (
const Line&) =
delete;
144 link (std::shared_ptr<Reference>& reference,
145 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
184 std::shared_ptr<ome::xml::model::enums::Marker>
192 const std::shared_ptr<ome::xml::model::enums::Marker>
201 setMarkerEnd (std::shared_ptr<ome::xml::model::enums::Marker>& markerEnd);
240 std::shared_ptr<ome::xml::model::enums::Marker>
248 const std::shared_ptr<ome::xml::model::enums::Marker>
257 setMarkerStart (std::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:61
void setY2(double y2)
Set the Y2 property.
Definition: Line.cpp:281
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: Line.cpp:378
const std::string & elementName() const
Get the element name of this model object.
Definition: Line.cpp:182
void setX2(double x2)
Set the X2 property.
Definition: Line.cpp:295
virtual ~Line()
Destructor.
Definition: Line.cpp:168
Line model object.
Definition: Line.h:79
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Line.cpp:189
Private implementation details of Line model object.
Definition: Line.cpp:71
std::shared_ptr< ome::xml::model::enums::Marker > getMarkerStart()
Get the MarkerStart property.
Definition: Line.cpp:351
void setX1(double x1)
Set the X1 property.
Definition: Line.cpp:344
void setMarkerEnd(std::shared_ptr< ome::xml::model::enums::Marker > &markerEnd)
Set the MarkerEnd property.
Definition: Line.cpp:316
Open Microscopy Environment C++ implementation.
double getX2() const
Get the X2 property.
Definition: Line.cpp:288
std::shared_ptr< ome::xml::model::enums::Marker > getMarkerEnd()
Get the MarkerEnd property.
Definition: Line.cpp:302
static std::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:173
const std::string & getShapeType() const
Get the Shape type.
Definition: Line.cpp:371
virtual SKIP 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
void setMarkerStart(std::shared_ptr< ome::xml::model::enums::Marker > &markerStart)
Set the MarkerStart property.
Definition: Line.cpp:365
double getY2() const
Get the Y2 property.
Definition: Line.cpp:274
Shape model object.
Definition: Shape.h:87
double getY1() const
Get the Y1 property.
Definition: Line.cpp:323
void setY1(double y1)
Set the Y1 property.
Definition: Line.cpp:330
Line()
Default constructor.
Definition: Line.cpp:149
double getX1() const
Get the X1 property.
Definition: Line.cpp:337
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Line.cpp:443
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: Line.cpp:259
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Line.h:82