#include <hps.h>

Public Member Functions | |
HPS::Type | ObjectType () const |
SphereAttributeControl & | operator= (SphereAttributeControl &&in_that) |
SphereAttributeControl & | operator= (SphereAttributeControl const &in_that) |
SphereAttributeControl & | SetTessellation (size_t in_facets) |
bool | ShowTessellation (size_t &out_facets) const |
SphereAttributeControl (SegmentKey const &in_seg) | |
SphereAttributeControl (SphereAttributeControl const &in_that) | |
SphereAttributeControl (SphereAttributeControl &&in_that) | |
SphereAttributeControl & | UnsetEverything () |
SphereAttributeControl & | UnsetTessellation () |
~SphereAttributeControl () | |
![]() | |
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 () |
![]() | |
Control (Control &&in_that) | |
Control & | operator= (Control &&in_that) |
Detailed Description
The HPS::SphereAttributeControl class is a smart pointer that is tied to a database object. This control gives you access to the tessellation value for spheres. This table lists default values for the various segment attributes accessible from HPS::SphereAttributeControl.
Constructor & Destructor Documentation
|
explicit |
Initializes a control tied to the segment in_seg.
HPS::SphereAttributeControl::SphereAttributeControl | ( | SphereAttributeControl const & | in_that | ) |
Initializes a control tied to the same object as in_that.
HPS::SphereAttributeControl::SphereAttributeControl | ( | SphereAttributeControl && | in_that | ) |
The move constructor creates a SphereAttributeControl by transferring the underlying impl of the rvalue reference to this SphereAttributeControl thereby avoiding a copy and allocation.
- Parameters
-
in_that An rvalue reference to a SphereAttributeControl to take the impl from.
HPS::SphereAttributeControl::~SphereAttributeControl | ( | ) |
Releases a reference to the database object this control is tied to.
Member Function Documentation
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
- Returns
- The declared type of the object in question, which may differ from the true, underlying type.
Reimplemented from HPS::Control.
SphereAttributeControl& HPS::SphereAttributeControl::operator= | ( | SphereAttributeControl && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this SphereAttributeControl thereby avoiding a copy.
- Parameters
-
in_that An rvalue reference to a SphereAttributeControl to take the impl from.
- Returns
- A reference to this SphereAttributeControl.
SphereAttributeControl& HPS::SphereAttributeControl::operator= | ( | SphereAttributeControl const & | in_that | ) |
Share the underlying smart-pointer of the SphereAttributeControl source.
- Parameters
-
in_that The SphereAttributeControl source of the assignment.
- Returns
- A reference to this SphereAttributeControl.
SphereAttributeControl& HPS::SphereAttributeControl::SetTessellation | ( | size_t | in_facets | ) |
Sets the number of faces that should be generated around the equator of spheres.
- Parameters
-
in_facets the number of faces that should be generated around the equator of spheres.
- Returns
- A reference to this object.
- See also
- Sphere tessellation default value
bool HPS::SphereAttributeControl::ShowTessellation | ( | size_t & | out_facets | ) | const |
Shows the number of faces that should be generated around the equator of spheres.
- Parameters
-
out_facets The number of faces that should be generated around the equator of spheres.
- Returns
- true if the setting is valid, false otherwise.
SphereAttributeControl& HPS::SphereAttributeControl::UnsetEverything | ( | ) |
Removes all settings from this object.
- Returns
- A reference to this object.
SphereAttributeControl& HPS::SphereAttributeControl::UnsetTessellation | ( | ) |
Removes the sphere tessellation setting.
- Returns
- A reference to this object.
The documentation for this class was generated from the following file:
- include/hps.h