The HPS::CylinderAttributeKit class is a user space object, useful for carrying a group attribute settings. More...
#include <hps.h>
Public Member Functions | |
CylinderAttributeKit () | |
Initializes an empty kit. More... | |
CylinderAttributeKit (CylinderAttributeKit const &in_kit) | |
The copy constructor creates a new CylinderAttributeKit object that contains the same settings as the source object. More... | |
CylinderAttributeKit (CylinderAttributeKit &&in_that) | |
The move constructor creates a CylinderAttributeKit by transferring the underlying impl of the rvalue reference to this CylinderAttributeKit thereby avoiding a copy and allocation. More... | |
CylinderAttributeKit & | operator= (CylinderAttributeKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CylinderAttributeKit thereby avoiding a copy. More... | |
virtual | ~CylinderAttributeKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (CylinderAttributeKit const &in_kit) |
Copies all settings from the source CylinderAttributeKit into this object. More... | |
void | Show (CylinderAttributeKit &out_kit) const |
Copies all settings from this CylinderAttributeKit into the given CylinderAttributeKit. More... | |
CylinderAttributeKit & | operator= (CylinderAttributeKit const &in_kit) |
Copies the source CylinderAttributeKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (CylinderAttributeKit const &in_kit) const |
Check if the source CylinderAttributeKit is equivalent to this object. More... | |
bool | operator== (CylinderAttributeKit const &in_kit) const |
Check if the source CylinderAttributeKit is equivalent to this object. More... | |
bool | operator!= (CylinderAttributeKit const &in_kit) const |
Check if the source CylinderAttributeKit is not equivalent to this object. More... | |
CylinderAttributeKit & | SetTessellation (size_t in_facets) |
Sets the number of faces that should be generated around cylinders. More... | |
CylinderAttributeKit & | SetOrientation (Cylinder::Orientation in_adjust) |
Sets the orientation of colors and radii of cylinders. More... | |
CylinderAttributeKit & | UnsetTessellation () |
Removes the cylinder tessellation setting. More... | |
CylinderAttributeKit & | UnsetOrientation () |
Removes the cylinder orientation setting. More... | |
CylinderAttributeKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowTessellation (size_t &out_facets) const |
Shows the number of faces that should be generated around cylinders. More... | |
bool | ShowOrientation (Cylinder::Orientation &out_orientation) const |
Shows the orientation of colors and radii of cylinders. 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 CylinderAttributeKit | GetDefault () |
Creates a CylinderAttributeKit 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::CylinderAttributeKit |
The HPS::CylinderAttributeKit class is a user space object, useful for carrying a group attribute settings.
Calling HPS::CylinderAttributeKit::GetDefault() will return a kit with values found in this table.
HPS::CylinderAttributeKit::CylinderAttributeKit | ( | ) |
Initializes an empty kit.
HPS::CylinderAttributeKit::CylinderAttributeKit | ( | CylinderAttributeKit const & | in_kit | ) |
The copy constructor creates a new CylinderAttributeKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::CylinderAttributeKit::CylinderAttributeKit | ( | CylinderAttributeKit && | in_that | ) |
The move constructor creates a CylinderAttributeKit by transferring the underlying impl of the rvalue reference to this CylinderAttributeKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a CylinderAttributeKit 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::CylinderAttributeKit::Equals | ( | CylinderAttributeKit const & | in_kit | ) | const |
Check if the source CylinderAttributeKit is equivalent to this object.
in_kit | The source CylinderAttributeKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a CylinderAttributeKit 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::CylinderAttributeKit::operator!= | ( | CylinderAttributeKit const & | in_kit | ) | const |
Check if the source CylinderAttributeKit is not equivalent to this object.
in_kit | The source CylinderAttributeKit to compare to this object. |
CylinderAttributeKit& HPS::CylinderAttributeKit::operator= | ( | CylinderAttributeKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CylinderAttributeKit thereby avoiding a copy.
in_that | An rvalue reference to a CylinderAttributeKit to take the impl from. |
CylinderAttributeKit& HPS::CylinderAttributeKit::operator= | ( | CylinderAttributeKit const & | in_kit | ) |
Copies the source CylinderAttributeKit into this object.
in_kit | The source CylinderAttributeKit to copy. |
bool HPS::CylinderAttributeKit::operator== | ( | CylinderAttributeKit const & | in_kit | ) | const |
Check if the source CylinderAttributeKit is equivalent to this object.
in_kit | The source CylinderAttributeKit 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::CylinderAttributeKit::Set | ( | CylinderAttributeKit const & | in_kit | ) |
Copies all settings from the source CylinderAttributeKit into this object.
in_kit | The source CylinderAttributeKit to copy. |
CylinderAttributeKit& HPS::CylinderAttributeKit::SetOrientation | ( | Cylinder::Orientation | in_adjust | ) |
Sets the orientation of colors and radii of cylinders.
This can be used to invert the order of the radii and/or colors of all cylinders in a segment without editing each one.
in_orientation | The orientation of colors and radii of cylinders. |
CylinderAttributeKit& HPS::CylinderAttributeKit::SetTessellation | ( | size_t | in_facets | ) |
Sets the number of faces that should be generated around cylinders.
in_facets | the number of faces that should be generated around cylinders. |
void HPS::CylinderAttributeKit::Show | ( | CylinderAttributeKit & | out_kit | ) | const |
Copies all settings from this CylinderAttributeKit into the given CylinderAttributeKit.
out_kit | The CylinderAttributeKit to populate with the contents of this object. |
bool HPS::CylinderAttributeKit::ShowOrientation | ( | Cylinder::Orientation & | out_orientation | ) | const |
Shows the orientation of colors and radii of cylinders.
out_orientation | The orientation of colors and radii of cylinders. |
bool HPS::CylinderAttributeKit::ShowTessellation | ( | size_t & | out_facets | ) | const |
Shows the number of faces that should be generated around cylinders.
out_facets | The number of faces that should be generated around cylinders |
|
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.
CylinderAttributeKit& HPS::CylinderAttributeKit::UnsetEverything | ( | ) |
Removes all settings from this object.
CylinderAttributeKit& HPS::CylinderAttributeKit::UnsetOrientation | ( | ) |
Removes the cylinder orientation setting.
CylinderAttributeKit& HPS::CylinderAttributeKit::UnsetTessellation | ( | ) |
Removes the cylinder tessellation setting.
|
static |