#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 line81of filekfbxgeometry.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::EDeformerTypepType) const |
Get the number of deformers of a given type. | |
KFbxDeformer* | GetDeformer(int pIndex,KFbxDeformer::EDeformerTypepType) 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. | |
virtualKFbxShape* | GetShape(int pIndex) |
Get shape at given index. | |
virtualKFbxShapeconst * | GetShape(int pIndex) const |
Get shape at given index. | |
virtual char const * | GetShapeName(int pIndex) const |
Get shape name at given index. | |
virtualKFCurve* | GetShapeChannel(char const *pShapeName, bool pCreateAsNeeded=false, char const *pTakeName=NULL) |
Get a shape channel. | |
virtualKFCurve* | 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. | |
virtualKFbxObject* | Clone(KFbxObject*pContainer,KFbxObject::ECloneTypepCloneType) const |
Creates a clone of this object. |
enumESurfaceMode |
Surface modes This information is only used in nurbs and patches.
Types of surfaces.
Definition at line244of filekfbxgeometry.h.
enumEError |
Error identifiers.
Reimplemented inKFbxNurbsCurve.
Definition at line344of filekfbxgeometry.h.
virtual EAttributeType GetAttributeType | ( | ) | const[virtual] |
Return the type of node attribute.
This class is pure virtual.
Reimplemented fromKFbxLayerContainer.
Reimplemented inKFbxMesh,KFbxNurb,KFbxNurbsCurve,KFbxNurbsSurface,KFbxPatch,KFbxBoundary, andKFbxTrimNurbsSurface.
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 inKFbxTrimNurbsSurface.
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 inKFbxTrimNurbsSurface.
virtual int GetShapeCount | ( | ) | const[virtual] |
Get the number of shapes.
Reimplemented inKFbxTrimNurbsSurface.
virtualKFbxShape* 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 inKFbxTrimNurbsSurface.
virtualKFbxShapeconst* 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 inKFbxTrimNurbsSurface.
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 inKFbxTrimNurbsSurface.
virtualKFCurve* 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). |
virtualKFCurve* 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 inKFbxTrimNurbsSurface.
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.
EErrorGetLastErrorID | ( | ) | const |
Get last error code.
const char* GetLastErrorString | ( | ) | const |
Get last error string.
virtualKFbxObject* Clone | ( | KFbxObject* | pContainer, | |
KFbxObject::ECloneType | pCloneType | |||
) | const[virtual] |
Creates a clone of this object.
pContainer | The object, typically a document or scene, that will contain the new clone. Can be NULL. | |
pCloneType | The type of clone to create |
Reimplemented fromKFbxNodeAttribute.
Reimplemented inKFbxNurbsCurve, andKFbxProceduralGeometry.