
Public Member Functions | |
void | AddKey (HPS.Key in_key) |
void | AddOwner (HPS.Component in_owner, HPS.IncludeKey in_include) |
void | AddOwner (HPS.Component in_owner) |
void | AddReference (HPS.Component in_reference) |
bool | AddTransform (HPS.MatrixKit in_transform) |
virtual void | Assign (HPS.Component in_that) |
Component () | |
Component (HPS.Component in_that) | |
HPS.Component | CopyTo (HPS.Component in_new_owner) |
void | Delete (HPS.Component.DeleteMode mode) |
void | Delete () |
override void | Dispose () |
override bool | Equals (System.Object obj) |
bool | Equals (HPS.Component in_that) |
void | Flush () |
HPS.Metadata [] | GetAllMetadata () |
HPS.Component [] | GetAllSubcomponents (HPS.Component.ComponentType in_type) |
HPS.Component.ComponentType | GetComponentType () |
override int | GetHashCode () |
HPS.Key [] | GetKeys () |
HPS.Metadata | GetMetadata (string in_name) |
string | GetName () |
HPS.Component [] | GetOwners () |
HPS.Component [] | GetReferences () |
HPS.Component [] | GetReferrers () |
HPS.Component [] | GetSubcomponents () |
bool | HasComponentType (HPS.Component.ComponentType in_mask) |
override HPS.Type | ObjectType () |
bool | SetName (string in_new_name) |
bool | SetTransform (HPS.MatrixKit in_transform) |
![]() | |
override void | Dispose () |
Sprocket (HPS.Sprocket in_that) | |
![]() | |
virtual bool | Empty () |
IntPtr | GetClassID () |
IntPtr | GetInstanceID () |
bool | HasType (HPS.Type in_mask) |
Object (HPS.Object that) | |
virtual void | Reset () |
virtual HPS.Type | Type () |
Static Public Member Functions | |
static HPS.KeyPath [] | GetKeyPath (HPS.Component in_component) |
static HPS.KeyPath [] | GetKeyPath (HPS.Component[] in_components) |
static bool | operator!= (HPS.Component a, HPS.Component b) |
static bool | operator== (HPS.Component a, HPS.Component b) |
![]() | |
static IntPtr | ClassID< T > () |
Protected Member Functions | |
override void | deleteCptr () |
![]() | |
override void | deleteCptr () |
![]() | |
virtual IntPtr | GetNonDirectorClassID () |
Additional Inherited Members | |
![]() | |
bool | cMemOwn |
HandleRef | cptr |
Detailed Description
The Component class is a smart pointer. It represents an arbitrary component of a structured file.
Member Enumeration Documentation
◆ ComponentType
|
strong |
Enumerates the format-dependent types a Component can represent.
Enumerator | |
---|---|
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. |
◆ DeleteMode
|
strong |
Enumerates whether The Delete operation will use the mode Standard, Full or StandardAndExchange.
Constructor & Destructor Documentation
◆ Component() [1/2]
|
inline |
◆ Component() [2/2]
|
inline |
Member Function Documentation
◆ AddKey()
|
inline |
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.
- Parameters
-
in_key The key to associate with this Component.
◆ AddOwner() [1/2]
|
inline |
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.
- Parameters
-
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.
◆ AddOwner() [2/2]
|
inline |
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.
◆ AddReference()
|
inline |
◆ AddTransform()
|
inline |
Appends a transform to the underlying PRC or Parasolid data associated with this component.
- Parameters
-
in_transform The transform to apply to this component.
- Returns
- true if transform was applied correctly, false otherwise.
◆ Assign()
|
inlinevirtual |
◆ CopyTo()
|
inline |
Creates a deep copy of this component under another component. Please note how entity copying is handled for each type of entity:
◆ Delete() [1/2]
|
inline |
The behavior of the Delete function varies according to the type of object it's being called on.
◆ Delete() [2/2]
|
inline |
The behavior of the Delete function varies according to the type of object it's being called on.
◆ Equals()
|
inline |
◆ Flush()
|
inline |
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.
◆ GetAllMetadata()
|
inline |
◆ GetAllSubcomponents()
|
inline |
◆ GetComponentType()
|
inline |
◆ GetKeyPath() [1/2]
|
inlinestatic |
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.
◆ GetKeyPath() [2/2]
|
inlinestatic |
Gets the list of KeyPath objects that correspond to the given ComponentPath. This function can be used to get the KeyPath for a particular instance of an instanced Component. For a non-instanced Component, since the ComponentPath 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.
- Parameters
-
in_components The ComponentPath 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.
◆ GetKeys()
|
inline |
◆ GetMetadata()
|
inline |
◆ GetName()
|
inline |
◆ GetOwners()
|
inline |
◆ GetReferences()
|
inline |
◆ GetReferrers()
|
inline |
Gets the Component objects which refer to this Component (if any). These relationships are defined in the original CAD file and can be arbitrarily assigned between Components. <linebreak><linebreak> For the Exchange implementation of the Component hierarchy, Referrers will typically indicate which PMI elements refer to the Component being inspected.
◆ GetSubcomponents()
|
inline |
◆ HasComponentType()
|
inline |
◆ ObjectType()
|
inlinevirtual |
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.
Reimplemented from HPS.Object.
Reimplemented in HPS.Parasolid.CADModel, HPS.Parasolid.Component, HPS.Exchange.Filter, HPS.Exchange.Capture, HPS.Exchange.CADModel, HPS.Exchange.ProductOccurrence, HPS.Exchange.Sheet, HPS.DWG.CADModel, HPS.Exchange.Component, HPS.DWG.Layer, HPS.DWG.Component, HPS.DWG.Layout, and HPS.Filter.
◆ SetName()
|
inline |
Sets the name for this component.
- Returns
- true if the name was set successfully, false otherwise.
◆ SetTransform()
|
inline |
Applies a transform to the underlying PRC or Parasolid data associated with this component, replacing any transforms currently set on it.
- Parameters
-
in_transform The transform to apply to this component.
- Returns
- true if transform was applied correctly, false otherwise.
The documentation for this class was generated from the following file:
- internals/hps_sprk/source/cs/HPS.Component.cs