Public Types | Public Member Functions | Public Attributes | Static Public Attributes

KFbxSubdiv Class Reference

Search for all occurrences

Detailed Description

Definition at line 52 of file kfbxsubdiv.h.

#include <kfbxsubdiv.h>

Inheritance diagram for KFbxSubdiv:
Inheritance graph
[legend]

List of all members.

Public Types

enum   SubdivScheme { CATMULL_CLARK, DOO_SABIN, LOOP, LINEAR }
enum   TessPattern { ODD_FRACTIONAL, EVEN_FRACTIONAL, INTEGER, POWER2 }
enum   SubdivDisplaySmoothness { HULL, ROUGH, MEDIUM, FINE }

Public Member Functions

void  InitSubdivLevel (int pLevelCount, SubdivScheme pScheme=CATMULL_CLARK, TessPattern pPattern=POWER2)
  InitSubdivLevel Initialize the subdiv.
  KFbxSubdiv (KFbxSdkManager &pManager, char const *pName)
virtual void  Destruct (bool pRecursive, bool pDependents)
virtual
KFbxNodeAttribute::EAttributeType 
GetAttributeType () const
  Returns the node attribute type.
KFbxMesh GetBaseMesh () const
KFbxMesh GetFinestMesh () const
bool  SetFinestMesh (KFbxMesh *pMesh)
bool  SetBaseMesh (KFbxMesh *pMesh)
KFbxMesh GetMesh (int pLevel) const
void  SetSubdivLevelMesh (int pLevel, KFbxMesh *pMesh)
  SetSubdivLevelMesh Set certain subdivision mesh.
int  GetLevelCount () const
void  SetLevelCount (int pLevelCount)
int  GetCurrentLevel () const
void  SetCurrentLevel (int pCurrentLevel)
KFbxMesh GetCurrentMesh () const
KFbxSubdiv::SubdivScheme  GetSubdivScheme () const
KFbxSubdiv::TessPattern  GetTessPattern () const
void  SetSubdivScheme (KFbxSubdiv::SubdivScheme pScheme)
void  SetTessPattern (KFbxSubdiv::TessPattern pPattern)
KFbxSubdiv::SubdivDisplaySmoothness  GetDisplaySmoothness () const
void  SetDisplaySmoothness (KFbxSubdiv::SubdivDisplaySmoothness pSmoothness)

Public Attributes

KArrayTemplate< KFbxMesh * >  mSubDivLevel

Static Public Attributes

static const int  MAX_SUBDIV_LEVEL = 16

Member Enumeration Documentation

Enumerator:
CATMULL_CLARK 
DOO_SABIN 
LOOP 
LINEAR 

Definition at line 58 of file kfbxsubdiv.h.

    {
        CATMULL_CLARK,  //Catmull�CClark subdivision surface
        DOO_SABIN,      //Doo�CSabin subdivision surface
        LOOP,           //Loop subdivision surface
        LINEAR,         //Linear subdivision surface 
    };
Enumerator:
ODD_FRACTIONAL 
EVEN_FRACTIONAL 
INTEGER 
POWER2 

Definition at line 66 of file kfbxsubdiv.h.

    {
        ODD_FRACTIONAL,
        EVEN_FRACTIONAL,
        INTEGER,
        POWER2,      //Max, Maya use this one
    };

Constructor & Destructor Documentation

KFbxSubdiv ( KFbxSdkManager pManager,
char const *  pName 
)

Member Function Documentation

void InitSubdivLevel ( int  pLevelCount,
SubdivScheme  pScheme = CATMULL_CLARK,
TessPattern  pPattern = POWER2 
)

InitSubdivLevel Initialize the subdiv.

Parameters:
pLevelCount number of levels
pScheme subdivision scheme
pPattern Tessellation pattern
virtual void Destruct ( bool  pRecursive,
bool  pDependents 
) [virtual]
virtual KFbxNodeAttribute::EAttributeType GetAttributeType ( ) const [virtual]

Returns the node attribute type.

This method is derived in the more high level classes (KFbxMesh, KFbxNurbs, etc...) and returns the actual type of the geometry object.

Returns:
eUNIDENTIFIED

Reimplemented from KFbxGeometry.

KFbxMesh* GetBaseMesh ( ) const
KFbxMesh* GetFinestMesh ( ) const
bool SetFinestMesh ( KFbxMesh pMesh )
bool SetBaseMesh ( KFbxMesh pMesh )
KFbxMesh* GetMesh ( int  pLevel ) const
void SetSubdivLevelMesh ( int  pLevel,
KFbxMesh pMesh 
)

SetSubdivLevelMesh Set certain subdivision mesh.

Parameters:
pLevel working level
pMesh new level mesh. pLevel = 0 means base mesh, pLevel = MaxLevel -1 means finest mesh
int GetLevelCount ( ) const
void SetLevelCount ( int  pLevelCount )
int GetCurrentLevel ( ) const
void SetCurrentLevel ( int  pCurrentLevel )
KFbxMesh* GetCurrentMesh ( ) const
KFbxSubdiv::SubdivScheme GetSubdivScheme ( ) const
KFbxSubdiv::TessPattern GetTessPattern ( ) const
void SetSubdivScheme ( KFbxSubdiv::SubdivScheme  pScheme )
void SetTessPattern ( KFbxSubdiv::TessPattern  pPattern )
KFbxSubdiv::SubdivDisplaySmoothness GetDisplaySmoothness ( ) const
void SetDisplaySmoothness ( KFbxSubdiv::SubdivDisplaySmoothness  pSmoothness )

Member Data Documentation

const int MAX_SUBDIV_LEVEL = 16 [static]

Definition at line 99 of file kfbxsubdiv.h.

Definition at line 102 of file kfbxsubdiv.h.


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

KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv
KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv KFbxSubdiv