#include <hps.h>
Public Member Functions | |
GlyphElement () | |
GlyphElement (GlyphElement const &in_that) | |
GlyphElement (GlyphElement &&in_that) | |
GlyphElement & | operator= (GlyphElement &&in_that) |
HPS::Type | ObjectType () const |
void | Set (GlyphElement const &in_that) |
GlyphElement & | operator= (GlyphElement const &in_that) |
bool | Equals (GlyphElement const &in_that) const |
bool | operator== (GlyphElement const &in_that) const |
bool | operator!= (GlyphElement const &in_that) const |
void | SetFill (Glyph::Fill in_fill) |
void | SetIndexedColor (byte in_index) |
void | SetNormalColor () |
void | SetExplicitColor (RGBAColor const &in_color) |
bool | ShowFill (Glyph::Fill &out_fill) const |
bool | ShowColor (Glyph::ColorSource &out_source, byte &out_index, RGBAColor &out_color) const |
![]() | |
Object & | operator= (Object const &other_object) |
Object (Object &&in_that) | |
Object & | operator= (Object &&in_that) |
HPS::Type | Type () const |
virtual bool | Empty () const |
virtual void | Reset () |
bool | HasType (HPS::Type in_mask) const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The GlyphElement class is a user space object. It is the base class for all glyph elements.
HPS::GlyphElement::GlyphElement | ( | ) |
The default constructor creates an empty GlyphElement object.
HPS::GlyphElement::GlyphElement | ( | GlyphElement const & | in_that | ) |
The copy constructor creates a new GlyphElement object that contains the same settings as the source GlyphElement.
in_that | The source GlyphElement to copy. |
HPS::GlyphElement::GlyphElement | ( | GlyphElement && | in_that | ) |
The move constructor creates a GlyphElement by transferring the underlying impl of the rvalue reference to this GlyphElement thereby avoiding a copy and allocation.
in_that | An rvalue reference to a GlyphElement to take the impl from. |
bool HPS::GlyphElement::Equals | ( | GlyphElement const & | in_that | ) | const |
Check if the source GlyphElement is equivalent to this GlyphElement.
in_that | The source GlyphElement to compare to this GlyphElement. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Object.
Reimplemented in HPS::InfiniteLineGlyphElement, HPS::CircularArcGlyphElement, HPS::EllipseGlyphElement, HPS::DotGlyphElement, and HPS::LineGlyphElement.
bool HPS::GlyphElement::operator!= | ( | GlyphElement const & | in_that | ) | const |
Check if the source GlyphElement is not equivalent to this GlyphElement.
in_that | The source GlyphElement to compare to this GlyphElement. |
GlyphElement& HPS::GlyphElement::operator= | ( | GlyphElement && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this GlyphElement thereby avoiding a copy.
in_that | An rvalue reference to a GlyphElement to take the impl from. |
GlyphElement& HPS::GlyphElement::operator= | ( | GlyphElement const & | in_that | ) |
Copies the source GlyphElement into this GlyphElement.
in_that | The source GlyphElement to copy. |
bool HPS::GlyphElement::operator== | ( | GlyphElement const & | in_that | ) | const |
Check if the source GlyphElement is equivalent to this GlyphElement.
in_that | The source GlyphElement to compare to this GlyphElement. |
void HPS::GlyphElement::Set | ( | GlyphElement const & | in_that | ) |
Copies the source GlyphElement into this GlyphElement.
in_that | The source GlyphElement to copy. |
void HPS::GlyphElement::SetExplicitColor | ( | RGBAColor const & | in_color | ) |
Sets the RGBA color for this GlyphElement.
in_color | The color for this GlyphElement. |
void HPS::GlyphElement::SetFill | ( | Glyph::Fill | in_fill | ) |
Sets the fill mode for this GlyphElement.
in_fill | The fill mode for this GlyphElement. |
void HPS::GlyphElement::SetIndexedColor | ( | byte | in_index | ) |
Sets the color index for this GlyphElement.
in_index | The color index for this GlyphElement. |
void HPS::GlyphElement::SetNormalColor | ( | ) |
Sets that this GlyphElement should inherit the color of the owning geometry which uses the glyph.
bool HPS::GlyphElement::ShowColor | ( | Glyph::ColorSource & | out_source, |
byte & | out_index, | ||
RGBAColor & | out_color | ||
) | const |
Shows the color for this GlyphElement.
out_source | The color source for this GlyphElement. |
out_index | The color index for this GlyphElement. This is only valid if out_source is Glyph::ColorSource::Indexed. |
out_color | The color for this GlyphElement. This is only valid if out_source is Glyph::ColorSource::Explicit. |
bool HPS::GlyphElement::ShowFill | ( | Glyph::Fill & | out_fill | ) | const |
Shows the fill mode for this GlyphElement.
out_fill | The fill mode for this GlyphElement. |