The HPS::CuttingSectionAttributeKit class is a user space object which encapsulates a set of attributes pertaining to cutting sections. More...
#include <hps.h>
Public Member Functions | |
CuttingSectionAttributeKit () | |
Initializes an empty kit. More... | |
CuttingSectionAttributeKit (CuttingSectionAttributeKit const &in_kit) | |
The copy constructor creates a new CuttingSectionAttributeKit object that contains the same settings as the source object. More... | |
CuttingSectionAttributeKit (CuttingSectionAttributeKit &&in_that) | |
The move constructor creates a CuttingSectionAttributeKit by transferring the underlying impl of the rvalue reference to this CuttingSectionAttributeKit thereby avoiding a copy and allocation. More... | |
CuttingSectionAttributeKit & | operator= (CuttingSectionAttributeKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CuttingSectionAttributeKit thereby avoiding a copy. More... | |
virtual | ~CuttingSectionAttributeKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (CuttingSectionAttributeKit const &in_kit) |
Copies all settings from the source CuttingSectionAttributeKit into this object. More... | |
void | Show (CuttingSectionAttributeKit &out_kit) const |
Copies all settings from this CuttingSectionAttributeKit into the given CuttingSectionAttributeKit. More... | |
CuttingSectionAttributeKit & | operator= (CuttingSectionAttributeKit const &in_kit) |
Copies the source CuttingSectionAttributeKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (CuttingSectionAttributeKit const &in_kit) const |
Check if the source CuttingSectionAttributeKit is equivalent to this object. More... | |
bool | operator== (CuttingSectionAttributeKit const &in_kit) const |
Check if the source CuttingSectionAttributeKit is equivalent to this object. More... | |
bool | operator!= (CuttingSectionAttributeKit const &in_kit) const |
Check if the source CuttingSectionAttributeKit is not equivalent to this object. More... | |
CuttingSectionAttributeKit & | SetEdgeWeight (float in_weight, Line::SizeUnits in_units=Line::SizeUnits::ScaleFactor) |
Sets the cut edge weight. More... | |
CuttingSectionAttributeKit & | SetTolerance (float in_tolerance, CuttingSection::ToleranceUnits in_units) |
Sets the tolerance for closing loops when processing capping faces. More... | |
CuttingSectionAttributeKit & | SetCuttingLevel (CuttingSection::CuttingLevel in_level) |
Sets the cutting section cutting level. More... | |
CuttingSectionAttributeKit & | SetCappingLevel (CuttingSection::CappingLevel in_level) |
Sets the cutting section capping level. More... | |
CuttingSectionAttributeKit & | SetMaterialPreference (CuttingSection::MaterialPreference in_preference) |
Sets the material preference for cut geometry. More... | |
CuttingSectionAttributeKit & | UnsetEdgeWeight () |
Removes the cutting section cut edge weight setting. More... | |
CuttingSectionAttributeKit & | UnsetTolerance () |
Removes the cutting section capping tolerance setting. More... | |
CuttingSectionAttributeKit & | UnsetCuttingLevel () |
Removes the cutting section cutting level setting. More... | |
CuttingSectionAttributeKit & | UnsetCappingLevel () |
Removes the cutting section capping level setting. More... | |
CuttingSectionAttributeKit & | UnsetMaterialPreference () |
Removes the material preference for cut geometry setting. More... | |
CuttingSectionAttributeKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowCuttingLevel (CuttingSection::CuttingLevel &out_level) const |
Shows the cutting section cutting level setting. More... | |
bool | ShowCappingLevel (CuttingSection::CappingLevel &out_level) const |
Shows the cutting section capping level setting. More... | |
bool | ShowMaterialPreference (CuttingSection::MaterialPreference &out_preference) const |
Shows the orientation of colors and radii of cylinders. More... | |
bool | ShowEdgeWeight (float &out_weight, Line::SizeUnits &out_units) const |
Shows the weight of cut edges. More... | |
bool | ShowTolerance (float &out_tolerance, CuttingSection::ToleranceUnits &out_units) const |
Shows the tolerance for closing loops when processing capping faces. 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 CuttingSectionAttributeKit | GetDefault () |
Creates a CuttingSectionAttributeKit 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::CuttingSectionAttributeKit |
The HPS::CuttingSectionAttributeKit class is a user space object which encapsulates a set of attributes pertaining to cutting sections.
Calling HPS::CuttingSectionAttributeKit::GetDefault() will return a kit with values found in this table.
HPS::CuttingSectionAttributeKit::CuttingSectionAttributeKit | ( | ) |
Initializes an empty kit.
HPS::CuttingSectionAttributeKit::CuttingSectionAttributeKit | ( | CuttingSectionAttributeKit const & | in_kit | ) |
The copy constructor creates a new CuttingSectionAttributeKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::CuttingSectionAttributeKit::CuttingSectionAttributeKit | ( | CuttingSectionAttributeKit && | in_that | ) |
The move constructor creates a CuttingSectionAttributeKit by transferring the underlying impl of the rvalue reference to this CuttingSectionAttributeKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a CuttingSectionAttributeKit 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::CuttingSectionAttributeKit::Equals | ( | CuttingSectionAttributeKit const & | in_kit | ) | const |
Check if the source CuttingSectionAttributeKit is equivalent to this object.
in_kit | The source CuttingSectionAttributeKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a CuttingSectionAttributeKit 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::CuttingSectionAttributeKit::operator!= | ( | CuttingSectionAttributeKit const & | in_kit | ) | const |
Check if the source CuttingSectionAttributeKit is not equivalent to this object.
in_kit | The source CuttingSectionAttributeKit to compare to this object. |
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::operator= | ( | CuttingSectionAttributeKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CuttingSectionAttributeKit thereby avoiding a copy.
in_that | An rvalue reference to a CuttingSectionAttributeKit to take the impl from. |
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::operator= | ( | CuttingSectionAttributeKit const & | in_kit | ) |
Copies the source CuttingSectionAttributeKit into this object.
in_kit | The source CuttingSectionAttributeKit to copy. |
bool HPS::CuttingSectionAttributeKit::operator== | ( | CuttingSectionAttributeKit const & | in_kit | ) | const |
Check if the source CuttingSectionAttributeKit is equivalent to this object.
in_kit | The source CuttingSectionAttributeKit 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::CuttingSectionAttributeKit::Set | ( | CuttingSectionAttributeKit const & | in_kit | ) |
Copies all settings from the source CuttingSectionAttributeKit into this object.
in_kit | The source CuttingSectionAttributeKit to copy. |
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::SetCappingLevel | ( | CuttingSection::CappingLevel | in_level | ) |
Sets the cutting section capping level.
in_level | The cutting section capping level. |
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::SetCuttingLevel | ( | CuttingSection::CuttingLevel | in_level | ) |
Sets the cutting section cutting level.
in_level | The cutting section cutting level. |
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::SetEdgeWeight | ( | float | in_weight, |
Line::SizeUnits | in_units = Line::SizeUnits::ScaleFactor |
||
) |
Sets the cut edge weight.
in_weight | The edge weight to apply for cut edges. |
in_units | The units of the weight given. |
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::SetMaterialPreference | ( | CuttingSection::MaterialPreference | in_preference | ) |
Sets the material preference for cut geometry.
in_preference | The material preference for cut geometry. |
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::SetTolerance | ( | float | in_tolerance, |
CuttingSection::ToleranceUnits | in_units | ||
) |
Sets the tolerance for closing loops when processing capping faces.
in_tolerance | The tolerance to use. |
in_units | How to interpret the given tolerance. |
void HPS::CuttingSectionAttributeKit::Show | ( | CuttingSectionAttributeKit & | out_kit | ) | const |
Copies all settings from this CuttingSectionAttributeKit into the given CuttingSectionAttributeKit.
out_kit | The CuttingSectionAttributeKit to populate with the contents of this object. |
bool HPS::CuttingSectionAttributeKit::ShowCappingLevel | ( | CuttingSection::CappingLevel & | out_level | ) | const |
Shows the cutting section capping level setting.
out_level | The cutting section capping level. |
bool HPS::CuttingSectionAttributeKit::ShowCuttingLevel | ( | CuttingSection::CuttingLevel & | out_level | ) | const |
Shows the cutting section cutting level setting.
out_level | The cutting section cutting level. |
bool HPS::CuttingSectionAttributeKit::ShowEdgeWeight | ( | float & | out_weight, |
Line::SizeUnits & | out_units | ||
) | const |
Shows the weight of cut edges.
out_weight | The weight value for cut edges. |
out_units | The units applied to in_weight. |
bool HPS::CuttingSectionAttributeKit::ShowMaterialPreference | ( | CuttingSection::MaterialPreference & | out_preference | ) | const |
Shows the orientation of colors and radii of cylinders.
out_preference | The material preference for cut geometry. |
bool HPS::CuttingSectionAttributeKit::ShowTolerance | ( | float & | out_tolerance, |
CuttingSection::ToleranceUnits & | out_units | ||
) | const |
Shows the tolerance for closing loops when processing capping faces.
out_tolerance | The tolerance to use. |
out_units | The units for the tolerance. |
|
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.
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::UnsetCappingLevel | ( | ) |
Removes the cutting section capping level setting.
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::UnsetCuttingLevel | ( | ) |
Removes the cutting section cutting level setting.
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::UnsetEdgeWeight | ( | ) |
Removes the cutting section cut edge weight setting.
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::UnsetEverything | ( | ) |
Removes all settings from this object.
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::UnsetMaterialPreference | ( | ) |
Removes the material preference for cut geometry setting.
CuttingSectionAttributeKit& HPS::CuttingSectionAttributeKit::UnsetTolerance | ( | ) |
Removes the cutting section capping tolerance setting.
|
static |