#include <kfbxgeometry.h>
Inherits KFbxGeometryBase.
Inherited by KFbxBoundary, KFbxMesh, KFbxNurb, KFbxNurbsCurve, KFbxNurbsSurface, KFbxPatch, and KFbxTrimNurbsSurface.
Inheritance diagram for KFbxGeometry:
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 83 of file kfbxgeometry.h.
Error Management | |
enum | EError |
Error identifiers. More... | |
KError & | GetError () |
Retrieve error object. | |
EError | GetLastErrorID () |
Get last error code. | |
char * | GetLastErrorString () |
Get last error string. | |
Link Management | |
Links have been deprecated on geometry. Instead of having links connected to the geometry, you have a skin deformer (KFbxSkin). This skin deformer is connected to cluster sub deformers that are equivalent to links.
To create a skin deformer use: KFbxSdkManager::CreateKFbxSkin. To add the newly created deformer to the geometry use: FKbxGeometry::AddDeformer. To check if a skin deformer is connected to a geometry use: KFbxGeometry::GetDeformerCount(KFbxDeformer::eSKIN). To get a handle to a skin deformer use: KFbxGeometry::GetDeformer(0, KFbxDeformer::eSKIN). | |
K_DEPRECATED int | AddLink (KFbxLink *pLink) |
Add a link. | |
K_DEPRECATED void | ClearLink () |
Remove all links without destroying them. | |
K_DEPRECATED int | GetLinkCount () |
Get the number of links. | |
K_DEPRECATED KFbxLink * | GetLink (int pIndex) |
Get link at given index. | |
Deformer Management | |
int | AddDeformer (KFbxDeformer *pDeformer) |
Add a deformer. | |
int | GetDeformerCount () const |
Get the number of deformers. | |
KFbxDeformer * | GetDeformer (int pIndex) |
Get deformer at given index. | |
KFbxDeformer const * | 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) |
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 (KFbxTakeNode *pTakeNode, int pShapeIndex) |
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.
The default animation values are found in the default take node of the associated node. 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. | |
double | GetDefaultShape (int pIndex) |
Get default deformation for a given shape. | |
Public Types | |
enum | ESurfaceMode |
Types of surfaces. More... | |
Public Member Functions | |
virtual EAttributeType | GetAttributeType () const |
Return the type of node attribute. |
enum ESurfaceMode |
Types of surfaces.
Definition at line 283 of file kfbxgeometry.h.
enum EError |
Error identifiers.
Reimplemented in KFbxNurbsCurve.
Definition at line 369 of file kfbxgeometry.h.
virtual EAttributeType GetAttributeType | ( | ) | const [inline, 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.
Definition at line 91 of file kfbxgeometry.h.
K_DEPRECATED int AddLink | ( | KFbxLink * | pLink | ) |
Add a link.
pLink | Pointer to the link object to add. |
K_DEPRECATED void ClearLink | ( | ) |
Remove all links without destroying them.
If links aren't explicitly destroyed before calling this function, they will be destroyed along with the SDK manager.
K_DEPRECATED int GetLinkCount | ( | ) |
Get the number of links.
K_DEPRECATED KFbxLink* GetLink | ( | int | pIndex | ) |
Get link at given index.
pIndex | Index of link. |
NULL
if pIndex is out of range. In this case, KFbxGeometry::GetLastErrorID() returns eINDEX_OUT_OF_RANGE. 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 | ) |
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. KFbxDeformer const* 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 | |||
) |
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 | ( | KFbxTakeNode * | pTakeNode, | |
int | pShapeIndex | |||
) | [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.
pTakeNode | Take node. | |
pShapeIndex | Shape index. |
NULL
.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. |
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.
pShapeName | Shape name. |
KError& GetError | ( | ) |
Retrieve error object.
EError GetLastErrorID | ( | ) |
Get last error code.
char* GetLastErrorString | ( | ) |
Get last error string.