The Component class is a smart pointer. More...
#include <sprk_exchange.h>
Public Member Functions | |
Component () | |
The default constructor creates an uninitialized Exchange::Component object. More... | |
Component (HPS::Component const &in_that) | |
This constructor creates an Exchange::Component object that shares the underlying smart-pointer of the source Component. More... | |
Component (Exchange::Component const &in_that) | |
The copy constructor creates an Exchange::Component object that shares the underlying smart-pointer of the source Exchange::Component. More... | |
Component (Exchange::Component &&in_that) | |
The move constructor creates an Exchange::Component by transferring the underlying object of the rvalue reference to this Exchange::Component. More... | |
virtual | ~Component () |
Releases a reference to this Component. More... | |
HPS::Type | ObjectType () const |
Component & | operator= (Component const &in_that)=default |
Component & | operator= (Exchange::Component &&in_that) |
The move assignment operator transfers the underlying object of the rvalue reference to this Exchange::Component. More... | |
A3DEntity * | GetExchangeEntity () const |
Gets the A3DEntity pointer corresponding to this Exchange Component. More... | |
void | Tessellate (TessellationOptionsKit const &in_options) |
Re-tessellate the given Component with the provided options. More... | |
TranslationNotifier | Translate (Units in_units, TranslationOptionsKit const &in_translation_options) |
Asynchronously translates this component into an array of Parasolid parts, using the options provided. More... | |
ReloadNotifier | Reload (TessellationOptionsKit const &in_tessellation_options=TessellationOptionsKit(), TranslationOptionsKit const &in_translation_options=TranslationOptionsKit()) |
Asynchronously reloads this component. More... | |
virtual void | Assign (Component const &in_that) |
Share the underlying smart-pointer of the Component source. More... | |
bool | Equals (Component const &in_that) const |
Check if the source Component points to the same underlying impl as this Component. More... | |
bool | operator!= (Component const &in_that) const |
Check if the source Component points to a different impl than this Component. More... | |
bool | operator== (Component const &in_that) const |
Check if the source Component points to the same underlying impl as this Component. More... | |
ComponentType | GetComponentType () const |
Gets the specific format-dependent type this Component represents. More... | |
bool | HasComponentType (ComponentType in_mask) const |
This function indicates whether this Component has the given ComponentType mask. More... | |
void | AddKey (Key const &in_key) |
Adds a key to be associated with this Component. More... | |
KeyArray | GetKeys () const |
Get the underlying keys (if any) which represent this Component. More... | |
void | AddOwner (Component &in_owner, IncludeKey const &in_include=IncludeKey()) |
Adds an owner to this Component. More... | |
ComponentArray | GetOwners () const |
Get the Component objects (if any) which "own" this Component. More... | |
ComponentArray | GetSubcomponents () const |
Get the subcomponent objects (if any) owned or referenced by this Component. More... | |
ComponentArray | GetAllSubcomponents (ComponentType in_type) const |
Gets all components under this Component that have the specified ComponentType mask. More... | |
void | AddReference (Component &in_reference) |
Adds a Component as a reference to this Component. More... | |
ComponentArray | GetReferrers () const |
Gets the Component objects which refer to this Component (if any). More... | |
ComponentArray | GetReferences () const |
Get the Component objects (if any) which are referenced by this Component. More... | |
MetadataArray | GetAllMetadata () const |
Get all Metadata objects associated with this Component. More... | |
Metadata | GetMetadata (char const *in_name) const |
Get the single Metadata object with the given name associated with this Component (if present). More... | |
UTF8 | GetName () const |
Gets the name for this Component. More... | |
void | Delete () |
void | Flush () |
Removes all references to the underlying subcomponents, but leaves this Component around. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual bool | Empty () const |
Indicates whether this object has any values set on it. 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 KeyPathArray | GetKeyPath (Component const &in_component) |
Gets the list of KeyPath objects that correspond to the given Component. More... | |
static KeyPathArray | GetKeyPath (size_t in_count, Component const in_components[]) |
Gets the list of KeyPath objects that correspond to the given Component path. More... | |
static KeyPathArray | GetKeyPath (ComponentArray const &in_components) |
Gets the list of KeyPath objects that correspond to the given Component path. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::ExchangeComponent |
The Component class is a smart pointer.
It represents a variety of Exchange components. The primary purpose of this class is simply to provide access to the underlying A3DEntity pointer for use by Exchange library functions.
|
stronginherited |
Enumerates the format-dependent types a Component can represent.
Enumerator | |
---|---|
None | |
GenericMask | |
ExchangeComponentMask | Mask for any Exchange components. |
ExchangeModelFile | Represents an A3DAsmModelFile in Exchange. This will be represented by an Exchange::CADModel. |
ExchangeProductOccurrence | Represents an A3DAsmProductOccurrence in Exchange. This will be represented by an Exchange::Component. |
ExchangePartDefinition | Represents an A3DAsmPartDefinition in Exchange. This will be represented by an Exchange::Component. |
ExchangeView | Represents an A3DMkpView in Exchange. This will be represented by an Exchange::Capture component. |
ExchangeFilter | Represents an A3DMkpFilter in Exchange. This will be represented by an Exchange::Filter component. |
ExchangeRepresentationItemMask | Mask for any Exchange representation items. |
ExchangeRIBRepModel | Represents an A3DRiBrepModel in Exchange. This will be represented by an Exchange::Component. |
ExchangeRICurve | Represents an A3DRiCurve in Exchange. This will be represented by an Exchange::Component. |
ExchangeRIDirection | Represents an A3DRiDirection in Exchange. This will be represented by an Exchange::Component. |
ExchangeRIPlane | Represents an A3DRiPlane in Exchange. This will be represented by an Exchange::Component. |
ExchangeRIPointSet | Represents an A3DRiPointSet in Exchange. This will be represented by an Exchange::Component. |
ExchangeRIPolyBRepModel | Represents an A3DRiPolyBrepModel in Exchange. This will be represented by an Exchange::Component. |
ExchangeRIPolyWire | Represents an A3DRiPolyWire in Exchange. This will be represented by an Exchange::Component. |
ExchangeRISet | Represents an A3DRiSet in Exchange. This will be represented by an Exchange::Component. |
ExchangeRICoordinateSystem | Represents an A3DRiCoordinateSystem in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopologyMask | Mask for any Exchange topology items. |
ExchangeTopoBody | Represents an A3DTopoBody in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoConnex | Represents an A3DTopoConnex in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoShell | Represents an A3DTopoShell in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoFace | Represents an A3DTopoFace in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoLoop | Represents an A3DTopoLoop in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoCoEdge | Represents an A3DTopoCoEdge in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoEdge | Represents an A3DTopoEdge in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoVertex | Represents an A3DTopoVertex in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoSingleWireBody | Represents an A3DTopoSingleWireBody in Exchange. This will be represented by an Exchange::Component. |
ExchangeTopoWireEdge | Represents an A3DTopoWireEdge in Exchange. This will be represented by an Exchange::Component. |
ExchangeDrawingMask | Mask for any Exchange drawing item. |
ExchangeDrawingModel | Represents an A3DDrawingModel in Exchange. This is the starting point of a drawing. It is found under a product occurrence. Generally there is only one Drawing Model per file, but it is possible to have more than one. This will be represented by an Exchange::Component. |
ExchangeDrawingView | Represents an A3DDrawingView in Exchange. A Drawing Sheet can contain views. Views are basically snapshot of the model from a particular angle. Each view has a name and a type, for example, front view, side view, section, etc. This will be represented by an Exchange::Component. |
ExchangeDrawingSheet | Represents an A3DDrawingSheet in Exchange. A DrawingModel contains one or more sheets. Each sheet represents a physical sheet of paper. Generally a sheet defines the frame of the drawing, contains the name of the paper format it reproduces, and contains a transform. One of the sheets is classified as the "active sheet" by the model, and this one will be what you see when you first load a drawing. There can only be one active sheet at the time, with all the inactive ones being hidden. Drawing sheets have metadata associated with them called 'IsDefaultSheet'. This is a BooleanMetadata. It will return true if the sheet is the active sheet, and false otherwise. This will be represented by an Exchange::Component. |
ExchangeBasicDrawingBlock | Represents an A3DDrawingBlockBasic in Exchange. Sheets and views contain blocks. Blocks can be of two types: basic or operator blocks. Operator blocks are blocks which reference a particular view. These two types are internally treated as the same thing. Blocks contain the actual representation items which will be tessellated and drawn on the screen. This will be represented by an Exchange::Component. |
ExchangeOperatorDrawingBlock | Represents an A3DDrawingBlockOperator in Exchange. Sheets and views contain blocks. Blocks can be of two types: basic or operator blocks. Operator blocks are blocks which reference a particular view. These two types are internally treated as the same thing. Blocks contain the actual representation items which will be tessellated and drawn on the screen. This will be represented by an Exchange::Component. |
ExchangePMIMask | Mask for any Exchange PMI items. |
ExchangePMI | Represents a generic A3DMkpMarkup in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIText | Represents an A3DMarkupText in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIRichText | Represents an A3DMarkupRichText in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIRoughness | Represents an A3DMarkupRoughness in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIGDT | Represents an A3DMarkupGDT in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIDatum | Represents an A3DMarkupDatum in Exchange. This will be represented by an Exchange::Component. |
ExchangePMILineWelding | Represents an A3DMarkupLineWelding in Exchange. This will be represented by an Exchange::Component. |
ExchangePMISpotWelding | Represents an A3DMarkupSpotWelding in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIDimension | Represents an A3DMarkupDimension in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIBalloon | Represents an A3DMarkupBalloon in Exchange. This will be represented by an Exchange::Component. |
ExchangePMICoordinate | Represents an A3DMarkupCoordinate in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIFastener | Represents an A3DMarkupFastener in Exchange. This will be represented by an Exchange::Component. |
ExchangePMILocator | Represents an A3DMarkupLocator in Exchange. This will be represented by an Exchange::Component. |
ExchangePMIMeasurementPoint | Represents an A3DMarkupMeasurementPoint in Exchange. This will be represented by an Exchange::Component. |
ParasolidComponentMask | Mask for any Parasolid components. |
ParasolidModelFile | Abstract component representing the root of a Parasolid file. Does not map to any Parasolid element. |
ParasolidAssembly | Represents a PK_ASSEMBLY in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidInstance | Represents a PK_INSTANCE in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopologyMask | Mask for any Parasolid topological items. |
ParasolidTopoBody | Represents a PK_BODY in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopoRegion | Represents a PK_REGION in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopoShell | Represents a PK_SHELL in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopoFace | Represents a PK_FACE in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopoLoop | Represents a PK_LOOP in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopoFin | Represents a PK_FIN in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopoEdge | Represents a PK_EDGE in Parasolid. This will be represented by a Parasolid::Component. |
ParasolidTopoVertex | Represents a PK_VERTEX in Parasolid. This will be represented by a Parasolid::Component. |
DWGComponentMask | Mask for any DWG components. |
DWGModelFile | Represents an AcDbDatabase in RealDWG. This will be represented by a DWG::CADModel. |
DWGLayout | Represents an AcDbLayout in RealDWG. |
DWGBlockTable | Represents an AcDbBlockTable in RealDWG. |
DWGBlockTableRecord | Represents an AcDbBlockTableRecord in RealDWG. |
DWGEntity | Represents an AcDbEntity in RealDWG. |
DWGLayerTable | Represents an AcDbLayerTable in RealDWG. |
DWGLayer | Represents an AcDbLayer in RealDWG. |
UserComponent | Represents a user created component. |
|
stronginherited |
Enumerates whether visibility will be overridden for the subtree under a ComponentPath.
Enumerator | |
---|---|
PreserveUserDefined | Preserve the user-derived visibility for the subtree under the ComponentPath specified (only where ComponentPath::Show or ComponentPath::Hide was explicitly invoked). |
PreserveModelDefined | Preserve the model-derived visibility for the subtree under the ComponentPath specified (ignoring any ComponentPath where ComponentPath::Show or ComponentPath::Hide was explicitly invoked) |
PreserveNone | Override the visibility for any components in the subtree under the ComponentPath specified regardless of how it was set. |
PreserveAll | Preserve the visibility for all components in the subtree under the ComponentPath specified regardless of how it was set. |
HPS::Exchange::Component::Component | ( | ) |
The default constructor creates an uninitialized Exchange::Component object.
The Type() function will return Type::None.
HPS::Exchange::Component::Component | ( | HPS::Component const & | in_that | ) |
This constructor creates an Exchange::Component object that shares the underlying smart-pointer of the source Component.
The copy will only be successful if the source component is really an upcast of an Exchange::Component object. Otherwise the copy will fail and the resulting Exchange::Component will be invalid.
in_that | The source Component to copy. |
HPS::Exchange::Component::Component | ( | Exchange::Component const & | in_that | ) |
The copy constructor creates an Exchange::Component object that shares the underlying smart-pointer of the source Exchange::Component.
in_that | The source Exchange::Component to copy. |
HPS::Exchange::Component::Component | ( | Exchange::Component && | in_that | ) |
The move constructor creates an Exchange::Component by transferring the underlying object of the rvalue reference to this Exchange::Component.
in_that | An rvalue reference to an Exchange::Component to take the underlying object from. |
|
virtual |
Releases a reference to this Component.
The Component will not be deleted unless the final reference is destroyed.
Reimplemented from HPS::Component.
|
inherited |
Adds a key to be associated with this Component.
This will additionally ensure this key can be used to find this Component via CADModel::GetComponentFromKey on the owning CADModel. In general, this will either be a SegmentKey or a GeometryKey (or a subclass thereof), but it may also be an IncludeKey, which is necessary for an instanced Component. If an IncludeKey is associated with this Component, the underlying target of the include will be associated with this Component, though the include will be stored as well to determine things like the associated KeyPath correctly.
in_key | The key to associate with this Component. |
|
inherited |
Adds an owner to this Component.
This is intended to facilitate adding additional owners to an instanced Component, and allows specifying the associated IncludeKey for the additional owner. It is possible to add an owner without adding an IncludeKey, and, if desired, add the IncludeKey separately via AddKey.
in_owner | The Component to act as an additional owner for this Component. |
in_include | The IncludeKey for this Component for this new owner. This defaults to an uninitialized IncludeKey. |
|
inherited |
|
virtualinherited |
|
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.
|
inherited |
The behavior of the Delete function varies according to the type of object it's being called on.
HPS:
Component
Removes this component from memory and invalidates any component objects referring to it. All owners of this component will no longer have it as a subcomponent, all components that reference this component will no longer have it as a reference, and the keys underlying this component will be deleted. Any subcomponents of this component that have multiple owners will have this component removed as an owner. Any subcomponents of this component that have only this component as an owner will be recursively deleted via this function.
Invoking this function on an instance of an object derived from Component will perform some additional cleanup relevant to the derived type. For example, performing a delete on a CADModel will delete the default capture associated with the CADModel, delete its associated Model, and delete the mapping information between keys and components, in addition to performing all the operations for a generic component. See below for the behavior of derived types in the integrations that create component trees.
Lastly, note that it is not necessary to construct or cast a component to its specific type to ensure the appropriate delete logic is used. The appropriate logic will always be invoked even if using a base Component object handle to a derived type.
Component, ProductOccurrence, Sheet, Capture, Filter
Invoking delete on these types will not modify the associated Exchange data. It will remove the associated A3DEntity pointer and component from the mapping data accessible via Exchange::CADModel::GetComponentFromEntity, and then it will invoke the base Component delete logic.
CADModel
Invoking delete on an Exchange::CADModel will delete the underlying A3DAsmModelFile via A3DAsmModelFileDelete if Exchange::CADModel::GetEntityOwnership is true. It will additionally clean up the associated A3DRWParamsPrcReadHelper if one was created during import (see Exchange::ImportOptionsKit::SetPRCReadHelper). The mapping data between A3DEntity pointers and components will also be deleted, and lastly it will invoke the delete logic for the base CADModel.
Component
Invoking delete on this type will invoke PK_ENTITY_delete on the underlying Parasolid entity if the entity has class PK_CLASS_assembly or PK_CLASS_body. It will remove this Parasolid entity and component from the mapping data accessible via Parasolid::CADModel::GetComponentFromEntity, and then it will invoke the base Component delete logic.
CADModel
The mapping data between Parasolid entities and components will be deleted, and then it will invoke the base CADModel delete logic.
DWG:
Component, Layer, Layout
Invoking delete on these types will not modify the associated DWG database. It will simply invoke the base Component delete logic.
CADModel
Invoking delete on a DWG::CADModel will release the underlying AcDbDatabase via acdbReleaseHostDwg, and then it will invoke the base CADModel delete logic.
|
inlinevirtualinherited |
Indicates whether this object has any values set on it.
Reimplemented in HPS::STL::ImportResultsKit, HPS::STL::ImportOptionsKit, HPS::OBJ::ImportResultsKit, HPS::OBJ::ImportOptionsKit, HPS::Hardcopy::File::ExportOptionsKit, HPS::Stream::ExportOptionsKit, HPS::Stream::ImportResultsKit, HPS::Stream::ImportOptionsKit, HPS::PointCloud::ImportOptionsKit, HPS::PointCloud::ImportResultsKit, HPS::UpdateOptionsKit, HPS::HighlightSearchOptionsKit, HPS::HighlightOptionsKit, HPS::SelectionOptionsKit, HPS::SearchOptionsKit, HPS::CutGeometryGatheringOptionsKit, HPS::ShapeKit, HPS::ShaderKit, HPS::Shader::ImportOptionsKit, HPS::ImageKit, HPS::Image::ImportOptionsKit, HPS::Image::ExportOptionsKit, HPS::TextureOptionsKit, HPS::LinePatternKit, HPS::LinePatternParallelKit, HPS::LinePatternOptionsKit, HPS::GlyphKit, HPS::ApplicationWindowOptionsKit, HPS::OffScreenWindowOptionsKit, HPS::StandAloneWindowOptionsKit, HPS::GridKit, HPS::PolygonKit, HPS::MeshKit, HPS::ShellKit, HPS::ShellRelationResultsKit, HPS::ShellRelationOptionsKit, HPS::ShellOptimizationOptionsKit, HPS::TextKit, HPS::EllipticalArcKit, HPS::EllipseKit, HPS::TrimKit, HPS::NURBSSurfaceKit, HPS::NURBSCurveKit, HPS::SpotlightKit, HPS::InfiniteLineKit, HPS::CuttingSectionKit, HPS::CircularWedgeKit, HPS::CircularArcKit, HPS::CircleKit, HPS::SphereKit, HPS::CylinderKit, HPS::DistantLightKit, HPS::MarkerKit, HPS::LineKit, HPS::AttributeLockKit, HPS::FontInfoState, HPS::WindowInfoKit, HPS::DebuggingKit, HPS::SubwindowKit, HPS::ContourLineKit, HPS::VisualEffectsKit, HPS::TransformMaskKit, HPS::PostProcessEffectsKit, HPS::DrawingAttributeKit, HPS::HiddenLineAttributeKit, HPS::PerformanceKit, HPS::NURBSSurfaceAttributeKit, HPS::MaterialKit, HPS::MaterialMappingKit, HPS::MatrixKit, HPS::CurveAttributeKit, HPS::EdgeAttributeKit, HPS::LineAttributeKit, HPS::TextAttributeKit, HPS::CuttingSectionAttributeKit, HPS::CylinderAttributeKit, HPS::LightingAttributeKit, HPS::SphereAttributeKit, HPS::MarkerAttributeKit, HPS::CullingKit, HPS::ColorInterpolationKit, HPS::TransparencyKit, HPS::SelectabilityKit, HPS::CameraKit, HPS::VisibilityKit, HPS::BoundingKit, HPS::SegmentOptimizationOptionsKit, HPS::Publish::ExportOptionsKit, HPS::Publish::TextFieldKit, HPS::Publish::SignatureFieldKit, HPS::Publish::DropDownListKit, HPS::Exchange::TessellationOptionsKit, HPS::Publish::ListBoxKit, HPS::Exchange::ExportSTEPOptionsKit, HPS::Exchange::ExportParasolidOptionsKit, HPS::Publish::RadioButtonKit, HPS::Exchange::ExportIGESOptionsKit, HPS::Exchange::ExportXMLOptionsKit, HPS::Publish::CheckBoxKit, HPS::Exchange::ExportU3DOptionsKit, HPS::Exchange::ExportSTLOptionsKit, HPS::Publish::ButtonKit, HPS::Exchange::ExportPRCOptionsKit, HPS::Publish::LinkKit, HPS::Exchange::ExportJTOptionsKit, HPS::Publish::SlideTableKit, HPS::Exchange::ExportACISOptionsKit, HPS::Publish::TableKit, HPS::Exchange::Export3MFOptionsKit, HPS::Publish::ImageKit, HPS::Publish::TextKit, HPS::Exchange::ModelFileImportOptionsKit, HPS::Publish::ViewKit, HPS::Exchange::TranslationOptionsKit, HPS::Publish::ArtworkKit, HPS::Publish::AnnotationKit, HPS::ComponentPath, HPS::Exchange::ImportOptionsKit, HPS::Parasolid::ExportOptionsKit, HPS::Exchange::NURBSConversionOptionsKit, HPS::Parasolid::LineTessellationKit, HPS::Exchange::Configuration, HPS::Publish::PageKit, HPS::Parasolid::FacetTessellationKit, HPS::Publish::DocumentKit, HPS::Parasolid::ImportOptionsKit, HPS::DWG::ImportOptionsKit, HPS::OOC::ImportOptionsKit, HPS::Sketchup::ImportOptionsKit, and HPS::Sketchup::ImportResultsKit.
|
inherited |
|
inherited |
Removes all references to the underlying subcomponents, but leaves this Component around.
If a subcomponent of the component being flushed has multiple owners, the flush will simply remove the reference to that subcomponent. If a subcomponent of the component being flushed has only one owner (the component being flushed), that subcomponent will be deleted. Any handles to the deleted components will become invalid.
|
inherited |
|
inherited |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
inherited |
A3DEntity* HPS::Exchange::Component::GetExchangeEntity | ( | ) | const |
|
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.
|
staticinherited |
Gets the list of KeyPath objects that correspond to the given Component.
There will be at least one KeyPath, and possibly more than one if a particular Component is instanced, e.g., if the Component corresponds to the wheel of a car, a KeyPath would be returned for each wheel (driver side front and rear, and passenger side front and rear). Each KeyPath in the list will also include the portion of the path above the Model (associated with the root CADModel) for each View, Layout layer, and Canvas permutation which includes the Model. This function will not take into account any includes or paths which do not come from the Component hierarchy or the View, Layout, and Canvas permutations which include the Model.
|
staticinherited |
Gets the list of KeyPath objects that correspond to the given Component path.
This function can be used to get the KeyPath for a particular instance of an instanced Component. For a non-instanced Component, since the Component path can be determined unambiguously, the KeyPath returned will be the same as if only the leaf non-instanced Component was given to this function. There will be at least one KeyPath returned, and possibly more than one for each View, Layout layer, and Canvas which include the Model associated with the root CADModel. This function will not take into account any includes or paths which do not come from the Component hierarchy or the View, Layout, and Canvas permutations which include the Model.
in_count | Size of the following array. |
in_components | The Component path for which to compute the corresponding KeyPath objects. The path should be defined such that the first element is the leaf Component, and the last element is the root CADModel. Each element in the path should be an owner of the preceding Component, otherwise an exception will be thrown. |
|
staticinherited |
Gets the list of KeyPath objects that correspond to the given Component path.
This function can be used to get the KeyPath for a particular instance of an instanced Component. For a non-instanced Component, since the Component path can be determined unambiguously, the KeyPath returned will be the same as if only the leaf non-instanced Component was given to this function. There will be at least one KeyPath returned, and possibly more than one for each View, Layout layer, and Canvas which include the Model associated with the root CADModel. This function will not take into account any includes or paths which do not come from the Component hierarchy or the View, Layout, and Canvas permutations which include the Model.
in_components | The Component path for which to compute the corresponding KeyPath objects. The path should be defined such that the first element is the leaf Component, and the last element is the root CADModel. Each element in the path should be an owner of the preceding Component, otherwise an exception will be thrown. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlinevirtual |
Reimplemented from HPS::Component.
Reimplemented in HPS::Exchange::Sheet, and HPS::Exchange::ProductOccurrence.
|
inherited |
Component& HPS::Exchange::Component::operator= | ( | Exchange::Component && | in_that | ) |
The move assignment operator transfers the underlying object of the rvalue reference to this Exchange::Component.
in_that | An rvalue reference to an Exchange::Component to take the underlying object from. |
|
inherited |
ReloadNotifier HPS::Exchange::Component::Reload | ( | TessellationOptionsKit const & | in_tessellation_options = TessellationOptionsKit() , |
TranslationOptionsKit const & | in_translation_options = TranslationOptionsKit() |
||
) |
Asynchronously reloads this component.
This will delete all underlying subcomponents and then reparse the underlying Exchange data. This function should be invoked on the Component corresponding to an entity which was edited or a Component above such a Component.
in_tessellation_options | The options to use to generate tessellations for new Components (if necessary). |
in_translation_options | The options to use for translation from Exchange BRep to Parasolid. This option only applies if a file was loaded via the ExchangeParasolid module and there are components underlying this component that need to be translated to Parasolid. |
|
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::Component::Tessellate | ( | TessellationOptionsKit const & | in_options | ) |
Re-tessellate the given Component with the provided options.
Tessellation occurs at the representation item level in Exchange, so calling this function on Component objects below that level will have no effect. If this function is invoked on Component objects above that level, e.g., at the product occurrence level, all representation items underneath that Component will be re-tessellated with the provided options. Additionally, only components for which there is BRep data can the tessellation be regenerated.
in_options | The options to use to generate the new tessellation for this Component. |
TranslationNotifier HPS::Exchange::Component::Translate | ( | Units | in_units, |
TranslationOptionsKit const & | in_translation_options | ||
) |
Asynchronously translates this component into an array of Parasolid parts, using the options provided.
A valid Parasolid session is required for this function to succeed. The component has to be a Representation Item for this function to succeed.
in_units | The units for the representation item |
in_translation_options | Options used during the translation. |
|
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.
|
static |