Public Types | Public Member Functions | Protected Member Functions

FbxCachedEffect Class Reference

Search for all occurrences

Detailed Description

A cached effect is a type of node attribute to represent certain type of effect by an cache object.

Categories are particle cache, fluid cache, hair cache and general cache.

See also:
ECategory for the effect types that are supported.

Definition at line 28 of file fbxcachedeffect.h.

#include <fbxcachedeffect.h>

Inheritance diagram for FbxCachedEffect:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ECategory { eParticles, eFluids, eHair, eGeneric }
 

Effect attribute category.

More...

Public Member Functions

virtual FbxNodeAttribute::EType GetAttributeType () const
 Returns the FbxNodeAttribute::EType::eCachedEffect attribute type.
ECategory GetCategory () const
 Return the specialization category of this effect attribute.
void SetCache (FbxCache *pCache, ECategory pCategory=eGeneric)
 Assign a cache object to be used by this attribute.
FbxCacheGetCache () const
 Get the cache object used by this node attribute.
virtual const char * GetTypeName () const
virtual FbxStringList GetTypeFlags () const

Protected Member Functions

virtual FbxObjectCopy (const FbxObject &pObject)
 Copy an object content into this object.
virtual void ConstructProperties (bool pForceSet)
 Optional property constructor override, automatically called by default constructor.

Member Enumeration Documentation

enum ECategory

Effect attribute category.

This is for identification purpose and has no influence inside the FBX SDK. However, applications may use this to filter FbxCachedEffect objects.

Remarks:
Vertex caches for deforming geometries are not handled by the FbxCachedEffect object. These caches are connected with the FbxVertexCacheDeformer object.
If an object of this class is used as the default NodeAttribute for a FbxNode and the scene is saved to an FBX v6 and earlier versions, the CachedEffect attribute is not saved and the FbxNode will be processed as a FbxNull node with default values for the attribute.
Enumerator:
eParticles 

This effect handles a particle cache.

eFluids 

This effect handles a fluid cache.

eHair 

This effect handles an hair cache.

eGeneric 

This effect handles a cache other than particles, fluids or hair.

Definition at line 45 of file fbxcachedeffect.h.


Member Function Documentation

virtual FbxNodeAttribute::EType GetAttributeType ( ) const [virtual]

Returns the FbxNodeAttribute::EType::eCachedEffect attribute type.

Reimplemented from FbxNodeAttribute.

ECategory GetCategory ( ) const

Return the specialization category of this effect attribute.

void SetCache ( FbxCache pCache,
ECategory  pCategory = eGeneric 
)

Assign a cache object to be used by this attribute.

Parameters:
pCacheThe cache object.
pCategoryThe type of this cached effect.
Remarks:
The cache referenced by the pCache pointer can be freely shared among multiple FbxCachedEffect (and even the FbxVertexCacheDeformer) therefore pCategory identifier should really only used as a hint of what this FbxCachedEffect represents but it should not be taken for granted that the content of the cache really matches the category. Applications should always check the cache files to ensure that they are manipulating the desired information.
FbxCache* GetCache ( ) const

Get the cache object used by this node attribute.

Returns:
A pointer to the cache object used by this node attribute, or NULL if no cache object is assigned.
virtual FbxObject& Copy ( const FbxObject pObject) [protected, virtual]

Copy an object content into this object.

Parameters:
pObjectThe source object to copy data from.
Returns:
Returns the destination object being modified by the source.
Remarks:
This function replace the assignment operator (operator=). It will copy all property values and the name. Connections are NOT copied.

Reimplemented from FbxObject.

virtual void ConstructProperties ( bool  pForceSet) [protected, virtual]

Optional property constructor override, automatically called by default constructor.

Parameters:
pForceSetIf the property value must be set regardless of default value.
Remarks:
If your object have properties, they must be initialized in this function.

Reimplemented from FbxNodeAttribute.

virtual const char* GetTypeName ( ) const [virtual]
virtual FbxStringList GetTypeFlags ( ) const [virtual]

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

FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect
FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect FbxCachedEffect