#include <hps.h>
Public Member Functions | |
void | Consume (EllipticalArcKit &in_kit) |
EllipticalArcKey () | |
EllipticalArcKey (Key const &in_that) | |
EllipticalArcKey (EllipticalArcKey const &in_that) | |
EllipticalArcKey (EllipticalArcKey &&in_that) | |
HPS::Type | ObjectType () const |
EllipticalArcKey & | operator= (EllipticalArcKey const &other) |
EllipticalArcKey & | operator= (EllipticalArcKey &&in_that) |
void | Set (EllipticalArcKit const &in_kit) |
EllipticalArcKey & | SetCenter (Point const &in_center) |
EllipticalArcKey & | SetEnd (float in_end) |
EllipticalArcKey & | SetMajor (Point const &in_major) |
EllipticalArcKey & | SetMinor (Point const &in_minor) |
EllipticalArcKey & | SetStart (float in_start) |
void | Show (EllipticalArcKit &out_kit) const |
bool | ShowCenter (Point &out_center) const |
bool | ShowEnd (float &out_end) const |
bool | ShowMajor (Point &out_major) const |
bool | ShowMinor (Point &out_minor) const |
bool | ShowStart (float &out_start) const |
![]() | |
GeometryKey () | |
GeometryKey (Key const &in_that) | |
GeometryKey (GeometryKey const &in_that) | |
GeometryKey (GeometryKey &&in_that) | |
GeometryKey & | operator= (GeometryKey const &in_that) |
GeometryKey & | operator= (GeometryKey &&in_that) |
GeometryKey & | SetPriority (int in_priority) |
GeometryKey & | SetUserData (intptr_t in_index, size_t in_bytes, byte const in_data[]) |
GeometryKey & | SetUserData (intptr_t in_index, ByteArray const &in_data) |
GeometryKey & | SetUserData (IntPtrTArray const &in_indices, ByteArrayArray const &in_data) |
bool | ShowBounding (BoundingKit &out_kit) const |
bool | ShowPriority (int &out_priority) const |
size_t | ShowReferrers (SegmentKeyArray &out_segments) const |
size_t | ShowReferrers (ReferenceKeyArray &out_references) const |
bool | ShowUserData (intptr_t in_index, ByteArray &out_data) const |
bool | ShowUserData (IntPtrTArray &out_indices, ByteArrayArray &out_data) const |
size_t | ShowUserDataCount () const |
bool | ShowUserDataIndices (IntPtrTArray &out_indices) const |
GeometryKey & | UnsetAllUserData () |
GeometryKey & | UnsetPriority () |
GeometryKey & | UnsetUserData (intptr_t in_index) |
GeometryKey & | UnsetUserData (size_t in_count, intptr_t const in_indices[]) |
GeometryKey & | UnsetUserData (IntPtrTArray const &in_indices) |
![]() | |
virtual void | Assign (Key const &in_that) |
Key | CopyTo (SegmentKey const &in_destination) const |
void | Delete () |
bool | Equals (Key const &in_that) const |
size_t | GetHash () const |
bool | HasOwner () const |
Key () | |
Key (Key const &in_that) | |
Key (Control const &in_control) | |
Key (Key &&in_that) | |
void | MoveTo (SegmentKey const &in_new_owner) |
bool | operator!= (Key const &in_that) const |
Key & | operator= (Key &&in_that) |
Key & | operator= (Key const &in_that) |
bool | operator== (Key const &in_that) const |
SegmentKey | Owner () const |
SegmentKey | Up () const |
virtual | ~Key () |
![]() | |
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 () |
HPS::Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The EllipticalArcKey class is a smart pointer to a database object. It is a handle to an elliptical arc inserted via SegmentKey::InsertEllipticalArc.
HPS::EllipticalArcKey::EllipticalArcKey | ( | ) |
The default constructor creates an uninitialized EllipticalArcKey object. The Type() function will return Type::None.
|
explicit |
This constructor creates an EllipticalArcKey object that shares the underlying smart-pointer of the source Key. The copy will only be successful if the source key is really an upcast of an EllipticalArc key. Otherwise the copy will fail and the resulting EllipticalArcKey will be invalid.
in_key | The source Key to copy. |
HPS::EllipticalArcKey::EllipticalArcKey | ( | EllipticalArcKey const & | in_that | ) |
The copy constructor creates an EllipticalArcKey object that shares the underlying smart-pointer of the source EllipticalArcKey.
in_that | The source EllipticalArcKey to copy. |
HPS::EllipticalArcKey::EllipticalArcKey | ( | EllipticalArcKey && | in_that | ) |
The move constructor creates an EllipticalArcKey by transferring the underlying impl of the rvalue reference to this EllipticalArcKey thereby avoiding a copy and allocation.
in_that | An rvalue reference to an EllipticalArcKey to take the impl from. |
void HPS::EllipticalArcKey::Consume | ( | EllipticalArcKit & | in_kit | ) |
Completely replaces all settings on this EllipticalArcKey with those set on the specified kit and resets the kit.
in_kit | The kit from which to get the settings to replace on this EllipticalArcKey. |
|
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::GeometryKey.
EllipticalArcKey& HPS::EllipticalArcKey::operator= | ( | EllipticalArcKey const & | other | ) |
Associate this EllipticalArcKey with the same underlying impl as the source EllipticalArcKey.
in_that | The source EllipticalArcKey for the assignment. |
EllipticalArcKey& HPS::EllipticalArcKey::operator= | ( | EllipticalArcKey && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this EllipticalArcKey thereby avoiding a copy.
in_that | An rvalue reference to an EllipticalArcKey to take the impl from. |
void HPS::EllipticalArcKey::Set | ( | EllipticalArcKit const & | in_kit | ) |
Replace those settings on this EllipticalArcKey with those set on the specified kit.
in_kit | The kit from which to get the settings to replace on this EllipticalArcKey. |
EllipticalArcKey& HPS::EllipticalArcKey::SetCenter | ( | Point const & | in_center | ) |
Sets the center point for the ellipse used to define the elliptcal arc.
in_center | The center point for the ellipse used to define the elliptical arc. |
EllipticalArcKey& HPS::EllipticalArcKey::SetEnd | ( | float | in_end | ) |
Sets the normalized parametric value on the ellipse at which the elliptical arc ends. The value should be in the range [0.0f,1.0f] and be larger than the start value. It is defined such that 0.0f is the point where the major axis intersects the ellipse, and as the value increases it passes through the point at which the minor axis intersects the ellipse (0.25f), and that 1.0f maps to the same point as 0.0f.
in_end | The noramlized parametric value on the ellipse at which the elliptical arc ends. This value should be in the range [0.0f,1.0f] and be larger than the start value. |
EllipticalArcKey& HPS::EllipticalArcKey::SetMajor | ( | Point const & | in_major | ) |
Sets the intersection point of the major axis and the ellipse used to define the elliptcal arc.
in_major | The intersection point of the major axis and the ellipse used to define the elliptical arc. |
EllipticalArcKey& HPS::EllipticalArcKey::SetMinor | ( | Point const & | in_minor | ) |
Sets the intersection point of the minor axis and the ellipse used to define the elliptcal arc.
in_minor | The intersection point of the minor axis and the ellipse used to define the elliptical arc. |
EllipticalArcKey& HPS::EllipticalArcKey::SetStart | ( | float | in_start | ) |
Sets the normalized parametric value on the ellipse at which the elliptical arc starts. The value should be in the range [0.0f,1.0f] and be smaller than the end value. It is defined such that 0.0f is the point where the major axis intersects the ellipse, and as the value increases it passes through the point at which the minor axis intersects the ellipse (0.25f), and that 1.0f maps to the same point as 0.0f.
in_start | The noramlized parametric value on the ellipse at which the elliptical arc starts. This value should be in the range [0.0f,1.0f] and be smaller than the end value. |
void HPS::EllipticalArcKey::Show | ( | EllipticalArcKit & | out_kit | ) | const |
Copy the contents of this EllipticalArcKey into the specified kit.
out_kit | The kit to populate with the contents of this EllipticalArcKey. |
bool HPS::EllipticalArcKey::ShowCenter | ( | Point & | out_center | ) | const |
Shows the center point for the ellipse used to define the elliptical arc.
out_center | The center point for the ellipse used to define the elliptical arc. |
bool HPS::EllipticalArcKey::ShowEnd | ( | float & | out_end | ) | const |
Shows the normalized parametric value on the ellipse at which the elliptical arc ends.
out_end | The noramlized parametric value on the ellipse at which the elliptical arc ends. |
bool HPS::EllipticalArcKey::ShowMajor | ( | Point & | out_major | ) | const |
Shows the intersection point of the major axis and the ellipse used to define the elliptcal arc.
out_major | The intersection point of the major axis and the ellipse used to define the elliptical arc. |
bool HPS::EllipticalArcKey::ShowMinor | ( | Point & | out_minor | ) | const |
Shows the intersection point of the minor axis and the ellipse used to define the elliptcal arc.
out_minor | The intersection point of the minor axis and the ellipse used to define the elliptical arc. |
bool HPS::EllipticalArcKey::ShowStart | ( | float & | out_start | ) | const |
Shows the normalized parametric value on the ellipse at which the elliptical arc starts.
out_start | The noramlized parametric value on the ellipse at which the elliptical arc starts. |