TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iGeometryModifier Struct Referenceabstract
Inheritance diagram for iGeometryModifier:
iUnknown iCharacterSoftwareSkinningGeometryModifier

Detailed Description

Geometry modifier interface.

Public Member Functions

virtual tBool SetGeometry (iGeometry *pGeometry)=0
 Set the geometry to modify. More...
 
virtual iGeometryGetGeometry () const =0
 Get the constant geometry that this modifier modifies. {Property}. More...
 
virtual iGeometryGetModifiedGeometry () const =0
 Return the modified geometry. More...
 
virtual tBool Update ()=0
 Update the modified geometry. More...
 
- Public Member Functions inherited from iUnknown
virtual tBool IsOK () const =0
 Check if the object is valid. More...
 
virtual tI32 AddRef ()=0
 Signal that one more reference of the object has been created. More...
 
virtual tI32 Release ()=0
 Release a reference of the object. More...
 
virtual void DeleteThis ()=0
 Bypass any reference counting and delete this object. More...
 
virtual void Invalidate ()=0
 Invalidate the object. More...
 
virtual iUnknownQueryInterface (const tUUID &aIID)=0
 Query an interface. More...
 
virtual void ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0
 Fill a UUID list containing the UUIDs of the implemented interfaces. More...
 
virtual tI32 SetNumRefs (tI32 anNumRefs)=0
 Set the reference counter directly. More...
 
virtual tI32 GetNumRefs () const =0
 Get the number of references to this object. More...
 

Member Function Documentation

virtual tBool SetGeometry ( iGeometry pGeometry)
pure virtual

Set the geometry to modify.

Returns
eFalse if the given geometry can't be modified, else return eTrue.
Remarks
This may initialize some internal data specific to the modifer and to the geometry that's gonna be modified. So this function is considered as slow. That's why a modifier should be created for each geometry.
If SetGeometry() is recalled with the same geometry as set, to indicate that some data of the geometry have been modified. {Property}
virtual iGeometry* GetGeometry ( ) const
pure virtual

Get the constant geometry that this modifier modifies. {Property}.

virtual iGeometry* GetModifiedGeometry ( ) const
pure virtual

Return the modified geometry.

Returns
NULL if the modified geometry has not been generated correctly, else a pointer to a valid geometry instance. {Property}
virtual tBool Update ( )
pure virtual

Update the modified geometry.

Remarks
This function really do the modification. The modification is done only if it's necessary.
Should be called after a parameter is changed or the input geometry is changed.