The ImportOptionsKit class is a user space object. More...
#include <sprk_parasolid.h>
Public Member Functions | |
ImportOptionsKit () | |
The default constructor creates an empty ImportOptionsKit object. More... | |
ImportOptionsKit (ImportOptionsKit const &in_kit) | |
The copy constructor creates a new ImportOptionsKit object that contains the same settings as the source ImportOptionsKit. More... | |
ImportOptionsKit (ImportOptionsKit &&in_that) | |
The move constructor creates an ImportOptionsKit by transferring the underlying impl of the rvalue reference to this ImportOptionsKit thereby avoiding a copy and allocation. More... | |
ImportOptionsKit & | operator= (ImportOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ImportOptionsKit thereby avoiding a copy. More... | |
virtual | ~ImportOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (ImportOptionsKit const &in_kit) |
Copies the source ImportOptionsKit into this ImportOptionsKit. More... | |
void | Show (ImportOptionsKit &out_kit) const |
Copies this ImportOptionsKit into the given ImportOptionsKit. More... | |
ImportOptionsKit & | operator= (ImportOptionsKit const &in_kit) |
Copies the source ImportOptionsKit into this ImportOptionsKit. More... | |
bool | Empty () const |
Indicates whether this ImportOptionsKit has any values set on it. More... | |
bool | Equals (ImportOptionsKit const &in_kit) const |
Check if the source ImportOptionsKit is equivalent to this ImportOptionsKit. More... | |
bool | operator== (ImportOptionsKit const &in_kit) const |
Check if the source ImportOptionsKit is equivalent to this ImportOptionsKit. More... | |
bool | operator!= (ImportOptionsKit const &in_kit) const |
Check if the source ImportOptionsKit is not equivalent to this ImportOptionsKit. More... | |
ImportOptionsKit & | SetFormat (Parasolid::Format in_format) |
Sets the format type to be imported. More... | |
ImportOptionsKit & | SetUserFields (bool in_import_user_fields) |
Sets whether to import user fields from the CAD file. More... | |
ImportOptionsKit & | SetAttributeMismatchBehavior (Parasolid::MismatchBehavior in_behavior) |
Sets the importer behavior for mismatched attributes. More... | |
ImportOptionsKit & | SetCompoundBodyBehavior (Parasolid::CompoundBodyBehavior in_behavior) |
Sets the importer behavior for compound bodies. More... | |
ImportOptionsKit & | SetFacetTessellation (Parasolid::FacetTessellationKit const &in_facet_tessellation_kit) |
Sets the facet tessellation settings used during import This corresponds to the PK_TOPOL_render_facet_o_t struct. More... | |
ImportOptionsKit & | SetLineTessellation (Parasolid::LineTessellationKit const &in_line_tessellation_kit) |
Sets the line tessellation settings used during import This corresponds to the PK_TOPOL_render_line_o_t struct. More... | |
ImportOptionsKit & | SetLocation (ComponentPath const &in_path, MatrixKit const &in_transform=MatrixKit()) |
Sets where to insert the imported file in an existing Component hierarchy. More... | |
ImportOptionsKit & | UnsetFormat () |
Removes the format import state. More... | |
ImportOptionsKit & | UnsetUserFields () |
Removes the user fields import state. More... | |
ImportOptionsKit & | UnsetAttributeMismatchBehavior () |
Removes the attribute mismatch behavior state. More... | |
ImportOptionsKit & | UnsetCompoundBodyBehavior () |
Removes the compound body behavior state. More... | |
ImportOptionsKit & | UnsetFacetTessellation () |
Removes the facet tessellation state. More... | |
ImportOptionsKit & | UnsetLineTessellation () |
Removes the line tessellation state. More... | |
ImportOptionsKit & | UnsetLocation () |
Removes the location state. More... | |
ImportOptionsKit & | UnsetEverything () |
Removes all settings from this ImportOptionsKit. More... | |
bool | ShowFormat (Parasolid::Format &out_format) const |
Shows the format import setting. More... | |
bool | ShowUserFields (bool &out_user_fields) const |
Shows the user fields import setting. More... | |
bool | ShowAttributeMismatchBehavior (Parasolid::MismatchBehavior &out_behavior) const |
Shows the attribute mismatch behavior import setting. More... | |
bool | ShowCompoundBodyBehavior (Parasolid::CompoundBodyBehavior &out_behavior) const |
Shows the compound body behavior import setting. More... | |
bool | ShowFacetTessellation (Parasolid::FacetTessellationKit &out_facet_tessellation) const |
Shows the facet tessellation import setting. More... | |
bool | ShowLineTessellation (Parasolid::LineTessellationKit &out_line_tessellation) const |
Shows the line tessellation import setting. More... | |
bool | ShowLocation (ComponentPath &out_path, MatrixKit &out_transformation) const |
Shows the location 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 ImportOptionsKit | GetDefault () |
Creates an ImportOptionsKit 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::ParasolidImportOptionsKit |
The ImportOptionsKit class is a user space object.
It contains settings controlling what and how data is imported via the Parasolid interface. Calling HPS::Parasolid::ImportOptionsKit::GetDefault() will return an options kit with values found in here.
HPS::Parasolid::ImportOptionsKit::ImportOptionsKit | ( | ) |
The default constructor creates an empty ImportOptionsKit object.
HPS::Parasolid::ImportOptionsKit::ImportOptionsKit | ( | ImportOptionsKit const & | in_kit | ) |
The copy constructor creates a new ImportOptionsKit object that contains the same settings as the source ImportOptionsKit.
in_kit | The source ImportOptionsKit to copy. |
HPS::Parasolid::ImportOptionsKit::ImportOptionsKit | ( | ImportOptionsKit && | in_that | ) |
The move constructor creates an ImportOptionsKit by transferring the underlying impl of the rvalue reference to this ImportOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to an ImportOptionsKit 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 ImportOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Parasolid::ImportOptionsKit::Equals | ( | ImportOptionsKit const & | in_kit | ) | const |
Check if the source ImportOptionsKit is equivalent to this ImportOptionsKit.
in_kit | The source ImportOptionsKit to compare to this ImportOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates an ImportOptionsKit 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::Import.
|
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::Parasolid::ImportOptionsKit::operator!= | ( | ImportOptionsKit const & | in_kit | ) | const |
Check if the source ImportOptionsKit is not equivalent to this ImportOptionsKit.
in_kit | The source ImportOptionsKit to compare to this ImportOptionsKit. |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::operator= | ( | ImportOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ImportOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to an ImportOptionsKit to take the impl from. |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::operator= | ( | ImportOptionsKit const & | in_kit | ) |
Copies the source ImportOptionsKit into this ImportOptionsKit.
in_kit | The source ImportOptionsKit to copy. |
bool HPS::Parasolid::ImportOptionsKit::operator== | ( | ImportOptionsKit const & | in_kit | ) | const |
Check if the source ImportOptionsKit is equivalent to this ImportOptionsKit.
in_kit | The source ImportOptionsKit to compare to this ImportOptionsKit. |
|
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::Parasolid::ImportOptionsKit::Set | ( | ImportOptionsKit const & | in_kit | ) |
Copies the source ImportOptionsKit into this ImportOptionsKit.
in_kit | The source ImportOptionsKit to copy. |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::SetAttributeMismatchBehavior | ( | Parasolid::MismatchBehavior | in_behavior | ) |
Sets the importer behavior for mismatched attributes.
This corresponds to the value that will be passed to PK_PART_receive_o_t.attdef_mismatch.
in_behavior | The behavior of the importer when mismatched attributes are found. |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::SetCompoundBodyBehavior | ( | Parasolid::CompoundBodyBehavior | in_behavior | ) |
Sets the importer behavior for compound bodies.
This corresponds to the value that will be passed to PK_PART_receive_o_t.receive_compound.
in_behavior | The behavior of the importer when compound bodies are found. |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::SetFacetTessellation | ( | Parasolid::FacetTessellationKit const & | in_facet_tessellation_kit | ) |
Sets the facet tessellation settings used during import This corresponds to the PK_TOPOL_render_facet_o_t struct.
in_facet_tessellation_kit | The facet tessellation settings used during import |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::SetFormat | ( | Parasolid::Format | in_format | ) |
Sets the format type to be imported.
This corresponds to the value that will be passed to PK_PART_receive_o_t.transmit_format.
in_format | The format of the file to be imported. |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::SetLineTessellation | ( | Parasolid::LineTessellationKit const & | in_line_tessellation_kit | ) |
Sets the line tessellation settings used during import This corresponds to the PK_TOPOL_render_line_o_t struct.
in_facet_tessellation_kit | The line tessellation settings used during import |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::SetLocation | ( | ComponentPath const & | in_path, |
MatrixKit const & | in_transform = MatrixKit() |
||
) |
Sets where to insert the imported file in an existing Component hierarchy.
If this option is not set, a new CADModel will be created for the imported file. If this option is specified, the underlying Parasolid data of the existing CADModel will be modified to include the imported file and the data will be imported into the specified location in the existing Component hierarchy and its corresponding scene graph. The file will be imported in the same PK_PARTITION_t as the one to which entities in in_path belong.
in_path | The path describing the location to insert the imported file into. This path must either terminate at a CADModel or a Component corresponding to a Parasolid Assembly. Note that if the imported file is added along a component path with attributes specified in the Parasolid data, the components added to the existing Parasolid data will also inherit those attributes. |
in_transform | A transform to apply to the components being added to the existing CADModel. This transform will also be added to the underlying Parasolid data. Valid transformations are limited to translations, rotations, uniform scaling and reflection. If the transform does not conform to these limitations it will be ignored. Defaults to an identity transform. |
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::SetUserFields | ( | bool | in_import_user_fields | ) |
Sets whether to import user fields from the CAD file.
This corresponds to the value that will be passed to PK_PART_receive_o_t.receive_user_fields.
in_import_user_fields | Whether to import user fields from the CAD file. |
void HPS::Parasolid::ImportOptionsKit::Show | ( | ImportOptionsKit & | out_kit | ) | const |
Copies this ImportOptionsKit into the given ImportOptionsKit.
out_kit | The ImportOptionsKit to populate with the contents of this ImportOptionsKit. |
bool HPS::Parasolid::ImportOptionsKit::ShowAttributeMismatchBehavior | ( | Parasolid::MismatchBehavior & | out_behavior | ) | const |
Shows the attribute mismatch behavior import setting.
out_behavior | The attribute mismatch behavior setting for this import. |
bool HPS::Parasolid::ImportOptionsKit::ShowCompoundBodyBehavior | ( | Parasolid::CompoundBodyBehavior & | out_behavior | ) | const |
Shows the compound body behavior import setting.
out_behavior | The compound body behavior setting for this import. |
bool HPS::Parasolid::ImportOptionsKit::ShowFacetTessellation | ( | Parasolid::FacetTessellationKit & | out_facet_tessellation | ) | const |
Shows the facet tessellation import setting.
out_facet_tessellation | The facet tessellation setting for this import. |
bool HPS::Parasolid::ImportOptionsKit::ShowFormat | ( | Parasolid::Format & | out_format | ) | const |
Shows the format import setting.
out_format | The format setting for this import. |
bool HPS::Parasolid::ImportOptionsKit::ShowLineTessellation | ( | Parasolid::LineTessellationKit & | out_line_tessellation | ) | const |
Shows the line tessellation import setting.
out_line_tessellation | The line tessellation setting for this import. |
bool HPS::Parasolid::ImportOptionsKit::ShowLocation | ( | ComponentPath & | out_path, |
MatrixKit & | out_transformation | ||
) | const |
Shows the location setting.
out_path | The path describing the location to insert the imported file into. |
out_transform | The transform to apply to the components being added to the existing CADModel. |
bool HPS::Parasolid::ImportOptionsKit::ShowUserFields | ( | bool & | out_user_fields | ) | const |
Shows the user fields import setting.
out_user_fields | The user fields setting for this import. |
|
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.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetAttributeMismatchBehavior | ( | ) |
Removes the attribute mismatch behavior state.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetCompoundBodyBehavior | ( | ) |
Removes the compound body behavior state.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this ImportOptionsKit.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetFacetTessellation | ( | ) |
Removes the facet tessellation state.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetFormat | ( | ) |
Removes the format import state.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetLineTessellation | ( | ) |
Removes the line tessellation state.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetLocation | ( | ) |
Removes the location state.
ImportOptionsKit& HPS::Parasolid::ImportOptionsKit::UnsetUserFields | ( | ) |
Removes the user fields import state.
|
static |