#include <FCDGeometry.h>
Inheritance diagram for FCDGeometry:
Public Member Functions | |
FCDGeometry (FCDocument *document) | |
Contructor: do not use directly. | |
virtual | ~FCDGeometry () |
Destructor: only release cloned geometries directly. | |
virtual Type | GetType () const |
Retrieves the entity class type. | |
bool | IsMesh () const |
Retrieves whether the type of this geometry is a mesh. | |
FCDGeometryMesh * | GetMesh () |
Retrieves the mesh information structure for this geometry. | |
const FCDGeometryMesh * | GetMesh () const |
See above. | |
FCDGeometryMesh * | CreateMesh () |
Sets the type of this geometry to mesh and creates an empty mesh structure. | |
bool | IsSpline () const |
Retrieves whether the type of this geometry is a spline. | |
FCDGeometrySpline * | GetSpline () |
Retrieves the spline information structure for this geometry. | |
const FCDGeometrySpline * | GetSpline () const |
See above. | |
FCDGeometrySpline * | CreateSpline () |
Sets the type of this geometry to spline and creates an empty spline structure. | |
FCDGeometry * | Clone (FloatList &newPositions, uint32 newPositionsStride, FloatList &newNormals, uint32 newNormalsStride) |
virtual FUStatus | LoadFromXML (xmlNode *node) |
[INTERNAL] Reads in the <geometry> element from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the <geometry> element to the given COLLADA XML tree node. |
There are two types of COLLADA geometry entities: meshes and splines.
Meshes are collections of polygons where the vertices always have a position, usually have a normal to define smooth or hard edges and may be colored or textured.
Splines are a sequence of control points used to generate a smooth curve.
|
Contructor: do not use directly. Create new geometries using the FCDocument::AddGeometry function, or the FCDLibrary::AddEntity function.
|
|
Destructor: only release cloned geometries directly. Release original geometries using the FCDLibrary::ReleaseEntity function. All original geometries are released with the document that they belong to. |
|
|
|
Sets the type of this geometry to mesh and creates an empty mesh structure. This function will release any mesh or spline structure that the geometry may already contain
|
|
Sets the type of this geometry to spline and creates an empty spline structure. This function will release any mesh or spline structure that the geometry may already contain.
|
|
Retrieves the mesh information structure for this geometry. Verify that this geometry is a mesh using the IsMesh function prior to calling this function.
|
|
Retrieves the spline information structure for this geometry. Verify that this geometry is a spline using the IsSpline function prior to calling this function.
|
|
Retrieves the entity class type. This function is a part of the FCDEntity interface.
Reimplemented from FCDEntity. |
|
Retrieves whether the type of this geometry is a mesh.
|
|
Retrieves whether the type of this geometry is a spline.
|
|
[INTERNAL] Reads in the <geometry> element from a given COLLADA XML tree node.
Reimplemented from FCDEntity. |
|
[INTERNAL] Writes out the <geometry> element to the given COLLADA XML tree node.
Reimplemented from FCDEntity. |