|
enum | { UP_X,
UP_Y,
UP_Z
} |
| Which is the up vector. More...
|
|
typedef std::map< std::string,
Collada::Accessor > | AccessorLibrary |
| Same for accessors which define how the data in a data array is accessed. More...
|
|
typedef std::vector< std::pair
< std::string, std::vector
< std::string > > > | AnimationClipLibrary |
| Animation clip library: clip animation references by ID. More...
|
|
typedef std::map< std::string,
Collada::Animation * > | AnimationLibrary |
| Animation library: animation references by ID. More...
|
|
typedef std::map< std::string,
Collada::Camera > | CameraLibrary |
| Camera library: surface material by ID. More...
|
|
typedef std::map< std::string,
Collada::Controller > | ControllerLibrary |
| Controller library: joint controllers by ID. More...
|
|
typedef std::map< std::string,
Collada::Data > | DataLibrary |
| All data arrays found in the file by ID. More...
|
|
typedef std::map< std::string,
Collada::Effect > | EffectLibrary |
| Effect library: surface attributes by ID. More...
|
|
typedef std::map< std::string,
Collada::Image > | ImageLibrary |
| Image library: stores texture properties by ID. More...
|
|
typedef std::map< std::string,
Collada::Light > | LightLibrary |
| Light library: surface light by ID. More...
|
|
typedef std::map< std::string,
Collada::Material > | MaterialLibrary |
| Material library: surface material by ID. More...
|
|
typedef std::map< std::string,
Collada::Mesh * > | MeshLibrary |
| Mesh library: mesh by ID. More...
|
|
typedef std::map< std::string,
Collada::Node * > | NodeLibrary |
| node library: root node of the hierarchy part by ID More...
|
|
|
aiMatrix4x4 | CalculateResultTransform (const std::vector< Collada::Transform > &pTransforms) const |
| Calculates the resulting transformation from all the given transform steps. More...
|
|
| ColladaParser (IOSystem *pIOHandler, const std::string &pFile) |
| Constructor from XML file. More...
|
|
void | CopyVertex (size_t currentVertex, size_t numOffsets, size_t numPoints, size_t perVertexOffset, Collada::Mesh *pMesh, std::vector< Collada::InputChannel > &pPerIndexChannels, size_t currentPrimitive, const std::vector< size_t > &indices) |
| Copies the data for a single primitive into the mesh, based on the InputChannels. More...
|
|
void | ExtractDataObjectFromChannel (const Collada::InputChannel &pInput, size_t pLocalIndex, Collada::Mesh *pMesh) |
| Extracts a single object from an input channel and stores it in the appropriate mesh data array. More...
|
|
int | GetAttribute (const char *pAttr) const |
| Checks the present element for the presence of the attribute, returns its index or throws an exception if not found. More...
|
|
const char * | GetTextContent () |
| Reads the text contents of an element, throws an exception if not given. More...
|
|
Collada::InputType | GetTypeForSemantic (const std::string &pSemantic) |
| Determines the input data type for the given semantic string. More...
|
|
bool | IsElement (const char *pName) const |
| Compares the current xml element name to the given string and returns true if equal. More...
|
|
void | PostProcessRootAnimations () |
| Re-build animations from animation clip library, if present, otherwise combine single-channel animations. More...
|
|
void | ReadAccessor (const std::string &pID) |
| Reads an accessor and stores it in the global library under the given ID - accessors use the ID of the parent <source> element. More...
|
|
void | ReadAnimation (Collada::Animation *pParent) |
| Reads an animation into the given parent structure. More...
|
|
void | ReadAnimationClipLibrary () |
| Reads the animation clip library. More...
|
|
void | ReadAnimationLibrary () |
| Reads the animation library. More...
|
|
void | ReadAnimationSampler (Collada::AnimationChannel &pChannel) |
| Reads an animation sampler into the given anim channel. More...
|
|
void | ReadAssetInfo () |
| Reads asset informations such as coordinate system informations and legal blah. More...
|
|
bool | ReadBoolFromTextContent () |
| Reads a single bool from current text content. More...
|
|
void | ReadCamera (Collada::Camera &pCamera) |
| Reads a camera entry into the given camera. More...
|
|
void | ReadCameraLibrary () |
| Reads the camera library. More...
|
|
void | ReadContents () |
| Reads the contents of the file. More...
|
|
void | ReadController (Collada::Controller &pController) |
| Reads a controller into the given mesh structure. More...
|
|
void | ReadControllerJoints (Collada::Controller &pController) |
| Reads the joint definitions for the given controller. More...
|
|
void | ReadControllerLibrary () |
| Reads the skeleton controller library. More...
|
|
void | ReadControllerWeights (Collada::Controller &pController) |
| Reads the joint weights for the given controller. More...
|
|
void | ReadDataArray () |
| Reads a data array holding a number of elements, and stores it in the global library. More...
|
|
void | ReadEffect (Collada::Effect &pEffect) |
| Reads an effect entry into the given effect. More...
|
|
void | ReadEffectColor (aiColor4D &pColor, Collada::Sampler &pSampler) |
| Reads an effect entry containing a color or a texture defining that color. More...
|
|
void | ReadEffectFloat (float &pFloat) |
| Reads an effect entry containing a float. More...
|
|
void | ReadEffectLibrary () |
| Reads the effect library. More...
|
|
void | ReadEffectParam (Collada::EffectParam &pParam) |
| Reads an effect parameter specification of any kind. More...
|
|
void | ReadEffectProfileCommon (Collada::Effect &pEffect) |
| Reads an COMMON effect profile. More...
|
|
float | ReadFloatFromTextContent () |
| Reads a single float from current text content. More...
|
|
void | ReadGeometry (Collada::Mesh *pMesh) |
| Reads a geometry from the geometry library. More...
|
|
void | ReadGeometryLibrary () |
| Reads the geometry library contents. More...
|
|
void | ReadImage (Collada::Image &pImage) |
| Reads an image entry into the given image. More...
|
|
void | ReadImageLibrary () |
| Reads the image library contents. More...
|
|
void | ReadIndexData (Collada::Mesh *pMesh) |
| Reads input declarations of per-index mesh data into the given mesh. More...
|
|
void | ReadInputChannel (std::vector< Collada::InputChannel > &poChannels) |
| Reads a single input channel element and stores it in the given array, if valid. More...
|
|
void | ReadLight (Collada::Light &pLight) |
| Reads a light entry into the given light. More...
|
|
void | ReadLightLibrary () |
| Reads the light library. More...
|
|
void | ReadMaterial (Collada::Material &pMaterial) |
| Reads a material entry into the given material. More...
|
|
void | ReadMaterialLibrary () |
| Reads the material library. More...
|
|
void | ReadMaterialVertexInputBinding (Collada::SemanticMappingTable &tbl) |
|
void | ReadMesh (Collada::Mesh *pMesh) |
| Reads a mesh from the geometry library. More...
|
|
void | ReadNodeGeometry (Collada::Node *pNode) |
| Reads a mesh reference in a node and adds it to the node's mesh list. More...
|
|
void | ReadNodeTransformation (Collada::Node *pNode, Collada::TransformType pType) |
| Reads a node transformation entry of the given type and adds it to the given node's transformation list. More...
|
|
size_t | ReadPrimitives (Collada::Mesh *pMesh, std::vector< Collada::InputChannel > &pPerIndexChannels, size_t pNumPrimitives, const std::vector< size_t > &pVCount, Collada::PrimitiveType pPrimType) |
| Reads a. More...
|
|
void | ReadPrimTriStrips (size_t numOffsets, size_t perVertexOffset, Collada::Mesh *pMesh, std::vector< Collada::InputChannel > &pPerIndexChannels, size_t currentPrimitive, const std::vector< size_t > &indices) |
| Reads one triangle of a tristrip into the mesh. More...
|
|
void | ReadSamplerProperties (Collada::Sampler &pSampler) |
| Read sampler properties. More...
|
|
void | ReadScene () |
| Reads the collada scene. More...
|
|
void | ReadSceneLibrary () |
| Reads the library of node hierarchies and scene parts. More...
|
|
void | ReadSceneNode (Collada::Node *pNode) |
| Reads a scene node's contents including children and stores it in the given node. More...
|
|
void | ReadSource () |
| Reads a source element - a combination of raw data and an accessor defining things that should not be redefinable. More...
|
|
void | ReadStructure () |
| Reads the structure of the file. More...
|
|
void | ReadVertexData (Collada::Mesh *pMesh) |
| Reads input declarations of per-vertex mesh data into the given mesh. More...
|
|
void | ReportWarning (const char *msg,...) |
|
template<typename Type > |
const Type & | ResolveLibraryReference (const std::map< std::string, Type > &pLibrary, const std::string &pURL) const |
| Finds the item in the given library by its reference, throws if not found. More...
|
|
void | SkipElement () |
| Skips all data until the end node of the current element. More...
|
|
void | SkipElement (const char *pElement) |
| Skips all data until the end node of the given element. More...
|
|
int | TestAttribute (const char *pAttr) const |
| Returns the index of the named attribute or -1 if not found. More...
|
|
void | TestClosing (const char *pName) |
| Tests for the closing tag of the given element, throws an exception if not found. More...
|
|
void | TestOpening (const char *pName) |
| Tests for the opening tag of the given element, throws an exception if not found. More...
|
|
const char * | TestTextContent () |
| Reads the text contents of an element, returns NULL if not given. More...
|
|
AI_WONT_RETURN void | ThrowException (const std::string &pError) const AI_WONT_RETURN_SUFFIX |
| Aborts the file reading with an exception. More...
|
|
| ~ColladaParser () |
| Destructor. More...
|
|
Parser helper class for the Collada loader.
Does all the XML reading and builds internal data structures from it, but leaves the resolving of all the references to the loader.