The ShellOptimizationOptionsKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
ShellOptimizationOptionsKit () | |
The default constructor creates an empty ShellOptimizationOptionsKit object. More... | |
ShellOptimizationOptionsKit (ShellOptimizationOptionsKit const &in_kit) | |
The copy constructor creates a new ShellOptimizationOptionsKit object that contains the same settings as the source ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit (ShellOptimizationOptionsKit &&in_that) | |
The move constructor creates a ShellOptimizationOptionsKit by transferring the underlying impl of the rvalue reference to this ShellOptimizationOptionsKit thereby avoiding a copy and allocation. More... | |
virtual | ~ShellOptimizationOptionsKit () |
HPS::Type | ObjectType () const |
void | Consume (ShellOptimizationOptionsKit &in_kit) |
Copies the source ShellOptimizationOptionsKit into this ShellOptimizationOptionsKit and resets the source kit. More... | |
void | Set (ShellOptimizationOptionsKit const &in_kit) |
Copies the source ShellOptimizationOptionsKit into this ShellOptimizationOptionsKit. More... | |
void | Show (ShellOptimizationOptionsKit &out_kit) const |
Copies this ShellOptimizationOptionsKit into the given ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit & | operator= (ShellOptimizationOptionsKit const &in_kit) |
Copies the source ShellOptimizationOptionsKit into this ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit & | operator= (ShellOptimizationOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ShellOptimizationOptionsKit thereby avoiding a copy. More... | |
bool | Empty () const |
Indicates whether this ShellOptimizationOptionsKit has any values set on it. More... | |
bool | Equals (ShellOptimizationOptionsKit const &in_kit) const |
Check if the source ShellOptimizationOptionsKit is equivalent to this ShellOptimizationOptionsKit. More... | |
bool | operator== (ShellOptimizationOptionsKit const &in_kit) const |
Check if the source ShellOptimizationOptionsKit is equivalent to this ShellOptimizationOptionsKit. More... | |
bool | operator!= (ShellOptimizationOptionsKit const &in_kit) const |
Check if the source ShellOptimizationOptionsKit is not equivalent to this ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit & | SetNormalTolerance (float in_normal_tolerance) |
Sets the tolerance to use when deciding if two normals can be merged. More... | |
ShellOptimizationOptionsKit & | SetTolerance (float in_tolerance, Shell::ToleranceUnits in_tolerance_units) |
Sets the tolerance to use when deciding if two vertices can be merged. More... | |
ShellOptimizationOptionsKit & | SetOrphanElimination (bool in_orphan_elimination) |
Sets whether orphan elimination can be used during optimization. More... | |
ShellOptimizationOptionsKit & | SetHandednessOptimization (Shell::HandednessOptimization in_handedness_option) |
Sets whether the optimization procedure should impact the shell's face handedness, and if so, in which way. More... | |
ShellOptimizationOptionsKit & | UnsetNormalTolerance () |
Removes the normal tolerance value for this ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit & | UnsetTolerance () |
Removes the tolerance value for this ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit & | UnsetOrphanElimination () |
Removes the orphan elimination value for this ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit & | UnsetHandednessOptimization () |
Removes the fix handedness value for this ShellOptimizationOptionsKit. More... | |
ShellOptimizationOptionsKit & | UnsetEverything () |
Removes all settings from this ShellOptimizationOptionsKit. More... | |
bool | ShowNormalTolerance (float &out_normal_tolerance) const |
Shows the value of the normal tolerance for this ShellOptimizationOptionsKit. More... | |
bool | ShowTolerance (float &out_tolerance, Shell::ToleranceUnits &out_tolerance_units) const |
Shows the value of the tolerance and its units for this ShellOptimizationOptionsKit. More... | |
bool | ShowOrphanElimination (bool &out_orphan_elimination) const |
Shows the value of orphan elimination for this ShellOptimizationOptionsKit. More... | |
bool | ShowHandednessOptimization (Shell::HandednessOptimization &out_handedness_option) const |
Shows the value of the handedness options for this ShellOptimizationOptionsKit. 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 ShellOptimizationOptionsKit | GetDefault () |
Creates a ShellOptimizationOptionsKit 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::ShellOptimizationOptionsKit |
The ShellOptimizationOptionsKit class is a user space object.
It is used for setting options for a shell optimization operation. Calling HPS::ShellOptimizationOptionsKit::GetDefault() will return an options kit with values found in this table.
HPS::ShellOptimizationOptionsKit::ShellOptimizationOptionsKit | ( | ) |
The default constructor creates an empty ShellOptimizationOptionsKit object.
HPS::ShellOptimizationOptionsKit::ShellOptimizationOptionsKit | ( | ShellOptimizationOptionsKit const & | in_kit | ) |
The copy constructor creates a new ShellOptimizationOptionsKit object that contains the same settings as the source ShellOptimizationOptionsKit.
in_kit | The source ShellOptimizationOptionsKit to copy. |
HPS::ShellOptimizationOptionsKit::ShellOptimizationOptionsKit | ( | ShellOptimizationOptionsKit && | in_that | ) |
The move constructor creates a ShellOptimizationOptionsKit by transferring the underlying impl of the rvalue reference to this ShellOptimizationOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a ShellOptimizationOptionsKit to take the impl from. |
|
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.
void HPS::ShellOptimizationOptionsKit::Consume | ( | ShellOptimizationOptionsKit & | in_kit | ) |
Copies the source ShellOptimizationOptionsKit into this ShellOptimizationOptionsKit and resets the source kit.
in_kit | The source ShellOptimizationOptionsKit to consume. |
|
virtual |
Indicates whether this ShellOptimizationOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::ShellOptimizationOptionsKit::Equals | ( | ShellOptimizationOptionsKit const & | in_kit | ) | const |
Check if the source ShellOptimizationOptionsKit is equivalent to this ShellOptimizationOptionsKit.
in_kit | The source ShellOptimizationOptionsKit to compare to this ShellOptimizationOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a ShellOptimizationOptionsKit 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::ShellOptimizationOptionsKit::operator!= | ( | ShellOptimizationOptionsKit const & | in_kit | ) | const |
Check if the source ShellOptimizationOptionsKit is not equivalent to this ShellOptimizationOptionsKit.
in_kit | The source ShellOptimizationOptionsKit to compare to this ShellOptimizationOptionsKit. |
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::operator= | ( | ShellOptimizationOptionsKit const & | in_kit | ) |
Copies the source ShellOptimizationOptionsKit into this ShellOptimizationOptionsKit.
in_kit | The source ShellOptimizationOptionsKit to copy. |
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::operator= | ( | ShellOptimizationOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ShellOptimizationOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to a ShellOptimizationOptionsKit to take the impl from. |
bool HPS::ShellOptimizationOptionsKit::operator== | ( | ShellOptimizationOptionsKit const & | in_kit | ) | const |
Check if the source ShellOptimizationOptionsKit is equivalent to this ShellOptimizationOptionsKit.
in_kit | The source ShellOptimizationOptionsKit to compare to this ShellOptimizationOptionsKit. |
|
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::ShellOptimizationOptionsKit::Set | ( | ShellOptimizationOptionsKit const & | in_kit | ) |
Copies the source ShellOptimizationOptionsKit into this ShellOptimizationOptionsKit.
in_kit | The source ShellOptimizationOptionsKit to copy. |
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::SetHandednessOptimization | ( | Shell::HandednessOptimization | in_handedness_option | ) |
Sets whether the optimization procedure should impact the shell's face handedness, and if so, in which way.
in_handedness_optimization | Whether handedness should be altered during optimization. |
in_handedness_option | Whether the faces' handedness should be fixed or reversed. |
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::SetNormalTolerance | ( | float | in_normal_tolerance | ) |
Sets the tolerance to use when deciding if two normals can be merged.
in_normal_tolerance | The tolerance to use during optimization, specified in degrees. |
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::SetOrphanElimination | ( | bool | in_orphan_elimination | ) |
Sets whether orphan elimination can be used during optimization.
Orphan elimination removes points that are not referenced by any face.
in_orphan_elimination | Whether orphaned points can be eliminated during optimization. |
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::SetTolerance | ( | float | in_tolerance, |
Shell::ToleranceUnits | in_tolerance_units | ||
) |
Sets the tolerance to use when deciding if two vertices can be merged.
in_tolerance | The tolerance to use during optimization. |
in_tolerance_units | The units in_tolerance is specified in. |
void HPS::ShellOptimizationOptionsKit::Show | ( | ShellOptimizationOptionsKit & | out_kit | ) | const |
Copies this ShellOptimizationOptionsKit into the given ShellOptimizationOptionsKit.
out_kit | The ShellOptimizationOptionsKit to populate with the contents of this ShellOptimizationOptionsKit. |
bool HPS::ShellOptimizationOptionsKit::ShowHandednessOptimization | ( | Shell::HandednessOptimization & | out_handedness_option | ) | const |
Shows the value of the handedness options for this ShellOptimizationOptionsKit.
out_handedness_optimization | The handedness optimization value for this ShellOptimizationOptionsKit. |
out_handedness_option | The handedness option value for this ShellOptimizationOptionsKit. |
bool HPS::ShellOptimizationOptionsKit::ShowNormalTolerance | ( | float & | out_normal_tolerance | ) | const |
Shows the value of the normal tolerance for this ShellOptimizationOptionsKit.
out_normal_tolerance | The normal tolerance for this ShellOptimizationOptionsKit. |
bool HPS::ShellOptimizationOptionsKit::ShowOrphanElimination | ( | bool & | out_orphan_elimination | ) | const |
Shows the value of orphan elimination for this ShellOptimizationOptionsKit.
out_orphan_elimination | The orphan elimination value for this ShellOptimizationOptionsKit. |
bool HPS::ShellOptimizationOptionsKit::ShowTolerance | ( | float & | out_tolerance, |
Shell::ToleranceUnits & | out_tolerance_units | ||
) | const |
Shows the value of the tolerance and its units for this ShellOptimizationOptionsKit.
out_tolerance | The tolerance for this ShellOptimizationOptionsKit. |
out_tolerance_units | The units out_tolerance is specified in. |
|
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.
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this ShellOptimizationOptionsKit.
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::UnsetHandednessOptimization | ( | ) |
Removes the fix handedness value for this ShellOptimizationOptionsKit.
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::UnsetNormalTolerance | ( | ) |
Removes the normal tolerance value for this ShellOptimizationOptionsKit.
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::UnsetOrphanElimination | ( | ) |
Removes the orphan elimination value for this ShellOptimizationOptionsKit.
ShellOptimizationOptionsKit& HPS::ShellOptimizationOptionsKit::UnsetTolerance | ( | ) |
Removes the tolerance value for this ShellOptimizationOptionsKit.
|
static |