#include<kfbxtrimnurbssurface.h>
Definition at line158of filekfbxtrimnurbssurface.h.
Public Member Functions | |
virtual EAttributeType | GetAttributeType() const |
Return the type of node attribute. | |
int | GetTrimRegionCount() const |
Returns the number of regions on this trimmed nurbs surface. | |
void | BeginTrimRegion() |
Call this before adding boundaries for a new trim region. | |
void | EndTrimRegion() |
Call this after the last boundary for a given region is added. | |
bool | AddBoundary(KFbxBoundary*pBoundary) |
Appends a trimming boundary to the set of trimming boundaries. | |
KFbxBoundary* | GetBoundary(int pIndex, int pRegionIndex=0) |
Gets the boundary at a given index for a given region. | |
int | GetBoundaryCount(int pRegionIndex=0) const |
Gets the number of boundaries on this surface. | |
void | SetNurbsSurface(KFbxNurbsSurfaceconst *pNurbs) |
Set the nurbs surface that will be trimmed by the trimming boundaries. | |
KFbxNurbsSurface* | GetNurbsSurface() |
Gets the untrimmed surface that is trimmed by the trim boundaries. | |
KFbxNurbsSurfaceconst * | GetNurbsSurface() const |
Gets the untrimmed surface that is trimmed by the trim boundaries. | |
void | SetFlipNormals(bool pFlip) |
The normals of the surface can be reversed to reverse the surface. | |
bool | GetFlipNormals() const |
Check if the normals are flipped. | |
virtual int | GetControlPointsCount() const |
Get the number of control points. | |
virtualKFbxVector4* | GetControlPoints() const |
Get a pointer to the array of control points. | |
Shape Management | |
virtual int | AddShape(KFbxShape*pShape, char const *pShapeName) |
Shapes on trim nurbs are stored on the untrimmed surface. | |
virtual void | ClearShape() |
Shapes on trim nurbs are stored on the untrimmed surface. | |
virtual int | GetShapeCount() const |
Shapes on trim nurbs are stored on the untrimmed surface. | |
virtualKFbxShape* | GetShape(int pIndex) |
Shapes on trim nurbs are stored on the untrimmed surface. | |
virtualKFbxShapeconst * | GetShape(int pIndex) const |
Shapes on trim nurbs are stored on the untrimmed surface. | |
virtual char const * | GetShapeName(int pIndex) const |
Shapes on trim nurbs are stored on the untrimmed surface. | |
virtualKFCurve* | GetShapeChannel(int pIndex, bool pCreateAsNeeded=false, char const *pTakeName=NULL) |
Shapes on trim nurbs are stored on the untrimmed surface. |
virtual EAttributeType GetAttributeType | ( | ) | const[inline, virtual] |
Return the type of node attribute.
Reimplemented fromKFbxGeometry.
Definition at line163of filekfbxtrimnurbssurface.h.
int GetTrimRegionCount | ( | ) | const |
Returns the number of regions on this trimmed nurbs surface.
Note there is at always at least one trim region.
void BeginTrimRegion | ( | ) |
Call this before adding boundaries for a new trim region.
The number of regions is incremented on this call.
void EndTrimRegion | ( | ) |
Call this after the last boundary for a given region is added.
If no boundaries are added inbetween calls to BeginTrimRegion and EndTrimRegion, the last region is removed.
bool AddBoundary | ( | KFbxBoundary* | pBoundary | ) |
Appends a trimming boundary to the set of trimming boundaries.
The first boundary specified for a given trim region should be the outer boundary. All other boundaries are inner boundaries. This must be called after a call toBeginTrimRegion(). Boundaries cannot be shared among regions. Duplicate the boundary if nessecary. SeeKFbxBoundary
pBoundary | The boundary to add. |
KFbxBoundary* GetBoundary | ( | int | pIndex, | |
int | pRegionIndex=0 | |||
) |
Gets the boundary at a given index for a given region.
pIndex | The index of the boundary to retrieve. No bounds checking is done. | |
pRegionIndex | The index of the region which is bound by the boundary. |
int GetBoundaryCount | ( | int | pRegionIndex=0 | ) | const |
Gets the number of boundaries on this surface.
void SetNurbsSurface | ( | KFbxNurbsSurfaceconst * | pNurbs | ) |
Set the nurbs surface that will be trimmed by the trimming boundaries.
pNurbs | Nurbs |
KFbxNurbsSurface* GetNurbsSurface | ( | ) |
Gets the untrimmed surface that is trimmed by the trim boundaries.
KFbxNurbsSurfaceconst* GetNurbsSurface | ( | ) | const |
Gets the untrimmed surface that is trimmed by the trim boundaries.
void SetFlipNormals | ( | bool | pFlip | ) | [inline] |
The normals of the surface can be reversed to reverse the surface.
pFlip | If true, the surface is reversed, else the surface is not reversed. |
Definition at line229of filekfbxtrimnurbssurface.h.
bool GetFlipNormals | ( | ) | const[inline] |
Check if the normals are flipped.
Definition at line234of filekfbxtrimnurbssurface.h.
virtual int AddShape | ( | KFbxShape* | pShape, | |
char const * | pShapeName | |||
) | [virtual] |
Shapes on trim nurbs are stored on the untrimmed surface.
Thus, this is equivalent to callingGetNurbsSurface()->AddShape()SeeKFbxGeometry::AddShape()for method description.
Reimplemented fromKFbxGeometry.
virtual void ClearShape | ( | ) | [virtual] |
Shapes on trim nurbs are stored on the untrimmed surface.
Thus, this is equivalent to callingGetNurbsSurface()->ClearShape()SeeKFbxGeometry::ClearShape()for method description.
Reimplemented fromKFbxGeometry.
virtual int GetShapeCount | ( | ) | const[virtual] |
Shapes on trim nurbs are stored on the untrimmed surface.
Thus, this is equivalent to callingGetNurbsSurface()->GetShapeCount()SeeKFbxGeometry::GetShapeCount()for method description.
Reimplemented fromKFbxGeometry.
virtualKFbxShape* GetShape | ( | int | pIndex | ) | [virtual] |
Shapes on trim nurbs are stored on the untrimmed surface.
Thus, this is equivalent to callingGetNurbsSurface()->GetShape()SeeKFbxGeometry::GetShape()for method description.
Reimplemented fromKFbxGeometry.
virtualKFbxShapeconst* GetShape | ( | int | pIndex | ) | const[virtual] |
Shapes on trim nurbs are stored on the untrimmed surface.
Thus, this is equivalent to callingGetNurbsSurface()->GetShape()SeeKFbxGeometry::GetShape()for method description.
Reimplemented fromKFbxGeometry.
virtual char const* GetShapeName | ( | int | pIndex | ) | const[virtual] |
Shapes on trim nurbs are stored on the untrimmed surface.
Thus, this is equivalent to callingGetNurbsSurface()->GetShapeName()SeeKFbxGeometry::GetShapeName()for method description.
Reimplemented fromKFbxGeometry.
virtualKFCurve* GetShapeChannel | ( | int | pIndex, | |
bool | pCreateAsNeeded=false , | |||
char const * | pTakeName=NULL | |||
) | [virtual] |
Shapes on trim nurbs are stored on the untrimmed surface.
Thus, this is equivalent to callingGetNurbsSurface()->GetShapeChannel()SeeKFbxGeometry::GetShapeChannel()for method description.
Reimplemented fromKFbxGeometry.
virtual int GetControlPointsCount | ( | ) | const[virtual] |
Get the number of control points.
Reimplemented fromKFbxGeometryBase.
virtualKFbxVector4* GetControlPoints | ( | ) | const[virtual] |
Get a pointer to the array of control points.
NULL
if the array has not been allocated.Reimplemented fromKFbxGeometryBase.