# I3DShPrimitiveComponent Struct Reference
[Shell Interfaces]

Inheritance diagram for I3DShPrimitiveComponent:

List of all members.

## Public Member Functions
virtual void MCCOMAPI | GetPrimitive (I3DShPrimitive **primitive)=0
virtual MCCOMErr MCCOMAPI | GetExternalPrimitive (IMCUnknown **extPrimitive)=0
virtual void MCCOMAPI | GetMasterObject (I3DShObject **object)=0
| Returns a pointer to the master object associated with the primitive component.

## Detailed Description

I3DShPrimitiveComponent provides access to the External Primitive attached to it (see I3DShExternalPrimitive).

Other interfaces supported: IShComponent, I3DExGeometricPrimitive

## Member Function Documentation

virtual MCCOMErr MCCOMAPI I3DShPrimitiveComponent::GetExternalPrimitive | ( | IMCUnknown ** | extPrimitive | ) | `[pure virtual]`

Returns a pointer to the external part of the primitive (I3DExGeometricPrimitive). Note that the name of this function is confusing. It refers to the C++ object located in an external plugin by opposition to the object located inside the Shell. It should not be confused with I3DShExternalPrimitive which is the interface of a internal primitive that is implemented using a component.

Parameters:

  | extPrimitive | A pointer to the primitive that is returned.

virtual void MCCOMAPI I3DShPrimitiveComponent::GetMasterObject | ( | I3DShObject ** | object | ) | `[pure virtual]`

Returns a pointer to the master object associated with the primitive component.

Parameters:

  | object | A pointer to the master object that is returned.

virtual void MCCOMAPI I3DShPrimitiveComponent::GetPrimitive | ( | I3DShPrimitive ** | primitive | ) | `[pure virtual]`

Returns a pointer to the external primitive associated with this component. (see I3DShExternalPrimitive).

Parameters:

  | primitive | A pointer to the primitive associated with this component.

The documentation for this struct was generated from the following file:

- I3dShObject.h