#include <hps.h>

Public Member Functions | |
EllipseGlyphElement () | |
EllipseGlyphElement (GlyphElement const &in_that) | |
EllipseGlyphElement (EllipseGlyphElement const &in_that) | |
EllipseGlyphElement (GlyphPoint const &in_lower_left, GlyphPoint const &in_upper_right) | |
EllipseGlyphElement (EllipseGlyphElement &&in_that) | |
HPS::Type | ObjectType () const |
EllipseGlyphElement & | operator= (EllipseGlyphElement &&in_that) |
void | SetLowerLeft (GlyphPoint const &in_point) |
void | SetPoints (GlyphPoint const &in_lower_left, GlyphPoint const &in_upper_right) |
void | SetUpperRight (GlyphPoint const &in_point) |
bool | ShowLowerLeft (GlyphPoint &out_point) const |
bool | ShowUpperRight (GlyphPoint &out_point) const |
![]() | |
bool | Equals (GlyphElement const &in_that) const |
GlyphElement () | |
GlyphElement (GlyphElement const &in_that) | |
GlyphElement (GlyphElement &&in_that) | |
bool | operator!= (GlyphElement const &in_that) const |
GlyphElement & | operator= (GlyphElement &&in_that) |
GlyphElement & | operator= (GlyphElement const &in_that) |
bool | operator== (GlyphElement const &in_that) const |
void | Set (GlyphElement const &in_that) |
void | SetExplicitColor (RGBAColor const &in_color) |
void | SetFill (Glyph::Fill in_fill) |
void | SetIndexedColor (byte in_index) |
void | SetNormalColor () |
bool | ShowColor (Glyph::ColorSource &out_source, byte &out_index, RGBAColor &out_color) const |
bool | ShowFill (Glyph::Fill &out_fill) const |
![]() | |
virtual bool | Empty () const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (HPS::Type in_mask) const |
Object (Object const &that) | |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
virtual HPS::Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
Detailed Description
The EllipseGlyphElement class is a user space object. It is used to add ellipse elements to glyphs.
Constructor & Destructor Documentation
HPS::EllipseGlyphElement::EllipseGlyphElement | ( | ) |
The default constructor creates an empty EllipseGlyphElement object.
HPS::EllipseGlyphElement::EllipseGlyphElement | ( | GlyphElement const & | in_that | ) |
This constructor creates a EllipseGlyphElement 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 an ellipse glyph element. Otherwise the copy will fail and the resulting EllipseGlyphElement will be invalid.
- Parameters
-
in_that The source GlyphElement to copy.
HPS::EllipseGlyphElement::EllipseGlyphElement | ( | EllipseGlyphElement const & | in_that | ) |
The copy constructor creates a new EllipseGlyphElement object that contains the same settings as the source EllipseGlyphElement.
- Parameters
-
in_that The source EllipseGlyphElement to copy.
HPS::EllipseGlyphElement::EllipseGlyphElement | ( | GlyphPoint const & | in_lower_left, |
GlyphPoint const & | in_upper_right | ||
) |
This constructor creates a EllipseGlyphElement with the lower left and upper right points for the bounding box which circumscribes the ellipse.
- Parameters
-
in_lower_left The lower left point for the bounding box which circumscribes the ellipse. in_upper_right The upper right point for the bounding box which circumscribes the ellipse.
HPS::EllipseGlyphElement::EllipseGlyphElement | ( | EllipseGlyphElement && | in_that | ) |
The move constructor creates an EllipseGlyphElement by transferring the underlying impl of the rvalue reference to this EllipseGlyphElement thereby avoiding a copy and allocation.
- Parameters
-
in_that An rvalue reference to an EllipseGlyphElement to take the impl from.
Member Function Documentation
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
- Returns
- The declared type of the object in question, which may differ from the true, underlying type.
Reimplemented from HPS::GlyphElement.
EllipseGlyphElement& HPS::EllipseGlyphElement::operator= | ( | EllipseGlyphElement && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this EllipseGlyphElement thereby avoiding a copy.
- Parameters
-
in_that An rvalue reference to an EllipseGlyphElement to take the impl from.
- Returns
- A reference to this EllipseGlyphElement.
void HPS::EllipseGlyphElement::SetLowerLeft | ( | GlyphPoint const & | in_point | ) |
Sets the lower left point for the bounding box which circumscribes the ellipse for this EllipseGlyphElement.
- Parameters
-
in_point The lower left point for the bounding box which circumscribes the ellipse.
void HPS::EllipseGlyphElement::SetPoints | ( | GlyphPoint const & | in_lower_left, |
GlyphPoint const & | in_upper_right | ||
) |
Sets the lower left and upper right points for the bounding box which circumscribes the ellipse for this EllipseGlyphElement.
- Parameters
-
in_lower_left The lower left point for the bounding box which circumscribes the ellipse. in_upper_right The upper right point for the bounding box which circumscribes the ellipse.
void HPS::EllipseGlyphElement::SetUpperRight | ( | GlyphPoint const & | in_point | ) |
Sets the upper right point for the bounding box which circumscribes the ellipse for this EllipseGlyphElement.
- Parameters
-
in_point The upper right point for the bounding box which circumscribes the ellipse.
bool HPS::EllipseGlyphElement::ShowLowerLeft | ( | GlyphPoint & | out_point | ) | const |
Shows the lower left point for the bounding box which circumscribes the ellipse for this EllipseGlyphElement.
- Parameters
-
out_point The lower left point for the bounding box which circumscribes the ellipse.
- Returns
- true if a lower left point was set, false otherwise.
bool HPS::EllipseGlyphElement::ShowUpperRight | ( | GlyphPoint & | out_point | ) | const |
Shows the upper right point for the bounding box which circumscribes the ellipse for this EllipseGlyphElement.
- Parameters
-
out_point The upper right point for the bounding box which circumscribes the ellipse.
- Returns
- true if an upper right point was set, false otherwise.
The documentation for this class was generated from the following file:
- include/hps.h