Skip to content

Inscoper::NBO::Shape_Type

Represents the XML complex type Shape. More...

#include <Shape_Type.h>

Inherits from NBOBaseClass

Inherited by Inscoper::NBO::Ellipse, Inscoper::NBO::Label, Inscoper::NBO::Line, Inscoper::NBO::Mask, Inscoper::NBO::Point, Inscoper::NBO::Polygon, Inscoper::NBO::Polyline, Inscoper::NBO::Rectangle

Public Functions

Name
Shape_Type()
~Shape_Type()
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 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.
std::shared_ptr< Shape_Type > fromBase(NBOBaseClassPtr base)
Cast a NBOBaseClass to a Shape_Type.
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

class Inscoper::NBO::Shape_Type;

Represents the XML complex type Shape.

The shape element contains a single specific ROI shape and links that to any channels, and a timepoint and a z-section. It also records any transform applied to the ROI shape.

Public Functions Documentation

function Shape_Type

function ~Shape_Type

function getTypeName

function getXMLName

function getNBOType

function getChildren

function getSubElements

function fromJsonFile

function fromJsonString

function fromXmlFile

function fromXmlString

function toXmlFile

function toXmlString

function setFillColor

function getFillColor

function resetFillColor

function hasFillColor

function setFillRule

function getFillRule

function resetFillRule

function hasFillRule

function setStrokeColor

function getStrokeColor

function resetStrokeColor

function hasStrokeColor

function setStrokeWidth

function getStrokeWidth

function resetStrokeWidth

function hasStrokeWidth

function setStrokeWidthUnit

function getStrokeWidthUnit

function resetStrokeWidthUnit

function hasStrokeWidthUnit

function setStrokeDashArray

function getStrokeDashArray

function resetStrokeDashArray

function hasStrokeDashArray

function setText

function getText

function resetText

function hasText

function setFontFamily

function getFontFamily

function resetFontFamily

function hasFontFamily

function setFontSize

function getFontSize

function resetFontSize

function hasFontSize

function setFontSizeUnit

function getFontSizeUnit

function resetFontSizeUnit

function hasFontSizeUnit

function setFontStyle

function getFontStyle

function resetFontStyle

function hasFontStyle

function setLocked

function getLocked

function resetLocked

function hasLocked

function setID

function getID

function resetID

function hasID

function setTheZ

function getTheZ

function resetTheZ

function hasTheZ

function setTheT

function getTheT

function resetTheT

function hasTheT

function setTheC

function getTheC

function resetTheC

function hasTheC

function setTransform

function getTransform

function resetTransform

function hasTransform

function setAnnotationRef_List

function getAnnotationRef_List

function addToAnnotationRef_List

function clearAnnotationRef_List

function fromBase

function getFillRuleAllowedValues

function getStrokeDashArrayAllowedValues

function getTextAllowedValues

function getFontFamilyAllowedValues

function getFontStyleAllowedValues