#include
<kfbxgeometry.h>
A geometry node attribute has arrays of links, shapes, materials and textures. It also has arrays for control points, normals, material indices, texture indices, and texture UV coordinates. Some of these are only used in mesh node attributes.
Definition at line 74 of file kfbxgeometry.h.
Error Management |
|
enum | EError |
Error identifiers. More... |
|
KError & | GetError () |
Retrieve error object. |
|
EError | GetLastErrorID () const |
Get last error code. |
|
const char * | GetLastErrorString () const |
Get last error string. |
|
Deformer Management |
|
int | AddDeformer (KFbxDeformer *pDeformer) |
Add a deformer. |
|
int | GetDeformerCount () const |
Get the number of deformers. |
|
KFbxDeformer * | GetDeformer (int pIndex) const |
Get deformer at given index. |
|
int | GetDeformerCount (KFbxDeformer::EDeformerType pType) const |
Get the number of deformers of a given type.
|
|
KFbxDeformer * | GetDeformer (int pIndex, KFbxDeformer::EDeformerType pType) const |
Get deformer of a gieven type at given
index. |
|
Connected Geometry Weighted Map(s) Management |
|
KFbxGeometryWeightedMap * | GetSourceGeometryWeightedMap () |
Return the source geometry weighted map
connected. |
|
int | GetDestinationGeometryWeightedMapCount () |
Get the number of destination geometry
weighted map(s) connected. |
|
KFbxGeometryWeightedMap * | GetDestinationGeometryWeightedMap (int pIndex) |
Get destination geometry weighted map at a
given index. |
|
Shape Management |
|
virtual int | AddShape (KFbxShape *pShape, char const *pShapeName) |
Add a shape and its associated name.
|
|
virtual void | ClearShape () |
Removes all shapes without destroying them.
|
|
virtual int | GetShapeCount () const |
Get the number of shapes. |
|
virtual KFbxShape * | GetShape (int pIndex) |
Get shape at given index. |
|
virtual KFbxShape const * | GetShape (int pIndex) const |
Get shape at given index. |
|
virtual char const * | GetShapeName (int pIndex) const |
Get shape name at given index. |
|
virtual KFCurve * | GetShapeChannel (char const *pShapeName, bool pCreateAsNeeded=false, char const *pTakeName=NULL) |
Get a shape channel. |
|
virtual KFCurve * | GetShapeChannel (int pIndex, bool pCreateAsNeeded=false, char const *pTakeName=NULL) |
Get a shape channel. |
|
Pivot Management |
|
The geometry pivot is used to specify additional
translation, rotation, and scaling applied to all the control
points when the model is exported. |
|
KFbxXMatrix & | GetPivot (KFbxXMatrix &pXMatrix) const |
Get pivot matrix. |
|
void | SetPivot (KFbxXMatrix &pXMatrix) |
Set pivot matrix. |
|
void | ApplyPivot () |
Apply the pivot matrix to all
vertices/normals of the geometry. |
|
Default Animation Values |
|
These functions provides direct access to default
animation values specific to a geometry.
These functions only work if the geometry has been associated
with a node. |
|
void | SetDefaultShape (int pIndex, double pPercent) |
Set default deformation for a given shape.
|
|
void | SetDefaultShape (char const *pShapeName, double pPercent) |
Set default deformation for a given shape.
|
|
double | GetDefaultShape (int pIndex) |
Get default deformation for a given shape.
|
|
double | GetDefaultShape (char const *pShapeName) |
Get default deformation for a given shape.
|
|
Public Types |
|
enum | ESurfaceMode |
Surface modes This information is only used
in nurbs and patches. More... |
|
Public Member Functions |
|
virtual EAttributeType | GetAttributeType () const |
Return the type of node attribute. |
|
virtual KFbxObject * | Clone (KFbxObject *pContainer, KFbxObject::ECloneType pCloneType) const |
Creates a clone of this object. |
enum ESurfaceMode |
Surface modes This information is only used in nurbs and patches.
Types of surfaces.
Definition at line 237 of file kfbxgeometry.h.
enum EError |
Error identifiers.
Reimplemented in KFbxNurbsCurve.
Definition at line 337 of file kfbxgeometry.h.
virtual EAttributeType GetAttributeType | ( | ) | const [virtual] |
Return the type of node attribute.
This class is pure virtual.
Reimplemented from KFbxLayerContainer.
Reimplemented in KFbxMesh, KFbxNurb, KFbxNurbsCurve, KFbxNurbsSurface, KFbxPatch, KFbxBoundary, and KFbxTrimNurbsSurface.
int AddDeformer | ( | KFbxDeformer * | pDeformer | ) |
Add a deformer.
pDeformer | Pointer to the deformer object to add. |
int GetDeformerCount | ( | ) | const |
Get the number of deformers.
KFbxDeformer* GetDeformer | ( | int | pIndex | ) | const |
Get deformer at given index.
pIndex | Index of deformer. |
NULL
if pIndex is out of
range. In this case, KFbxGeometry::GetLastErrorID() returns
eINDEX_OUT_OF_RANGE.int GetDeformerCount | ( | KFbxDeformer::EDeformerType | pType | ) | const |
Get the number of deformers of a given type.
pType | Type of deformer to count |
KFbxDeformer* GetDeformer | ( | int | pIndex, | |
KFbxDeformer::EDeformerType | pType | |||
) | const |
Get deformer of a gieven type at given index.
pIndex | Index of deformer. | |
pType | Type of deformer. |
NULL
if pIndex is out of
range. In this case, KFbxGeometry::GetLastErrorID() returns
eINDEX_OUT_OF_RANGE.KFbxGeometryWeightedMap* GetSourceGeometryWeightedMap | ( | ) |
Return the source geometry weighted map connected.
int GetDestinationGeometryWeightedMapCount | ( | ) |
Get the number of destination geometry weighted map(s) connected.
KFbxGeometryWeightedMap* GetDestinationGeometryWeightedMap | ( | int | pIndex | ) |
Get destination geometry weighted map at a given index.
pIndex | Index of link. |
virtual int AddShape | ( | KFbxShape * | pShape, | |
char const * | pShapeName | |||
) | [virtual] |
Add a shape and its associated name.
pShape | Pointer to the shape object. | |
pShapeName | Name given to the shape. |
NULL
.Reimplemented in KFbxTrimNurbsSurface.
virtual void ClearShape | ( | ) | [virtual] |
Removes all shapes without destroying them.
If shapes aren't explicitly destroyed before calling this function, they will be destroyed along with the SDK manager.
Reimplemented in KFbxTrimNurbsSurface.
virtual int GetShapeCount | ( | ) | const [virtual] |
Get the number of shapes.
Reimplemented in KFbxTrimNurbsSurface.
virtual KFbxShape* GetShape | ( | int | pIndex | ) | [virtual] |
Get shape at given index.
pIndex | Index of shape. |
NULL
if pIndex is out of
range. In this case, KFbxGeometry::GetLastErrorID() returns
eINDEX_OUT_OF_RANGE.Reimplemented in KFbxTrimNurbsSurface.
virtual KFbxShape const* GetShape | ( | int | pIndex | ) | const [virtual] |
Get shape at given index.
pIndex | Index of shape. |
NULL
if pIndex is out of
range. In this case, KFbxGeometry::GetLastErrorID() returns
eINDEX_OUT_OF_RANGE.Reimplemented in KFbxTrimNurbsSurface.
virtual char const* GetShapeName | ( | int | pIndex | ) | const [virtual] |
Get shape name at given index.
pIndex | Index of shape. |
NULL
if pIndex is out of range. In
this case, KFbxGeometry::GetLastErrorID() returns
eINDEX_OUT_OF_RANGE.Reimplemented in KFbxTrimNurbsSurface.
virtual KFCurve* GetShapeChannel | ( | char const * | pShapeName, | |
bool | pCreateAsNeeded =
false , |
|||
char const * | pTakeName = NULL |
|||
) | [virtual] |
Get a shape channel.
The shape channel property has a scale from 0 to 100, 100 meaning full shape deformation. The default value is 0.
pShapeName | Shape Property name. | |
pCreateAsNeeded | If true, the fcurve is created if not already present. | |
pTakeName | Take from which we want the FCurve (if NULL, use the current take). |
virtual KFCurve* GetShapeChannel | ( | int | pIndex, | |
bool | pCreateAsNeeded =
false , |
|||
char const * | pTakeName = NULL |
|||
) | [virtual] |
Get a shape channel.
The shape channel property has a scale from 0 to 100, 100 meaning full shape deformation. The default value is 0.
pIndex | Shape index. | |
pCreateAsNeeded | If true, the fcurve is created if not already present. | |
pTakeName | Take from which we want the FCurve (if NULL, use the current take). |
Reimplemented in KFbxTrimNurbsSurface.
KFbxXMatrix& GetPivot | ( | KFbxXMatrix & | pXMatrix | ) | const |
Get pivot matrix.
pXMatrix | Placeholder for the returned matrix. |
void SetPivot | ( | KFbxXMatrix & | pXMatrix | ) |
Set pivot matrix.
pXMatrix | The Transformation matrix. |
void ApplyPivot | ( | ) |
Apply the pivot matrix to all vertices/normals of the geometry.
void SetDefaultShape | ( | int | pIndex, | |
double | pPercent | |||
) |
Set default deformation for a given shape.
The default shape property has a scale from 0 to 100, 100 meaning full shape deformation. The default value is 0.
pIndex | Shape index. | |
pPercent | Deformation percentage on a scale ranging from 0 to 100. |
void SetDefaultShape | ( | char const * | pShapeName, | |
double | pPercent | |||
) |
Set default deformation for a given shape.
The default shape property has a scale from 0 to 100, 100 meaning full shape deformation. The default value is 0.
pShapeName | Shape name. | |
pPercent | Deformation percentage on a scale ranging from 0 to 100. |
double GetDefaultShape | ( | int | pIndex | ) |
Get default deformation for a given shape.
The default shape property has a scale from 0 to 100, 100 meaning full shape deformation. The default value is 0.
pIndex | Shape index. |
double GetDefaultShape | ( | char const * | pShapeName | ) |
Get default deformation for a given shape.
The default shape property has a scale from 0 to 100, 100 meaning full shape deformation. The default value is 0.
pShapeName | Shape name. |
KError& GetError | ( | ) |
Retrieve error object.
EError GetLastErrorID | ( | ) | const |
Get last error code.
const char* GetLastErrorString | ( | ) | const |
Get last error string.
virtual KFbxObject* Clone | ( | KFbxObject * | pContainer, | |
KFbxObject::ECloneType | pCloneType | |||
) | const [virtual] |
Creates a clone of this object.
pContainer | The object, typically a document or a scene, that contains the new clone(can be NULL). | |
pCloneType | The type of clone to be created. |
Reimplemented from KFbxNodeAttribute.
Reimplemented in KFbxNurbsCurve, and KFbxProceduralGeometry.