Inscoper::NBO::Line¶
Represents the XML element Line. More...
#include <Line.h>
Inherits from Inscoper::NBO::Shape_Type, NBOBaseClass
Public Functions¶
| Name | |
|---|---|
| Line() | |
| ~Line() | |
| virtual std::string | getTypeName() const override Returns the class type name. |
| std::string | getXMLName() const override Returns the XML element name corresponding to this class. |
| ENBOType | getNBOType() const override Returns the NBO Type corresponding to this class. |
| std::vector< NBOBaseClassPtr > | getChildren() const override Returns a list of all classes derived from this class. |
| std::vector< NBOBaseClassPtr > | getSubElements() const override Returns a list of all child elements contained in this class. |
| void | fromJsonFile(const std::string & path, bool validate =true) Populates this object from a JSON file. |
| void | fromJsonString(const std::string & json_string, bool validate =true) Populates this object from a JSON string. |
| void | fromXmlFile(const std::string & path, bool validate =true) Populates this object from a XML file. |
| void | fromXmlString(const std::string & xml_string, bool validate =true) Populates this object from a XML string. |
| void | toXmlFile(const std::string & filename, bool validate =true) const Serializes this object to an XML file. |
| std::string | toXmlString(bool validate =true) const Serializes this object to an XML string. |
| void | setX1(const float & value, bool validate =true) Sets the value of the X1 attribute. |
| float | getX1() const Returns the value of the X1 attribute. |
| void | resetX1() Resets the X1 attribute to an unset state. |
| bool | hasX1() const Checks whether the X1 attribute is present. |
| void | setY1(const float & value, bool validate =true) Sets the value of the Y1 attribute. |
| float | getY1() const Returns the value of the Y1 attribute. |
| void | resetY1() Resets the Y1 attribute to an unset state. |
| bool | hasY1() const Checks whether the Y1 attribute is present. |
| void | setX2(const float & value, bool validate =true) Sets the value of the X2 attribute. |
| float | getX2() const Returns the value of the X2 attribute. |
| void | resetX2() Resets the X2 attribute to an unset state. |
| bool | hasX2() const Checks whether the X2 attribute is present. |
| void | setY2(const float & value, bool validate =true) Sets the value of the Y2 attribute. |
| float | getY2() const Returns the value of the Y2 attribute. |
| void | resetY2() Resets the Y2 attribute to an unset state. |
| bool | hasY2() const Checks whether the Y2 attribute is present. |
| void | setMarkerStart(const Inscoper::NBO::Marker_TypePtr & value, bool validate =true) Sets the value of the MarkerStart attribute. |
| Marker_TypePtr | getMarkerStart() const Returns the value of the MarkerStart attribute. |
| void | resetMarkerStart() Resets the MarkerStart attribute to an unset state. |
| bool | hasMarkerStart() const Checks whether the optional MarkerStart attribute is present. |
| void | setMarkerEnd(const Inscoper::NBO::Marker_TypePtr & value, bool validate =true) Sets the value of the MarkerEnd attribute. |
| Marker_TypePtr | getMarkerEnd() const Returns the value of the MarkerEnd attribute. |
| void | resetMarkerEnd() Resets the MarkerEnd attribute to an unset state. |
| bool | hasMarkerEnd() const Checks whether the optional MarkerEnd attribute is present. |
| std::shared_ptr< Line > | fromBase(NBOBaseClassPtr base) Cast a NBOBaseClass to a Line. |
Additional inherited members¶
Public Functions inherited from Inscoper::NBO::Shape_Type
| Name | |
|---|---|
| Shape_Type() | |
| ~Shape_Type() | |
| void | setFillColor(const Inscoper::NBO::Color_TypePtr & value, bool validate =true) Sets the value of the FillColor attribute. |
| Color_TypePtr | getFillColor() const Returns the value of the FillColor attribute. |
| void | resetFillColor() Resets the FillColor attribute to an unset state. |
| bool | hasFillColor() const Checks whether the optional FillColor attribute is present. |
| void | setFillRule(const std::string & value, bool validate =true) Sets the value of the FillRule attribute. |
| std::string | getFillRule() const Returns the value of the FillRule attribute. |
| void | resetFillRule() Resets the FillRule attribute to an unset state. |
| bool | hasFillRule() const Checks whether the FillRule attribute is present. |
| void | setStrokeColor(const Inscoper::NBO::Color_TypePtr & value, bool validate =true) Sets the value of the StrokeColor attribute. |
| Color_TypePtr | getStrokeColor() const Returns the value of the StrokeColor attribute. |
| void | resetStrokeColor() Resets the StrokeColor attribute to an unset state. |
| bool | hasStrokeColor() const Checks whether the optional StrokeColor attribute is present. |
| void | setStrokeWidth(const float & value, bool validate =true) Sets the value of the StrokeWidth attribute. |
| float | getStrokeWidth() const Returns the value of the StrokeWidth attribute. |
| void | resetStrokeWidth() Resets the StrokeWidth attribute to an unset state. |
| bool | hasStrokeWidth() const Checks whether the StrokeWidth attribute is present. |
| void | setStrokeWidthUnit(const Inscoper::NBO::UnitsLength_TypePtr & value, bool validate =true) Sets the value of the StrokeWidthUnit attribute. |
| UnitsLength_TypePtr | getStrokeWidthUnit() const Returns the value of the StrokeWidthUnit attribute. |
| void | resetStrokeWidthUnit() Resets the StrokeWidthUnit attribute to an unset state. |
| bool | hasStrokeWidthUnit() const Checks whether the optional StrokeWidthUnit attribute is present. |
| void | setStrokeDashArray(const std::string & value, bool validate =true) Sets the value of the StrokeDashArray attribute. |
| std::string | getStrokeDashArray() const Returns the value of the StrokeDashArray attribute. |
| void | resetStrokeDashArray() Resets the StrokeDashArray attribute to an unset state. |
| bool | hasStrokeDashArray() const Checks whether the StrokeDashArray attribute is present. |
| void | setText(const std::string & value, bool validate =true) Sets the value of the Text attribute. |
| std::string | getText() const Returns the value of the Text attribute. |
| void | resetText() Resets the Text attribute to an unset state. |
| bool | hasText() const Checks whether the Text attribute is present. |
| void | setFontFamily(const std::string & value, bool validate =true) Sets the value of the FontFamily attribute. |
| std::string | getFontFamily() const Returns the value of the FontFamily attribute. |
| void | resetFontFamily() Resets the FontFamily attribute to an unset state. |
| bool | hasFontFamily() const Checks whether the FontFamily attribute is present. |
| void | setFontSize(const Inscoper::NBO::NonNegativeInt_TypePtr & value, bool validate =true) Sets the value of the FontSize attribute. |
| NonNegativeInt_TypePtr | getFontSize() const Returns the value of the FontSize attribute. |
| void | resetFontSize() Resets the FontSize attribute to an unset state. |
| bool | hasFontSize() const Checks whether the optional FontSize attribute is present. |
| void | setFontSizeUnit(const Inscoper::NBO::UnitsLength_TypePtr & value, bool validate =true) Sets the value of the FontSizeUnit attribute. |
| UnitsLength_TypePtr | getFontSizeUnit() const Returns the value of the FontSizeUnit attribute. |
| void | resetFontSizeUnit() Resets the FontSizeUnit attribute to an unset state. |
| bool | hasFontSizeUnit() const Checks whether the optional FontSizeUnit attribute is present. |
| void | setFontStyle(const std::string & value, bool validate =true) Sets the value of the FontStyle attribute. |
| std::string | getFontStyle() const Returns the value of the FontStyle attribute. |
| void | resetFontStyle() Resets the FontStyle attribute to an unset state. |
| bool | hasFontStyle() const Checks whether the FontStyle attribute is present. |
| void | setLocked(const bool & value, bool validate =true) Sets the value of the Locked attribute. |
| bool | getLocked() const Returns the value of the Locked attribute. |
| void | resetLocked() Resets the Locked attribute to an unset state. |
| bool | hasLocked() const Checks whether the Locked attribute is present. |
| void | setID(const Inscoper::NBO::ShapeID_TypePtr & value, bool validate =true) Sets the value of the ID attribute. |
| ShapeID_TypePtr | getID() const Returns the value of the ID attribute. |
| void | resetID() Resets the ID attribute to an unset state. |
| bool | hasID() const Checks whether the optional ID attribute is present. |
| void | setTheZ(const Inscoper::NBO::NonNegativeInt_TypePtr & value, bool validate =true) Sets the value of the TheZ attribute. |
| NonNegativeInt_TypePtr | getTheZ() const Returns the value of the TheZ attribute. |
| void | resetTheZ() Resets the TheZ attribute to an unset state. |
| bool | hasTheZ() const Checks whether the optional TheZ attribute is present. |
| void | setTheT(const Inscoper::NBO::NonNegativeInt_TypePtr & value, bool validate =true) Sets the value of the TheT attribute. |
| NonNegativeInt_TypePtr | getTheT() const Returns the value of the TheT attribute. |
| void | resetTheT() Resets the TheT attribute to an unset state. |
| bool | hasTheT() const Checks whether the optional TheT attribute is present. |
| void | setTheC(const Inscoper::NBO::NonNegativeInt_TypePtr & value, bool validate =true) Sets the value of the TheC attribute. |
| NonNegativeInt_TypePtr | getTheC() const Returns the value of the TheC attribute. |
| void | resetTheC() Resets the TheC attribute to an unset state. |
| bool | hasTheC() const Checks whether the optional TheC attribute is present. |
| void | setTransform(const Inscoper::NBO::AffineTransform_TypePtr & value, bool validate =true) Sets the value of the Transform element. |
| Inscoper::NBO::AffineTransform_TypePtr | getTransform() const Returns the value of the Transform element. |
| void | resetTransform() Resets the Transform element to an unset state. |
| bool | hasTransform() const Checks whether the optional Transform element is present. |
| void | setAnnotationRef_List(const std::vector< Inscoper::NBO::AnnotationRefPtr > & value, bool validate =true) Sets the list of AnnotationRef elements. |
| std::vector< Inscoper::NBO::AnnotationRefPtr > | getAnnotationRef_List() const Returns the list of AnnotationRef elements. |
| void | addToAnnotationRef_List(const Inscoper::NBO::AnnotationRefPtr & value, bool validate =true) Adds a new AnnotationRef element to this object. |
| void | clearAnnotationRef_List() Clear the list of AnnotationRef. |
| const std::set< std::string > & | getFillRuleAllowedValues() Returns the allowed values for this attribut. |
| const std::set< std::string > & | getStrokeDashArrayAllowedValues() Returns the allowed values for this attribut. |
| const std::set< std::string > & | getTextAllowedValues() Returns the allowed values for this attribut. |
| const std::set< std::string > & | getFontFamilyAllowedValues() Returns the allowed values for this attribut. |
| const std::set< std::string > & | getFontStyleAllowedValues() Returns the allowed values for this attribut. |
Detailed Description¶
Represents the XML element Line.
A straight line defined by it's end points.