The TessellationOptionsKit class is a user space object. More...
#include <sprk_exchange.h>
Public Member Functions | |
TessellationOptionsKit () | |
The default constructor creates an empty TessellationOptionsKit object. More... | |
TessellationOptionsKit (TessellationOptionsKit const &in_kit) | |
The copy constructor creates a new TessellationOptionsKit object that contains the same settings as the source TessellationOptionsKit. More... | |
TessellationOptionsKit (TessellationOptionsKit &&in_that) | |
The move constructor creates an TessellationOptionsKit by transferring the underlying object of the rvalue reference to this TessellationOptionsKit. More... | |
virtual | ~TessellationOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (TessellationOptionsKit const &in_kit) |
Copies the source TessellationOptionsKit into this TessellationOptionsKit. More... | |
void | Show (TessellationOptionsKit &out_kit) const |
Copies this TessellationOptionsKit into the given TessellationOptionsKit. More... | |
TessellationOptionsKit & | operator= (TessellationOptionsKit const &in_kit) |
Copies the source TessellationOptionsKit into this TessellationOptionsKit. More... | |
TessellationOptionsKit & | operator= (TessellationOptionsKit &&in_that) |
The move assignment operator transfers the underlying object of the rvalue reference to this TessellationOptionsKit. More... | |
bool | Empty () const |
Indicates whether this TessellationOptionsKit has any values set on it. More... | |
bool | Equals (TessellationOptionsKit const &in_kit) const |
Check if the source TessellationOptionsKit is equivalent to this TessellationOptionsKit. More... | |
bool | operator== (TessellationOptionsKit const &in_kit) const |
Check if the source TessellationOptionsKit is equivalent to this TessellationOptionsKit. More... | |
bool | operator!= (TessellationOptionsKit const &in_kit) const |
Check if the source TessellationOptionsKit is not equivalent to this TessellationOptionsKit. More... | |
TessellationOptionsKit & | SetLevel (Tessellation::Level in_level) |
Sets the predefined quality of the tessellation that will be generated for BRep data. More... | |
TessellationOptionsKit & | SetLevel (Tessellation::Chord::Limit in_limit_type, double in_limit, double in_angle_tolerance) |
Sets the user defined quality of the tessellation that will be generated for BRep data. More... | |
TessellationOptionsKit & | SetAccuracy (Tessellation::Accuracy in_type, bool in_accurate_normals=true) |
Sets the accuracy of the tessellation that will be generated for BRep data. More... | |
TessellationOptionsKit & | SetUVPointPreservation (bool in_state) |
Sets whether to keep parametric points as texture coordinates when generating the tessellation for BRep data. More... | |
TessellationOptionsKit & | SetMaximumEdgeLength (double in_length) |
Sets the maximum length of triangle edges in the tessellation generated for BRep data. More... | |
TessellationOptionsKit & | UnsetLevel () |
Removes the level setting. More... | |
TessellationOptionsKit & | UnsetAccuracy () |
Removes the accuracy setting. More... | |
TessellationOptionsKit & | UnsetUVPointPreservation () |
Removes the UV preservation setting. More... | |
TessellationOptionsKit & | UnsetMaximumEdgeLength () |
Removes the maximum edge length setting. More... | |
TessellationOptionsKit & | UnsetEverything () |
Removes all settings from this TessellationOptionsKit. More... | |
bool | ShowLevel (Tessellation::Type &out_type, Tessellation::Level &out_level, Tessellation::Chord::Limit &out_limit_type, double &out_limit, double &out_angle_tolerance) const |
Shows the level setting. More... | |
bool | ShowAccuracy (Tessellation::Accuracy &out_type, bool &out_accurate_normals) const |
Shows the accuracy setting. More... | |
bool | ShowUVPointPreservation (bool &out_state) const |
Shows the UV preservation setting. More... | |
bool | ShowMaximumEdgeLength (double &out_length) const |
Shows the maximum edge length setting. 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 TessellationOptionsKit | GetDefault () |
Creates an TessellationOptionsKit 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::ExchangeTessellationOptionsKit |
The TessellationOptionsKit class is a user space object.
It contains settings controlling how STL data is exported via Exchange.
HPS::Exchange::TessellationOptionsKit::TessellationOptionsKit | ( | ) |
The default constructor creates an empty TessellationOptionsKit object.
HPS::Exchange::TessellationOptionsKit::TessellationOptionsKit | ( | TessellationOptionsKit const & | in_kit | ) |
The copy constructor creates a new TessellationOptionsKit object that contains the same settings as the source TessellationOptionsKit.
in_kit | The source TessellationOptionsKit to copy. |
HPS::Exchange::TessellationOptionsKit::TessellationOptionsKit | ( | TessellationOptionsKit && | in_that | ) |
The move constructor creates an TessellationOptionsKit by transferring the underlying object of the rvalue reference to this TessellationOptionsKit.
in_that | An rvalue reference to an TessellationOptionsKit to take the underlying object 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.
|
virtual |
Indicates whether this TessellationOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Exchange::TessellationOptionsKit::Equals | ( | TessellationOptionsKit const & | in_kit | ) | const |
Check if the source TessellationOptionsKit is equivalent to this TessellationOptionsKit.
in_kit | The source TessellationOptionsKit to compare to this TessellationOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates an TessellationOptionsKit 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. These values will be used for import unless an option is overridden by the options passed to File::Tessellation.
|
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::Exchange::TessellationOptionsKit::operator!= | ( | TessellationOptionsKit const & | in_kit | ) | const |
Check if the source TessellationOptionsKit is not equivalent to this TessellationOptionsKit.
in_kit | The source TessellationOptionsKit to compare to this TessellationOptionsKit. |
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::operator= | ( | TessellationOptionsKit const & | in_kit | ) |
Copies the source TessellationOptionsKit into this TessellationOptionsKit.
in_kit | The source TessellationOptionsKit to copy. |
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::operator= | ( | TessellationOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying object of the rvalue reference to this TessellationOptionsKit.
in_that | An rvalue reference to an TessellationOptionsKit to take the underlying object from. |
bool HPS::Exchange::TessellationOptionsKit::operator== | ( | TessellationOptionsKit const & | in_kit | ) | const |
Check if the source TessellationOptionsKit is equivalent to this TessellationOptionsKit.
in_kit | The source TessellationOptionsKit to compare to this TessellationOptionsKit. |
|
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::Exchange::TessellationOptionsKit::Set | ( | TessellationOptionsKit const & | in_kit | ) |
Copies the source TessellationOptionsKit into this TessellationOptionsKit.
in_kit | The source TessellationOptionsKit to copy. |
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::SetAccuracy | ( | Tessellation::Accuracy | in_type, |
bool | in_accurate_normals = true |
||
) |
Sets the accuracy of the tessellation that will be generated for BRep data.
in_type | The accuracy to use for tessellation generation. |
in_accurate_normals | Whether to compute surface normals when performing accurate tessellation. This only applies if in_type is set to Tessellation::Accuracy::Accurate. This correspond to the (negated) value that will be passed to A3DRWParamsTessellationData::m_bDoNotComputeNormalsInAccurateTessellation. |
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::SetLevel | ( | Tessellation::Level | in_level | ) |
Sets the predefined quality of the tessellation that will be generated for BRep data.
This corresponds to the value that will be passed to A3DRWParamsTessellationData::m_eTessellationLevelOfDetail.
in_level | The predefined quality of the tessellation that will be generated for BRep data. |
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::SetLevel | ( | Tessellation::Chord::Limit | in_limit_type, |
double | in_limit, | ||
double | in_angle_tolerance | ||
) |
Sets the user defined quality of the tessellation that will be generated for BRep data.
This implicitly sets A3DRWParamsTessellationData::m_eTessellationLevel to kA3DTessLODUserDefined.
in_limit_type | The type of the chord limit to be specified. |
in_limit | Either the ratio of the tessellation chord height to the bounding box height which should be in the range [50, 10000], or the maximum distance between the surface definition and the tessellation approximation, depending on the preceding argument. |
in_angle_tolerance | The maximum angle in degrees between two consecutive wire elements in the generated tessellation which should be in the range [10, 40]. This corresponds to the value that will be passed to A3DRWParamsTessellationData::m_dAngleToleranceDeg. |
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::SetMaximumEdgeLength | ( | double | in_length | ) |
Sets the maximum length of triangle edges in the tessellation generated for BRep data.
This corresponds to the value that will be passed to A3DRWParamsTessellationData::m_dMaximalTriangleEdgeLength.
in_length | The maximum length of triangle edges in the tessellation generated for BRep data. The value must be non-negative, and if set to 0.0, the length will not be used when generating the tessellation. |
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::SetUVPointPreservation | ( | bool | in_state | ) |
Sets whether to keep parametric points as texture coordinates when generating the tessellation for BRep data.
This corresponds to the value that will be passed to A3DRWParamsTessellationData::m_bKeepUVPoints.
in_state | Whether to keep parametric points as texture coordinates when generating the tessellation for BRep data. |
void HPS::Exchange::TessellationOptionsKit::Show | ( | TessellationOptionsKit & | out_kit | ) | const |
Copies this TessellationOptionsKit into the given TessellationOptionsKit.
out_kit | The TessellationOptionsKit to populate with the contents of this TessellationOptionsKit. |
bool HPS::Exchange::TessellationOptionsKit::ShowAccuracy | ( | Tessellation::Accuracy & | out_type, |
bool & | out_accurate_normals | ||
) | const |
Shows the accuracy setting.
out_type | The type of the accuracy which was specified. |
out_accurate_normals | Whether to compute surface normals when performing accurate tessellation. This only applies if out_type is Tessellation::Accuracy::Accurate. |
bool HPS::Exchange::TessellationOptionsKit::ShowLevel | ( | Tessellation::Type & | out_type, |
Tessellation::Level & | out_level, | ||
Tessellation::Chord::Limit & | out_limit_type, | ||
double & | out_limit, | ||
double & | out_angle_tolerance | ||
) | const |
Shows the level setting.
out_type | The type of the level setting which was specified. |
out_level | The predefined quality of the tessellation that will be generated for BRep data. This is only valid if out_type is Tessellation::Type::Standard. |
out_limit_type | The type of chord limit which was specified. This is only valid if out_type is Tessellation::Type::Custom. |
out_limit | The chord limit to use to generate tessellation for BRep data. Its interpretation depends on the preceding argument. This is only valid if out_type is Tessellation::Type::Custom. |
out_angle_tolerance | The maximum angle in degrees between two consecutive wire elements in the generated tessellation. This is only valid if out_type is Tessellation::Type::Custom. |
bool HPS::Exchange::TessellationOptionsKit::ShowMaximumEdgeLength | ( | double & | out_length | ) | const |
Shows the maximum edge length setting.
out_length | The maximum edge length setting. |
bool HPS::Exchange::TessellationOptionsKit::ShowUVPointPreservation | ( | bool & | out_state | ) | const |
Shows the UV preservation setting.
out_state | Whether to keep parametric points as texture coordinates when generating the tessellation for BRep data. |
|
virtualinherited |
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 in HPS::UpdateOptionsControl, HPS::HighlightControl, HPS::SelectionOptionsControl, HPS::OffScreenWindowOptionsControl, HPS::ApplicationWindowOptionsControl, HPS::StandAloneWindowOptionsControl, HPS::AttributeLockControl, HPS::WindowInfoControl, HPS::DebuggingControl, HPS::SubwindowControl, HPS::ContourLineControl, HPS::VisualEffectsControl, HPS::TransformMaskControl, HPS::PostProcessEffectsControl, HPS::DrawingAttributeControl, HPS::HiddenLineAttributeControl, HPS::PerformanceControl, HPS::NURBSSurfaceAttributeControl, HPS::ConditionControl, HPS::StyleControl, HPS::PortfolioControl, HPS::MaterialMappingControl, HPS::TextureMatrixControl, HPS::ModellingMatrixControl, HPS::CurveAttributeControl, HPS::EdgeAttributeControl, HPS::LineAttributeControl, HPS::TextAttributeControl, HPS::CuttingSectionAttributeControl, HPS::CylinderAttributeControl, HPS::LightingAttributeControl, HPS::SphereAttributeControl, HPS::MarkerAttributeControl, HPS::CullingControl, HPS::ColorInterpolationControl, HPS::TransparencyControl, HPS::SelectabilityControl, HPS::CameraControl, HPS::VisibilityControl, HPS::BoundingControl, HPS::Kit, and HPS::Control.
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::UnsetAccuracy | ( | ) |
Removes the accuracy setting.
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this TessellationOptionsKit.
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::UnsetLevel | ( | ) |
Removes the level setting.
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::UnsetMaximumEdgeLength | ( | ) |
Removes the maximum edge length setting.
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::UnsetUVPointPreservation | ( | ) |
Removes the UV preservation setting.
|
static |