#include <ac3dobject.h>
Public Member Functions | |
| AC3DObject (stringstream &data) | |
| void | AddKid (AC3DObject *kid) |
| bool | IsTranslucent () const |
| string | GetName () const |
| unsigned int | GetNumberKid () const |
| const string & | GetTextureFile () const |
| const float * | GetLoc () const |
| const vector< Vertex > & | GetVVertex () const |
| const vector< AC3DSurface * > & | GetVPSurface () const |
| const vector< AC3DObject * > & | GetVPObject () const |
| void | Parse (stringstream &data) |
| string | ToStr () const |
Private Member Functions | |
| void | ac3dSetDefault () |
| void | ac3dobjectParseVertex (unsigned int nb, stringstream &data, char *buffer) |
| void | ac3dobjectParseSurface (unsigned int nb, stringstream &data, char *buffer) |
Private Attributes | |
| OBJECT_TYPE | type |
| Object's type. | |
| string | strName |
| Content of the "name" command. | |
| int | iData |
| Not used. | |
| string | strTexture |
| Texture file name. | |
| float | fTexRep [2] |
| Default (1, 1). The texture repeat values for the tiling of a texture on an object's surfaces. | |
| float | fRot [9] |
| Rotation matrix. | |
| float | fLoc [3] |
| Translation vector. | |
| float | fCrease |
| Angle in degrees for calculating normals for smoothing. | |
| string | strURL |
| The URL of the file. | |
| uint | uiNumVert |
| Number of vertices in this object. | |
| vector< Vertex > | vVertex |
| Table of vertices. | |
| uint | uiNumSurf |
| Number of surfaces of this object. | |
| vector< AC3DSurface * > | vpSurface |
| Table of surfaces. | |
| uint | uiKids |
| Number of kids. | |
| vector< AC3DObject * > | vpObject |
| Table of child objects. | |
Definition at line 54 of file ac3dobject.h.
|
|
Add a new kid to this object Definition at line 84 of file ac3dobject.cpp. |
|
|
Definition at line 126 of file ac3dobject.cpp. References fLoc. |
|
|
Definition at line 102 of file ac3dobject.cpp. References strName. |
|
|
Definition at line 110 of file ac3dobject.cpp. References uiKids. |
|
|
Definition at line 118 of file ac3dobject.cpp. References strTexture. |
|
|
Definition at line 150 of file ac3dobject.cpp. References vpObject. |
|
|
Definition at line 142 of file ac3dobject.cpp. References vpSurface. |
|
|
Definition at line 134 of file ac3dobject.cpp. References vVertex. |
|
|
Decode the "name" to determine whether the object is translucent or not
Definition at line 94 of file ac3dobject.cpp. |
|
|
Parse and extract the data from the given stream Definition at line 158 of file ac3dobject.cpp. References strName, strTexture, strURL, and type. |
1.4.2