The HPS::Exchange::TranslationOptionsKit class is a user space object. More...
#include <sprk_exchange.h>
Public Member Functions | |
TranslationOptionsKit () | |
The default constructor creates an empty TranslationOptionsKit object. More... | |
TranslationOptionsKit (TranslationOptionsKit const &in_kit) | |
The copy constructor creates a new TranslationOptionsKit object that contains the same settings as the source TranslationOptionsKit. More... | |
TranslationOptionsKit (TranslationOptionsKit &&in_that) | |
The move constructor creates a TranslationOptionsKit by transferring the underlying impl of the rvalue reference to this TranslationOptionsKit thereby avoiding a copy and allocation. More... | |
TranslationOptionsKit & | operator= (TranslationOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TranslationOptionsKit thereby avoiding a copy. More... | |
virtual | ~TranslationOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (TranslationOptionsKit const &in_kit) |
Copies the source TranslationOptionsKit into this TranslationOptionsKit. More... | |
void | Show (TranslationOptionsKit &out_kit) const |
Copies this TranslationOptionsKit into the given TranslationOptionsKit. More... | |
TranslationOptionsKit & | operator= (TranslationOptionsKit const &in_kit) |
Copies the source TranslationOptionsKit into this TranslationOptionsKit. More... | |
bool | Empty () const |
Indicates whether this TranslationOptionsKit has any values set on it. More... | |
bool | Equals (TranslationOptionsKit const &in_kit) const |
Check if the source TranslationOptionsKit is equivalent to this TranslationOptionsKit. More... | |
bool | operator== (TranslationOptionsKit const &in_kit) const |
Check if the source TranslationOptionsKit is equivalent to this TranslationOptionsKit. More... | |
bool | operator!= (TranslationOptionsKit const &in_kit) const |
Check if the source TranslationOptionsKit is not equivalent to this TranslationOptionsKit. More... | |
TranslationOptionsKit & | SetSolidsAsFaces (bool in_state) |
Sets whether to convert solids to a set of independent faces for export. More... | |
TranslationOptionsKit & | SetTessellation (bool in_state) |
Sets whether to export tessellation data. More... | |
TranslationOptionsKit & | SetHiddenObjects (bool in_state) |
Sets whether to export hidden objects. More... | |
TranslationOptionsKit & | SetApplication (char const *in_name) |
Sets the application name to put in the Parasolid data. More... | |
TranslationOptionsKit & | SetVersion (char const *in_version) |
Sets the version string to put in the Parasolid data. More... | |
TranslationOptionsKit & | SetHealing (Translation::Healing in_healing) |
Sets whether healing will be performed as part of the translation. More... | |
TranslationOptionsKit & | SetAccurateEdges (Translation::AccurateEdges in_accurate_edges) |
Sets whether accurate edges will be computed as part of the translation. More... | |
TranslationOptionsKit & | SetSimplification (Translation::Simplification in_simplification) |
Sets whether geometry can be simplified as part of the translation. More... | |
TranslationOptionsKit & | SetEntityMerging (Translation::Merging in_merging) |
Sets whether entities can be merged as part of the translation. More... | |
TranslationOptionsKit & | SetSewing (bool in_state, double in_tolerance=0.0) |
Sets whether perform sewing as part of the translation. More... | |
TranslationOptionsKit & | SetDisjointFaces (bool in_state) |
Sets whether erroneous faces can be disjointed from their solids as part of the translation. More... | |
TranslationOptionsKit & | UnsetSolidsAsFaces () |
Removes the solids to faces conversion setting. More... | |
TranslationOptionsKit & | UnsetTessellation () |
Removes the tessellation export setting. More... | |
TranslationOptionsKit & | UnsetHiddenObjects () |
Removes the hidden objects export setting. More... | |
TranslationOptionsKit & | UnsetApplication () |
Removes the application name setting. More... | |
TranslationOptionsKit & | UnsetVersion () |
Removes the version string setting. More... | |
TranslationOptionsKit & | UnsetHealing () |
Removes the healing setting. More... | |
TranslationOptionsKit & | UnsetAccurateEdges () |
Removes the accurate edges setting. More... | |
TranslationOptionsKit & | UnsetSimplification () |
Removes the simplification setting. More... | |
TranslationOptionsKit & | UnsetEntityMerging () |
Removes the merging setting. More... | |
TranslationOptionsKit & | UnsetSewing () |
Removes the sewing setting. More... | |
TranslationOptionsKit & | UnsetDisjointFaces () |
Removes the disjoin faces setting. More... | |
TranslationOptionsKit & | UnsetEverything () |
Removes all settings from this TranslationOptionsKit. More... | |
bool | ShowSolidsAsFaces (bool &out_state) const |
Shows the solids to faces conversion setting. More... | |
bool | ShowTessellation (bool &out_state) const |
Shows the tessellation translation setting. More... | |
bool | ShowHiddenObjects (bool &out_state) const |
Shows the hidden object translation setting. More... | |
bool | ShowApplication (UTF8 &out_name) const |
Shows the application name setting. More... | |
bool | ShowVersion (UTF8 &out_version) const |
Shows the version string setting. More... | |
bool | ShowHealing (Translation::Healing &out_healing) const |
Shows the healing setting. More... | |
bool | ShowAccurateEdges (Translation::AccurateEdges &out_accurate_edges) const |
Shows the accurate edges setting. More... | |
bool | ShowSimplification (Translation::Simplification &out_simplification) const |
Shows the simplification setting. More... | |
bool | ShowEntityMerging (Translation::Merging &out_merging) const |
Shows the merging setting. More... | |
bool | ShowSewing (bool &out_state, double &out_tolerance) const |
Shows the sewing setting. More... | |
bool | ShowDisjointFaces (bool &out_state) const |
Shows the disjoin faces setting. More... | |
TranslationOptionsKit & | SetMultiProcessCount (unsigned int in_count) |
Sets the number of processes to use when performing translation. More... | |
TranslationOptionsKit & | UnsetMultiProcessCount () |
Removes the multi-process count setting. More... | |
bool | ShowMultiProcessCount (unsigned int &out_count) const |
Shows the multi-process count 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 TranslationOptionsKit | GetDefault () |
Creates a TranslationOptionsKit 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::ExchangeTranslationOptionsKit |
The HPS::Exchange::TranslationOptionsKit class is a user space object.
It contains settings controlling what and how data is translated to Parasolid by Exchange. Calling HPS::Exchange::TranslationOptionsKit::GetDefault() will return an options kit with values found in here.
HPS::Exchange::TranslationOptionsKit::TranslationOptionsKit | ( | ) |
The default constructor creates an empty TranslationOptionsKit object.
HPS::Exchange::TranslationOptionsKit::TranslationOptionsKit | ( | TranslationOptionsKit const & | in_kit | ) |
The copy constructor creates a new TranslationOptionsKit object that contains the same settings as the source TranslationOptionsKit.
in_kit | The source TranslationOptionsKit to copy. |
HPS::Exchange::TranslationOptionsKit::TranslationOptionsKit | ( | TranslationOptionsKit && | in_that | ) |
The move constructor creates a TranslationOptionsKit by transferring the underlying impl of the rvalue reference to this TranslationOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to an TranslationOptionsKit 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.
|
virtual |
Indicates whether this TranslationOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Exchange::TranslationOptionsKit::Equals | ( | TranslationOptionsKit const & | in_kit | ) | const |
Check if the source TranslationOptionsKit is equivalent to this TranslationOptionsKit.
in_kit | The source TranslationOptionsKit to compare to this TranslationOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a TranslationOptionsKit 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 translation unless an option is overridden by the options passed to one of the Translate functions.
|
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::TranslationOptionsKit::operator!= | ( | TranslationOptionsKit const & | in_kit | ) | const |
Check if the source TranslationOptionsKit is not equivalent to this TranslationOptionsKit.
in_kit | The source TranslationOptionsKit to compare to this TranslationOptionsKit. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::operator= | ( | TranslationOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TranslationOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to an TranslationOptionsKit to take the impl from. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::operator= | ( | TranslationOptionsKit const & | in_kit | ) |
Copies the source TranslationOptionsKit into this TranslationOptionsKit.
in_kit | The source TranslationOptionsKit to copy. |
bool HPS::Exchange::TranslationOptionsKit::operator== | ( | TranslationOptionsKit const & | in_kit | ) | const |
Check if the source TranslationOptionsKit is equivalent to this TranslationOptionsKit.
in_kit | The source TranslationOptionsKit to compare to this TranslationOptionsKit. |
|
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::TranslationOptionsKit::Set | ( | TranslationOptionsKit const & | in_kit | ) |
Copies the source TranslationOptionsKit into this TranslationOptionsKit.
in_kit | The source TranslationOptionsKit to copy. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetAccurateEdges | ( | Translation::AccurateEdges | in_accurate_edges | ) |
Sets whether accurate edges will be computed as part of the translation.
This corresponds to the value that will be passed to A3DRWParamsTranslateToPkPartsData::m_eComputeAccurateEdges.
in_accurate_edges | Whether to compute accurate edges. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetApplication | ( | char const * | in_name | ) |
Sets the application name to put in the Parasolid data.
This corresponds to the value that will be passed to A3DRWParamsExportParasolidData::m_pcApplication.
in_name | UTF8-encoded application name to put in the Parasolid data. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetDisjointFaces | ( | bool | in_state | ) |
Sets whether erroneous faces can be disjointed from their solids as part of the translation.
This corresponds to the value that will be passed to A3DRWParamsTranslateToPkPartsData::m_bDisjoinIfFaceFaceError.
in_state | Whether to disjoin erroneous faces from their owning solids. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetEntityMerging | ( | Translation::Merging | in_merging | ) |
Sets whether entities can be merged as part of the translation.
This corresponds to the value that will be passed to A3DRWParamsTranslateToPkPartsData::m_eMergeEntities.
in_merging | Whether to merge entities. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetHealing | ( | Translation::Healing | in_healing | ) |
Sets whether healing will be performed as part of the translation.
This corresponds to the value that will be passed to A3DRWParamsTranslateToPkPartsData::m_eHealing.
in_healing | Whether to perform healing. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetHiddenObjects | ( | bool | in_state | ) |
Sets whether to export hidden objects.
This corresponds to the value that will be passed to A3DRWParamsExportParasolidData::m_bWriteBlankedEntities.
in_state | Whether to export hidden objects. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetMultiProcessCount | ( | unsigned int | in_count | ) |
Sets the number of processes to use when performing translation.
This should be a value between 1 and the number of cores on your system.
in_count | The number of processes to use when performing translation. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetSewing | ( | bool | in_state, |
double | in_tolerance = 0.0 |
||
) |
Sets whether perform sewing as part of the translation.
in_state | Whether to perform sewing. |
in_tolerance | The sewing tolerance in millimeters. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetSimplification | ( | Translation::Simplification | in_simplification | ) |
Sets whether geometry can be simplified as part of the translation.
This corresponds to the value that will be passed to A3DRWParamsTranslateToPkPartsData::m_eSimplifyGeometry.
in_simplification | Whether to simplify geometry. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetSolidsAsFaces | ( | bool | in_state | ) |
Sets whether to convert solids to a set of independent faces for export.
This corresponds to the value that will be passed to A3DRWParamsExportIgesData::m_bSaveSolidsAsFaces.
in_state | Whether to convert solids to a set of independent faces for export. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetTessellation | ( | bool | in_state | ) |
Sets whether to export tessellation data.
This corresponds to the value that will be passed to A3DRWParamsExportParasolidData::m_bWriteTessellation.
in_state | Whether to export tessellation data. |
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::SetVersion | ( | char const * | in_version | ) |
Sets the version string to put in the Parasolid data.
This corresponds to the value that will be passed to A3DRWParamsExportParasolidData::m_pcVersion.
in_version | UTF8-encoded version string to put in the Parasolid data. |
void HPS::Exchange::TranslationOptionsKit::Show | ( | TranslationOptionsKit & | out_kit | ) | const |
Copies this TranslationOptionsKit into the given TranslationOptionsKit.
out_kit | The TranslationOptionsKit to populate with the contents of this TranslationOptionsKit. |
bool HPS::Exchange::TranslationOptionsKit::ShowAccurateEdges | ( | Translation::AccurateEdges & | out_accurate_edges | ) | const |
Shows the accurate edges setting.
out_accurate_edges | Whether to compute accurate edges for translation. |
bool HPS::Exchange::TranslationOptionsKit::ShowApplication | ( | UTF8 & | out_name | ) | const |
Shows the application name setting.
out_name | The application name to put in the Parasolid data. |
bool HPS::Exchange::TranslationOptionsKit::ShowDisjointFaces | ( | bool & | out_state | ) | const |
Shows the disjoin faces setting.
out_state | Whether to disjoin erroneous faces from their owning solids. |
bool HPS::Exchange::TranslationOptionsKit::ShowEntityMerging | ( | Translation::Merging & | out_merging | ) | const |
Shows the merging setting.
out_merging | Whether to merge entities for translation. |
bool HPS::Exchange::TranslationOptionsKit::ShowHealing | ( | Translation::Healing & | out_healing | ) | const |
Shows the healing setting.
out_healing | Whether to heal data for translation. |
bool HPS::Exchange::TranslationOptionsKit::ShowHiddenObjects | ( | bool & | out_state | ) | const |
Shows the hidden object translation setting.
out_state | Whether to translate hidden objects. |
bool HPS::Exchange::TranslationOptionsKit::ShowMultiProcessCount | ( | unsigned int & | out_count | ) | const |
Shows the multi-process count setting.
out_count | The number of processes to use when performing translation. |
bool HPS::Exchange::TranslationOptionsKit::ShowSewing | ( | bool & | out_state, |
double & | out_tolerance | ||
) | const |
Shows the sewing setting.
out_state | Whether to perform sewing for translation. |
out_tolerance | The sewing tolerance. Only valid if out_state is true. |
bool HPS::Exchange::TranslationOptionsKit::ShowSimplification | ( | Translation::Simplification & | out_simplification | ) | const |
Shows the simplification setting.
out_simplification | Whether to simplify geometry for translation. |
bool HPS::Exchange::TranslationOptionsKit::ShowSolidsAsFaces | ( | bool & | out_state | ) | const |
Shows the solids to faces conversion setting.
out_state | Whether to convert solids to a set of independent faces for translation. |
bool HPS::Exchange::TranslationOptionsKit::ShowTessellation | ( | bool & | out_state | ) | const |
Shows the tessellation translation setting.
out_state | Whether to export tessellation data. |
bool HPS::Exchange::TranslationOptionsKit::ShowVersion | ( | UTF8 & | out_version | ) | const |
Shows the version string setting.
out_version | The version string to put in the Parasolid 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.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetAccurateEdges | ( | ) |
Removes the accurate edges setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetApplication | ( | ) |
Removes the application name setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetDisjointFaces | ( | ) |
Removes the disjoin faces setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetEntityMerging | ( | ) |
Removes the merging setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this TranslationOptionsKit.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetHealing | ( | ) |
Removes the healing setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetHiddenObjects | ( | ) |
Removes the hidden objects export setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetMultiProcessCount | ( | ) |
Removes the multi-process count setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetSewing | ( | ) |
Removes the sewing setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetSimplification | ( | ) |
Removes the simplification setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetSolidsAsFaces | ( | ) |
Removes the solids to faces conversion setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetTessellation | ( | ) |
Removes the tessellation export setting.
TranslationOptionsKit& HPS::Exchange::TranslationOptionsKit::UnsetVersion | ( | ) |
Removes the version string setting.
|
static |