HPS::Exchange::ExportPRCOptionsKit
-
class HPS::Exchange::ExportPRCOptionsKit : public HPS::SprocketKit
The HPS::Exchange::ExportPRCOptionsKit class is a user space object. It contains settings controlling how PRC data is exported via Exchange. Calling HPS::Exchange::ExportPRCOptionsKit::GetDefault() will return an options kit with values found in here.
Public Functions
-
virtual bool Empty() const
Indicates whether this ExportPRCOptionsKit has any values set on it.
- Returns
true if no values are set on this ExportPRCOptionsKit, false otherwise.
-
bool Equals(ExportPRCOptionsKit const &in_kit) const
Check if the source ExportPRCOptionsKit is equivalent to this ExportPRCOptionsKit.
- Parameters
in_kit – The source ExportPRCOptionsKit to compare to this ExportPRCOptionsKit.
- Returns
true if the objects are equivalent, false otherwise.
-
ExportPRCOptionsKit()
The default constructor creates an empty ExportPRCOptionsKit object.
-
ExportPRCOptionsKit(ExportPRCOptionsKit &&in_that)
The move constructor creates an ExportPRCOptionsKit by transferring the underlying object of the rvalue reference to this ExportPRCOptionsKit.
- Parameters
in_that – An rvalue reference to an ExportPRCOptionsKit to take the underlying object from.
-
ExportPRCOptionsKit(ExportPRCOptionsKit const &in_kit)
The copy constructor creates a new ExportPRCOptionsKit object that contains the same settings as the source ExportPRCOptionsKit.
- Parameters
in_kit – The source ExportPRCOptionsKit to copy.
-
inline virtual HPS::Type ObjectType() const
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Returns
The declared type of the object in question, which may differ from the true, underlying type.
-
bool operator!=(ExportPRCOptionsKit const &in_kit) const
Check if the source ExportPRCOptionsKit is not equivalent to this ExportPRCOptionsKit.
- Parameters
in_kit – The source ExportPRCOptionsKit to compare to this ExportPRCOptionsKit.
- Returns
true if the objects are not equivalent, false otherwise.
-
ExportPRCOptionsKit &operator=(ExportPRCOptionsKit &&in_that)
The move assignment operator transfers the underlying object of the rvalue reference to this ExportPRCOptionsKit.
- Parameters
in_that – An rvalue reference to an ExportPRCOptionsKit to take the underlying object from.
- Returns
A reference to this ExportPRCOptionsKit.
-
ExportPRCOptionsKit &operator=(ExportPRCOptionsKit const &in_kit)
Copies the source ExportPRCOptionsKit into this ExportPRCOptionsKit.
- Parameters
in_kit – The source ExportPRCOptionsKit to copy.
- Returns
A reference to this ExportPRCOptionsKit.
-
bool operator==(ExportPRCOptionsKit const &in_kit) const
Check if the source ExportPRCOptionsKit is equivalent to this ExportPRCOptionsKit.
- Parameters
in_kit – The source ExportPRCOptionsKit to compare to this ExportPRCOptionsKit.
- Returns
true if the objects are equivalent, false otherwise.
-
void Set(ExportPRCOptionsKit const &in_kit)
Copies the source ExportPRCOptionsKit into this ExportPRCOptionsKit.
- Parameters
in_kit – The source ExportPRCOptionsKit to copy.
-
ExportPRCOptionsKit &SetAdditionalKeyPaths(KeyPathArray const &in_additional_key_paths)
Sets an array of key paths which will be exported to PRC in addition to the model. Use this setting to export Visualize geometry to PRC.
- Parameters
in_additional_key_paths – The key paths to be exported.
- Returns
A reference to this AnnotationKit.
-
ExportPRCOptionsKit &SetAdditionalKeyPaths(size_t in_count, KeyPath const in_additional_key_paths[])
Sets an array of key paths which will be exported to PRC in addition to the model. Use this setting to export Visualize geometry to PRC.
- Parameters
in_count – The number of key paths contained in in_additional_key_paths.
in_additional_key_paths – The key paths to be exported.
- Returns
A reference to this AnnotationKit.
-
ExportPRCOptionsKit &SetAttributeRemoval(bool in_state)
Sets whether to remove the attribute information for export. This corresponds to the value that will be passed to A3DRWParamsExportPrcData::m_bRemoveAttributes.
- Parameters
in_state – Whether to remove the attribute information in the PRC data for this annotation.
- Returns
A reference to this AnnotationKit.
-
ExportPRCOptionsKit &SetBRepCompression(PRC::BRepCompression in_level)
Sets the level of compression to apply to BRep data for export. This corresponds to the values that will be passed to A3DRWParamsExportPrcData::m_bCompressBrep and A3DRWParamsExportPrcData::m_eCompressBrepType.
- Parameters
in_level – The level of compression to apply to BRep data for export.
- Returns
A reference to this ExportPRCOptionsKit.
-
ExportPRCOptionsKit &SetBRepRemoval(bool in_state)
Sets whether to remove the BRep information for export. This corresponds to the value that will be passed to A3DRWParamsExportPrcData::m_bRemoveBRep.
- Parameters
in_state – Whether to remove BRep information in the PRC data for this annotation.
- Returns
A reference to this AnnotationKit.
-
ExportPRCOptionsKit &SetTessellationCompression(bool in_state)
Sets whether to compress tessellation for export. This corresponds to the value that will be passed to A3DRWParamsExportPrcData::m_bCompressTessellation.
- Parameters
in_state – Whether to compress tessellation for export.
- Returns
A reference to this ExportPRCOptionsKit.
-
void Show(ExportPRCOptionsKit &out_kit) const
Copies this ExportPRCOptionsKit into the given ExportPRCOptionsKit.
- Parameters
out_kit – The ExportPRCOptionsKit to populate with the contents of this ExportPRCOptionsKit.
-
bool ShowAdditionalKeyPaths(KeyPathArray &out_additional_key_paths) const
Shows the additional key paths setting.
- Parameters
out_additional_key_paths – The key paths which will be added to the model
- Returns
true if an additional key paths setting was specified, false otherwise.
-
bool ShowAttributeRemoval(bool &out_state) const
Shows the attribute removal setting.
- Parameters
out_state – Whether to remove attribute information for export.
- Returns
true if an attribute removal setting was specified, false otherwise.
-
bool ShowBRepCompression(PRC::BRepCompression &out_level) const
Shows the BRep compression level setting.
- Parameters
out_level – The level of compression to apply to BRep data for export.
- Returns
true if a BRep compression level setting was specified, false otherwise.
-
bool ShowBRepRemoval(bool &out_state) const
Shows the BRep removal setting.
- Parameters
out_state – Whether to remove BRep information for export.
- Returns
true if a BRep removal setting was specified, false otherwise.
-
bool ShowTessellationCompression(bool &out_state) const
Shows the tessellation compression setting.
- Parameters
out_state – Whether to compress tessellation for export.
- Returns
true if a tessellation compression setting was specified, false otherwise.
-
ExportPRCOptionsKit &UnsetAdditionalKeyPaths()
Removes the additional key paths setting.
- Returns
A reference to this ExportPRCOptionsKit.
-
ExportPRCOptionsKit &UnsetAttributeRemoval()
Removes the attribute removal setting.
- Returns
A reference to this ExportPRCOptionsKit.
-
ExportPRCOptionsKit &UnsetBRepCompression()
Removes the BRep compression level setting.
- Returns
A reference to this ExportPRCOptionsKit.
-
ExportPRCOptionsKit &UnsetBRepRemoval()
Removes the BRep removal setting.
- Returns
A reference to this ExportPRCOptionsKit.
-
ExportPRCOptionsKit &UnsetEverything()
Removes all settings from this ExportPRCOptionsKit.
- Returns
A reference to this ExportPRCOptionsKit.
-
ExportPRCOptionsKit &UnsetTessellationCompression()
Removes the tessellation compression setting.
- Returns
A reference to this ExportPRCOptionsKit.
Public Static Functions
-
static ExportPRCOptionsKit GetDefault()
Creates an ExportPRCOptionsKit 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::ExportPRC.
- Returns
An ExportPRCOptionsKit with the default settings.
-
virtual bool Empty() const