The ShapeKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
ShapeKit () | |
The default constructor creates an empty ShapeKit object. More... | |
ShapeKit (ShapeKit const &in_kit) | |
The copy constructor creates a new ShapeKit object that contains the same settings as the source ShapeKit. More... | |
ShapeKit (ShapeKit &&in_that) | |
The move constructor creates a ShapeKit by transferring the underlying impl of the rvalue reference to this ShapeKit thereby avoiding a copy and allocation. More... | |
ShapeKit & | operator= (ShapeKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ShapeKit thereby avoiding a copy. More... | |
virtual | ~ShapeKit () |
HPS::Type | ObjectType () const |
void | Set (ShapeKit const &in_kit) |
Copies the source ShapeKit into this ShapeKit. More... | |
void | Show (ShapeKit &out_kit) const |
Copies this ShapeKit into the given ShapeKit. More... | |
ShapeKit & | operator= (ShapeKit const &in_kit) |
Copies the source ShapeKit into this ShapeKit. More... | |
bool | Empty () const |
Indicates whether this ShapeKit has any values set on it. More... | |
bool | Equals (ShapeKit const &in_kit) const |
Check if the source ShapeKit is equivalent to this ShapeKit. More... | |
bool | operator== (ShapeKit const &in_kit) const |
Check if the source ShapeKit is equivalent to this ShapeKit. More... | |
bool | operator!= (ShapeKit const &in_kit) const |
Check if the source ShapeKit is not equivalent to this ShapeKit. More... | |
ShapeKit & | SetElements (ShapeElementArray const &in_def) |
Sets the elements for this ShapeKit. More... | |
ShapeKit & | SetElements (size_t in_count, ShapeElement const in_def []) |
Sets the elements for this ShapeKit. More... | |
ShapeKit & | SetElement (ShapeElement const &in_element) |
Set a single element for this ShapeKit. More... | |
ShapeKit & | UnsetElements () |
Removes the elements for the shape. More... | |
ShapeKit & | UnsetEverything () |
Removes all settings from this ShapeKit. More... | |
bool | ShowElements (ShapeElementArray &out_def) const |
Shows the elements for this ShapeKit. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
static HPS::ShapeKit | GetDefault (Shape::Default in_default_shape) |
Creates a ShapeKit which contains the definition of the specified default shape. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::ShapeKit |
The ShapeKit class is a user space object.
It is used for specifying all settings related to a ShapeDefinition.
HPS::ShapeKit::ShapeKit | ( | ) |
The default constructor creates an empty ShapeKit object.
HPS::ShapeKit::ShapeKit | ( | ShapeKit const & | in_kit | ) |
HPS::ShapeKit::ShapeKit | ( | ShapeKit && | in_that | ) |
|
virtual |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this ShapeKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::ShapeKit::Equals | ( | ShapeKit const & | in_kit | ) | const |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::ShapeKit::operator!= | ( | ShapeKit const & | in_kit | ) | const |
bool HPS::ShapeKit::operator== | ( | ShapeKit const & | in_kit | ) | const |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::ShapeKit::Set | ( | ShapeKit const & | in_kit | ) |
ShapeKit& HPS::ShapeKit::SetElement | ( | ShapeElement const & | in_element | ) |
Set a single element for this ShapeKit.
This must be specified when defining a shape.
in_element | A reference to the ShapeElement to set on this kit. |
ShapeKit& HPS::ShapeKit::SetElements | ( | ShapeElementArray const & | in_def | ) |
ShapeKit& HPS::ShapeKit::SetElements | ( | size_t | in_count, |
ShapeElement const | in_def[] | ||
) |
void HPS::ShapeKit::Show | ( | ShapeKit & | out_kit | ) | const |
bool HPS::ShapeKit::ShowElements | ( | ShapeElementArray & | out_def | ) | const |
Shows the elements for this ShapeKit.
out_def | The elements for the shape. |
|
inlinevirtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented from HPS::Object.
ShapeKit& HPS::ShapeKit::UnsetElements | ( | ) |
Removes the elements for the shape.
ShapeKit& HPS::ShapeKit::UnsetEverything | ( | ) |
|
static |