LineGlyphElement
-
class HPS::LineGlyphElement : public HPS::GlyphElement
The LineGlyphElement class is a user space object.
Public Functions
-
LineGlyphElement()
The default constructor creates an empty LineGlyphElement object.
-
LineGlyphElement(GlyphElement const &in_that)
This constructor creates a LineGlyphElement object that contains the same settings as the source GlyphElement. The copy will only be successful if the source glyph element is really an upcast of a line glyph element. Otherwise the copy will fail and the resulting LineGlyphElement will be invalid.
- Parameters
in_that – The source GlyphElement to copy.
-
explicit LineGlyphElement(GlyphPointArray const &in_points)
This constructor creates a LineGlyphElement with the specified point array.
- Parameters
in_points – The points for the line.
-
LineGlyphElement(LineGlyphElement &&in_that)
The move constructor creates a LineGlyphElement by transferring the underlying impl of the rvalue reference to this LineGlyphElement thereby avoiding a copy and allocation.
- Parameters
in_that – An rvalue reference to a LineGlyphElement to take the impl from.
-
LineGlyphElement(LineGlyphElement const &in_that)
The copy constructor creates a new LineGlyphElement object that contains the same settings as the source LineGlyphElement.
- Parameters
in_that – The source LineGlyphElement to copy.
-
LineGlyphElement(size_t in_count, GlyphPoint const in_points[])
This constructor creates a LineGlyphElement with the specified point array.
- Parameters
in_count – Size of the following array.
in_points – The points for the line.
-
inline virtual HPS::Type ObjectType() const
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Returns
The declared type of the object in question, which may differ from the true, underlying type.
-
LineGlyphElement &operator=(LineGlyphElement &&in_that)
The move assignment operator transfers the underlying impl of the rvalue reference to this LineGlyphElement thereby avoiding a copy.
- Parameters
in_that – An rvalue reference to a LineGlyphElement to take the impl from.
- Returns
A reference to this LineGlyphElement.
-
void SetPoints(GlyphPointArray const &in_points)
Sets the points for this LineGlyphElement.
- Parameters
in_points – The points for the line.
-
void SetPoints(size_t in_count, GlyphPoint const in_points[])
Sets the points for this LineGlyphElement.
- Parameters
in_count – Size of the following array.
in_points – The points for the line.
-
bool ShowPoints(GlyphPointArray &out_points) const
Shows the points for this LineGlyphElement.
- Parameters
out_points – The points for the line.
- Returns
true if points were set, false otherwise.
-
~LineGlyphElement()
Public Static Attributes
-
static const HPS::Type staticType = HPS::Type::LineGlyphElement
-
LineGlyphElement()