Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::SphereAttributeKit Class Reference

The HPS::SphereAttributeKit class is a user space object, useful for carrying a group attribute settings. More...

#include <hps.h>

Inheritance diagram for HPS::SphereAttributeKit:
Collaboration diagram for HPS::SphereAttributeKit:

Public Member Functions

 SphereAttributeKit ()
 Initializes an empty kit. More...
 
 SphereAttributeKit (SphereAttributeKit const &in_kit)
 The copy constructor creates a new SphereAttributeKit object that contains the same settings as the source object. More...
 
 SphereAttributeKit (SphereAttributeKit &&in_that)
 The move constructor creates a SphereAttributeKit by transferring the underlying impl of the rvalue reference to this SphereAttributeKit thereby avoiding a copy and allocation. More...
 
SphereAttributeKitoperator= (SphereAttributeKit &&in_that)
 The move assignment operator transfers the underlying impl of the rvalue reference to this SphereAttributeKit thereby avoiding a copy. More...
 
virtual ~SphereAttributeKit ()
 Destroy this kit. More...
 
HPS::Type ObjectType () const
 
void Set (SphereAttributeKit const &in_kit)
 Copies all settings from the source SphereAttributeKit into this object. More...
 
void Show (SphereAttributeKit &out_kit) const
 Copies all settings from this SphereAttributeKit into the given SphereAttributeKit. More...
 
SphereAttributeKitoperator= (SphereAttributeKit const &in_kit)
 Copies the source SphereAttributeKit into this object. More...
 
bool Empty () const
 Indicates whether this object has any values set on it. More...
 
bool Equals (SphereAttributeKit const &in_kit) const
 Check if the source SphereAttributeKit is equivalent to this object. More...
 
bool operator== (SphereAttributeKit const &in_kit) const
 Check if the source SphereAttributeKit is equivalent to this object. More...
 
bool operator!= (SphereAttributeKit const &in_kit) const
 Check if the source SphereAttributeKit is not equivalent to this object. More...
 
SphereAttributeKitSetTessellation (size_t in_facets)
 Sets the number of faces that should be generated around the equator of spheres. More...
 
SphereAttributeKitUnsetTessellation ()
 Removes the sphere tessellation setting. More...
 
SphereAttributeKitUnsetEverything ()
 Removes all settings from this object. More...
 
bool ShowTessellation (size_t &out_facets) const
 Shows the number of faces that should be generated around the equator of spheres. 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 SphereAttributeKit GetDefault ()
 Creates a SphereAttributeKit 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::SphereAttributeKit
 

Detailed Description

The HPS::SphereAttributeKit class is a user space object, useful for carrying a group attribute settings.

Calling HPS::SphereAttributeKit::GetDefault() will return a kit with values found in this table.

Constructor & Destructor Documentation

◆ SphereAttributeKit() [1/3]

HPS::SphereAttributeKit::SphereAttributeKit ( )

Initializes an empty kit.

◆ SphereAttributeKit() [2/3]

HPS::SphereAttributeKit::SphereAttributeKit ( SphereAttributeKit const &  in_kit)

The copy constructor creates a new SphereAttributeKit object that contains the same settings as the source object.

Parameters
in_kitThe source object to copy.

◆ SphereAttributeKit() [3/3]

HPS::SphereAttributeKit::SphereAttributeKit ( SphereAttributeKit &&  in_that)

The move constructor creates a SphereAttributeKit by transferring the underlying impl of the rvalue reference to this SphereAttributeKit thereby avoiding a copy and allocation.

Parameters
in_thatAn rvalue reference to a SphereAttributeKit to take the impl from.

◆ ~SphereAttributeKit()

virtual HPS::SphereAttributeKit::~SphereAttributeKit ( )
virtual

Destroy this kit.

Member Function Documentation

◆ ClassID()

template<typename T >
static intptr_t HPS::Object::ClassID ( )
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.

◆ Empty()

bool HPS::SphereAttributeKit::Empty ( ) const
virtual

Indicates whether this object has any values set on it.

Returns
true if no values are set on this object, false otherwise.

Reimplemented from HPS::Object.

◆ Equals()

bool HPS::SphereAttributeKit::Equals ( SphereAttributeKit const &  in_kit) const

Check if the source SphereAttributeKit is equivalent to this object.

Parameters
in_kitThe source SphereAttributeKit to compare to this object.
Returns
true if the objects are equivalent, false otherwise.

◆ GetClassID()

intptr_t HPS::Object::GetClassID ( ) const
inherited

Returns a unique identifier that is shared by all objects of the same class.

Returns
A unique value shared by all objects of the same class.

◆ GetDefault()

static SphereAttributeKit HPS::SphereAttributeKit::GetDefault ( )
static

Creates a SphereAttributeKit 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.

Returns
A SphereAttributeKit with the default settings.

◆ GetInstanceID()

intptr_t HPS::Object::GetInstanceID ( ) const
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.

Returns
A value unique to an instance of an object and all objects that are backed by the same database resource.

◆ HasType()

bool HPS::Object::HasType ( HPS::Type  in_mask) const
inherited

This function indicates whether this Object has the given Type mask.

Parameters
in_maskThe Type mask to check against this Object.
Returns
true if this Object has the given Type mask, false otherwise.

◆ ObjectType()

HPS::Type HPS::SphereAttributeKit::ObjectType ( ) const
inlinevirtual

Reimplemented from HPS::Kit.

Here is the call graph for this function:

◆ operator!=()

bool HPS::SphereAttributeKit::operator!= ( SphereAttributeKit const &  in_kit) const

Check if the source SphereAttributeKit is not equivalent to this object.

Parameters
in_kitThe source SphereAttributeKit to compare to this object.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator=() [1/2]

SphereAttributeKit& HPS::SphereAttributeKit::operator= ( SphereAttributeKit &&  in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this SphereAttributeKit thereby avoiding a copy.

Parameters
in_thatAn rvalue reference to a SphereAttributeKit to take the impl from.
Returns
A reference to this SphereAttributeKit.

◆ operator=() [2/2]

SphereAttributeKit& HPS::SphereAttributeKit::operator= ( SphereAttributeKit const &  in_kit)

Copies the source SphereAttributeKit into this object.

Parameters
in_kitThe source SphereAttributeKit to copy.
Returns
A reference to this object.

◆ operator==()

bool HPS::SphereAttributeKit::operator== ( SphereAttributeKit const &  in_kit) const

Check if the source SphereAttributeKit is equivalent to this object.

Parameters
in_kitThe source SphereAttributeKit to compare to this object.
Returns
true if the objects are equivalent, false otherwise.

◆ Reset()

◆ Set()

void HPS::SphereAttributeKit::Set ( SphereAttributeKit const &  in_kit)

Copies all settings from the source SphereAttributeKit into this object.

Parameters
in_kitThe source SphereAttributeKit to copy.

◆ SetTessellation()

SphereAttributeKit& HPS::SphereAttributeKit::SetTessellation ( size_t  in_facets)

Sets the number of faces that should be generated around the equator of spheres.

Parameters
in_facetsthe number of faces that should be generated around the equator of spheres.
Returns
A reference to this object.

◆ Show()

void HPS::SphereAttributeKit::Show ( SphereAttributeKit out_kit) const

Copies all settings from this SphereAttributeKit into the given SphereAttributeKit.

Parameters
out_kitThe SphereAttributeKit to populate with the contents of this object.

◆ ShowTessellation()

bool HPS::SphereAttributeKit::ShowTessellation ( size_t &  out_facets) const

Shows the number of faces that should be generated around the equator of spheres.

Parameters
out_facetsThe number of faces that should be generated around the equator of spheres.
Returns
true if the setting is valid, false otherwise.

◆ Type()

virtual HPS::Type HPS::Kit::Type ( ) const
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.

Returns
The true type of the object in question.

Reimplemented from HPS::Object.

◆ UnsetEverything()

SphereAttributeKit& HPS::SphereAttributeKit::UnsetEverything ( )

Removes all settings from this object.

Returns
A reference to this object.

◆ UnsetTessellation()

SphereAttributeKit& HPS::SphereAttributeKit::UnsetTessellation ( )

Removes the sphere tessellation setting.

Returns
A reference to this object.

Member Data Documentation

◆ staticType

const HPS::Type HPS::SphereAttributeKit::staticType = HPS::Type::SphereAttributeKit
static

The documentation for this class was generated from the following file: