#include <hps.h>
Public Member Functions | |
InfiniteLineGlyphElement () | |
InfiniteLineGlyphElement (GlyphElement const &in_that) | |
InfiniteLineGlyphElement (InfiniteLineGlyphElement const &in_that) | |
InfiniteLineGlyphElement (GlyphPoint const &in_first, GlyphPoint const &in_second, InfiniteLine::Type in_type=InfiniteLine::Type::Line) | |
InfiniteLineGlyphElement (InfiniteLineGlyphElement &&in_that) | |
InfiniteLineGlyphElement & | operator= (InfiniteLineGlyphElement &&in_that) |
HPS::Type | ObjectType () const |
void | SetFirstPoint (GlyphPoint const &in_point) |
void | SetSecondPoint (GlyphPoint const &in_point) |
void | SetPoints (GlyphPoint const &in_first, GlyphPoint const &in_second) |
void | SetInfiniteType (InfiniteLine::Type in_type) |
bool | ShowFirstPoint (GlyphPoint &out_point) const |
bool | ShowSecondPoint (GlyphPoint &out_point) const |
bool | ShowInfiniteType (InfiniteLine::Type &out_type) const |
![]() | |
GlyphElement () | |
GlyphElement (GlyphElement const &in_that) | |
GlyphElement (GlyphElement &&in_that) | |
GlyphElement & | operator= (GlyphElement &&in_that) |
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 InfiniteLineGlyphElement class is a user space object. It is used to add infinite line and ray elements to a glyph.
HPS::InfiniteLineGlyphElement::InfiniteLineGlyphElement | ( | ) |
The default constructor creates an empty InfiniteLineGlyphElement object.
HPS::InfiniteLineGlyphElement::InfiniteLineGlyphElement | ( | GlyphElement const & | in_that | ) |
This constructor creates a InfiniteLineGlyphElement 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 infinite line glyph element. Otherwise the copy will fail and the resulting InfiniteLineGlyphElement will be invalid.
in_that | The source GlyphElement to copy. |
HPS::InfiniteLineGlyphElement::InfiniteLineGlyphElement | ( | InfiniteLineGlyphElement const & | in_that | ) |
The copy constructor creates a new InfiniteLineGlyphElement object that contains the same settings as the source InfiniteLineGlyphElement.
in_that | The source InfiniteLineGlyphElement to copy. |
HPS::InfiniteLineGlyphElement::InfiniteLineGlyphElement | ( | GlyphPoint const & | in_first, |
GlyphPoint const & | in_second, | ||
InfiniteLine::Type | in_type = InfiniteLine::Type::Line |
||
) |
This constructor creates a InfiniteLineGlyphElement with the specified vector and type.
in_first | The first point along the InfiniteLineGlyphElement |
in_second | The second point along the InfiniteLineGlyphElement |
in_type | The type of infinite line - either Ray or Line |
HPS::InfiniteLineGlyphElement::InfiniteLineGlyphElement | ( | InfiniteLineGlyphElement && | in_that | ) |
The move constructor creates an InfiniteLineGlyphElement by transferring the underlying impl of the rvalue reference to this InfiniteLineGlyphElement thereby avoiding a copy and allocation.
in_that | An rvalue reference to an InfiniteLineGlyphElement to take the impl from. |
|
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::GlyphElement.
InfiniteLineGlyphElement& HPS::InfiniteLineGlyphElement::operator= | ( | InfiniteLineGlyphElement && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this InfiniteLineGlyphElement thereby avoiding a copy.
in_that | An rvalue reference to an InfiniteLineGlyphElement to take the impl from. |
void HPS::InfiniteLineGlyphElement::SetFirstPoint | ( | GlyphPoint const & | in_point | ) |
Sets the first point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
in_point | The first point for the vector defining the infinite line or ray. |
void HPS::InfiniteLineGlyphElement::SetInfiniteType | ( | InfiniteLine::Type | in_type | ) |
Sets the type of this InfiniteLineGlyphElement, i.e., whether it represents an infinite line or ray.
in_type | The type of this InfiniteLineGlyphElement. |
void HPS::InfiniteLineGlyphElement::SetPoints | ( | GlyphPoint const & | in_first, |
GlyphPoint const & | in_second | ||
) |
Sets the points for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
in_first | The first point for the vector defining the infinite line or ray. |
in_second | The second point for the vector defining the infinite line or ray. |
void HPS::InfiniteLineGlyphElement::SetSecondPoint | ( | GlyphPoint const & | in_point | ) |
Sets the second point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
in_point | The second point for the vector defining the infinite line or ray. |
bool HPS::InfiniteLineGlyphElement::ShowFirstPoint | ( | GlyphPoint & | out_point | ) | const |
Shows the first point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
out_point | The first point for the vector defining the infinite line or ray. |
bool HPS::InfiniteLineGlyphElement::ShowInfiniteType | ( | InfiniteLine::Type & | out_type | ) | const |
Shows the type of this InfiniteLineGlyphElement.
out_type | The type of this InfiniteLineGlyphElement. |
bool HPS::InfiniteLineGlyphElement::ShowSecondPoint | ( | GlyphPoint & | out_point | ) | const |
Shows the second point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
out_point | The second point for the vector defining the infinite line or ray. |