KFbxSubdiv Class Reference

#include <kfbxsubdiv.h>
Inheritance diagram for KFbxSubdiv:
Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 52 of file kfbxsubdiv.h.


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 KString  GetTypeName () const
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.

Enumerator:
ODD_FRACTIONAL 
EVEN_FRACTIONAL 
INTEGER 
POWER2 

Definition at line 66 of file kfbxsubdiv.h.

Enumerator:
HULL 
ROUGH 
MEDIUM 
FINE 

Definition at line 74 of file kfbxsubdiv.h.


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 KString GetTypeName (  )  const [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 100 of file kfbxsubdiv.h.

Definition at line 103 of file kfbxsubdiv.h.

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