IMorphArea Struct Reference
[External Interfaces]

Inheritance diagram for IMorphArea:

IMCUnknown List of all members.

Public Member Functions

virtual TMCString &MCCOMAPI GetMorphAreaName ()=0
virtual void MCCOMAPI SetMorphAreaName (TMCString &morphAreaName)=0
 sets the name of an area
virtual int32 MCCOMAPI GetMorphTargetCount ()=0
virtual void MCCOMAPI GetMorphTargetName (const int32 targetIndex, TMCString &morphTargetName)=0
virtual void MCCOMAPI SetMorphTargetName (const int32 targetIndex, TMCString &morphTargetName)=0
virtual real32 MCCOMAPI GetMorphTargetCoef (const int32 targetIndex)=0
virtual void MCCOMAPI SetMorphTargetCoef (const int32 targetIndex, const real32 coef)=0

Detailed Description

Interface for accessing and modifying the data contained in a MorphArea. A MorphArea is a group of vertices that are under the influence of morph targets. This interface allows you to access some of the Morph Target parameters. To create or to set the vertex positions of a Morph Target, use I3DExVertexPrimitive and its methods, such as CreateMorphTarget or SetEditMorph.


Member Function Documentation

virtual TMCString& MCCOMAPI IMorphArea::GetMorphAreaName (   )  [pure virtual]
 

Returns:
the name of the area

virtual real32 MCCOMAPI IMorphArea::GetMorphTargetCoef (  const int32  targetIndex  )  [pure virtual]
 

Gets the coefficient of a specific morph target. This coefficient is animated, so the returned value depends on the current time. It determines the degree to which this morph target applies to the model.

Parameters:
targetIndex Index of the target. Must be < GetMorphTargetCount()
Returns:
the coefficient

virtual int32 MCCOMAPI IMorphArea::GetMorphTargetCount (   )  [pure virtual]
 

Returns:
the number of target countained in this area

virtual void MCCOMAPI IMorphArea::GetMorphTargetName (  const int32  targetIndex,
TMCString &  morphTargetName
)  [pure virtual]
 

Returns the name of a specific target

Parameters:
targetIndex Index of the target. Must be < GetMorphTargetCount()
morphTargetName Returns the name

virtual void MCCOMAPI IMorphArea::SetMorphAreaName (  TMCString &  morphAreaName  )  [pure virtual]
 

sets the name of an area

virtual void MCCOMAPI IMorphArea::SetMorphTargetCoef (  const int32  targetIndex,
const real32  coef
)  [pure virtual]
 

Sets the coefficient of a specific morph target. This coefficient is animated, so depending on the time, a keyframe will be created. This coefficient determines how much the morph target will affect the model. A coefficient of 0 won't cause any deformation from this morph target, while a coefficient of 1 will apply the morph target fully. The coefficient can be greater than 1 or smaller than 0, and the target will be applied correspondingly.

Parameters:
targetIndex Index of the target. Must be < GetMorphTargetCount()
coef the coefficient to set

virtual void MCCOMAPI IMorphArea::SetMorphTargetName (  const int32  targetIndex,
TMCString &  morphTargetName
)  [pure virtual]
 

Set the name of a specific target

Parameters:
targetIndex Index of the target. Must be < GetMorphTargetCount()
morphTargetName Name to set.


The documentation for this struct was generated from the following file:
Generated on Mon Mar 14 12:29:04 2005 for Carrara SDK Doc by  doxygen 1.3.9.1