The HPS::BoundingKit class is a user space object, useful for carrying a group of attribute settings. More...
#include <hps.h>
Public Member Functions | |
BoundingKit () | |
Initializes an empty kit. More... | |
BoundingKit (BoundingKit const &in_kit) | |
The copy constructor creates a new BoundingKit object that contains the same settings as the source object. More... | |
BoundingKit (BoundingKit &&in_that) | |
The move constructor creates a BoundingKit by transferring the underlying impl of the rvalue reference to this BoundingKit thereby avoiding a copy and allocation. More... | |
BoundingKit & | operator= (BoundingKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this BoundingKit thereby avoiding a copy. More... | |
virtual | ~BoundingKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (BoundingKit const &in_kit) |
Copies all settings from the source BoundingKit into this object. More... | |
void | Show (BoundingKit &out_kit) const |
Copies all settings from this BoundingKit into the given BoundingKit. More... | |
BoundingKit & | operator= (BoundingKit const &in_kit) |
Copies the source BoundingKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (BoundingKit const &in_kit) const |
Check if the source BoundingKit is equivalent to this object. More... | |
bool | operator== (BoundingKit const &in_kit) const |
Check if the source BoundingKit is equivalent to this object. More... | |
bool | operator!= (BoundingKit const &in_kit) const |
Check if the source BoundingKit is not equivalent to this object. More... | |
BoundingKit & | SetVolume (SimpleSphere const &in_sphere) |
Explicitly sets the local bounding. More... | |
BoundingKit & | SetVolume (SimpleCuboid const &in_cuboid) |
Explicitly sets the local bounding. More... | |
BoundingKit & | SetExclusion (bool in_exclude) |
Controls whether this segment should be excluded when computing bounding volumes. More... | |
BoundingKit & | UnsetVolume () |
Removes an explicitly set bounding, reverting to the automatically generated one. More... | |
BoundingKit & | UnsetExclusion () |
Removes a bounding exclusion setting. More... | |
BoundingKit & | UnsetEverything () |
Removes all bounding settings from this object. More... | |
bool | ShowVolume (SimpleSphere &out_sphere, SimpleCuboid &out_cuboid) const |
Shows the bounding volume. More... | |
bool | ShowExclusion (bool &out_exclusion) const |
Shows the bounding exclusion setting. 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 BoundingKit | GetDefault () |
Creates a BoundingKit which contains the default settings. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::BoundingKit |
The HPS::BoundingKit class is a user space object, useful for carrying a group of attribute settings.
Calling HPS::BoundingKit::GetDefault() will return a kit with values found in this table.
HPS::BoundingKit::BoundingKit | ( | ) |
Initializes an empty kit.
HPS::BoundingKit::BoundingKit | ( | BoundingKit const & | in_kit | ) |
The copy constructor creates a new BoundingKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::BoundingKit::BoundingKit | ( | BoundingKit && | in_that | ) |
The move constructor creates a BoundingKit by transferring the underlying impl of the rvalue reference to this BoundingKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a BoundingKit to take the impl from. |
|
virtual |
Destroy this kit.
|
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 object has any values set on it.
Reimplemented from HPS::Object.
bool HPS::BoundingKit::Equals | ( | BoundingKit const & | in_kit | ) | const |
Check if the source BoundingKit is equivalent to this object.
in_kit | The source BoundingKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a BoundingKit which contains the default settings.
The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default.
|
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::BoundingKit::operator!= | ( | BoundingKit const & | in_kit | ) | const |
Check if the source BoundingKit is not equivalent to this object.
in_kit | The source BoundingKit to compare to this object. |
BoundingKit& HPS::BoundingKit::operator= | ( | BoundingKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this BoundingKit thereby avoiding a copy.
in_that | An rvalue reference to a BoundingKit to take the impl from. |
BoundingKit& HPS::BoundingKit::operator= | ( | BoundingKit const & | in_kit | ) |
Copies the source BoundingKit into this object.
in_kit | The source BoundingKit to copy. |
bool HPS::BoundingKit::operator== | ( | BoundingKit const & | in_kit | ) | const |
Check if the source BoundingKit is equivalent to this object.
in_kit | The source BoundingKit to compare to this object. |
|
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::BoundingKit::Set | ( | BoundingKit const & | in_kit | ) |
Copies all settings from the source BoundingKit into this object.
in_kit | The source BoundingKit to copy. |
BoundingKit& HPS::BoundingKit::SetExclusion | ( | bool | in_exclude | ) |
Controls whether this segment should be excluded when computing bounding volumes.
in_exclude | Whether to exclude this segment when computing bounding volumes. |
BoundingKit& HPS::BoundingKit::SetVolume | ( | SimpleSphere const & | in_sphere | ) |
Explicitly sets the local bounding.
in_sphere | The SimpleSphere to set the bounding volume to. |
BoundingKit& HPS::BoundingKit::SetVolume | ( | SimpleCuboid const & | in_cuboid | ) |
Explicitly sets the local bounding.
in_cuboid | The SimpleCuboid to set the bounding volume to. |
void HPS::BoundingKit::Show | ( | BoundingKit & | out_kit | ) | const |
Copies all settings from this BoundingKit into the given BoundingKit.
out_kit | The BoundingKit to populate with the contents of this object. |
bool HPS::BoundingKit::ShowExclusion | ( | bool & | out_exclusion | ) | const |
Shows the bounding exclusion setting.
out_exclusion | Whether to exclude this segment when computing bounding volumes. |
bool HPS::BoundingKit::ShowVolume | ( | SimpleSphere & | out_sphere, |
SimpleCuboid & | out_cuboid | ||
) | const |
Shows the bounding volume.
out_sphere | A sphere to show the volume into. If the bounding is not a sphere, this argument will be invalidated. |
out_cuboid | A cuboid to show the volume into. If the bounding is not a cuboid, this argument will be invalidated. |
|
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.
BoundingKit& HPS::BoundingKit::UnsetEverything | ( | ) |
Removes all bounding settings from this object.
BoundingKit& HPS::BoundingKit::UnsetExclusion | ( | ) |
Removes a bounding exclusion setting.
BoundingKit& HPS::BoundingKit::UnsetVolume | ( | ) |
Removes an explicitly set bounding, reverting to the automatically generated one.
|
static |