Assimp  v3.1.1 (June 2014)
Assimp::Ogre Namespace Reference

Classes

class  Animation
 Ogre Animation. More...
 
class  Bone
 Ogre Bone. More...
 
class  IndexData
 
class  IndexDataXml
 Ogre XML Index Data. More...
 
class  ISubMesh
 Ogre Sub Mesh interface, inherited by the binary and XML implementations. More...
 
class  IVertexData
 
class  Mesh
 Ogre Mesh. More...
 
class  MeshXml
 Ogre XML Mesh. More...
 
struct  MorphKeyFrame
 Ogre Morph Key Frame. More...
 
class  OgreBinarySerializer
 
class  OgreImporter
 Importer for Ogre mesh, skeleton and material formats. More...
 
class  OgreXmlSerializer
 
class  Pose
 Ogre Pose. More...
 
struct  PoseKeyFrame
 Ogre Pose Key Frame. More...
 
struct  PoseRef
 Ogre Pose Key Frame Ref. More...
 
class  Skeleton
 Ogre Skeleton. More...
 
class  SubMesh
 Ogre SubMesh. More...
 
class  SubMeshXml
 Ogre XML SubMesh. More...
 
struct  TransformKeyFrame
 Ogre animation key frame. More...
 
struct  VertexAnimationTrack
 Ogre Animation Track. More...
 
struct  VertexBoneAssignment
 Ogre Vertex Bone Assignment. More...
 
class  VertexData
 
class  VertexDataXml
 Ogre XML Vertex Data. More...
 
class  VertexElement
 

Typedefs

typedef std::vector< Animation * > AnimationList
 
typedef std::map< uint16_t, std::vector< aiVertexWeight > > AssimpVertexBoneWeightList
 
typedef std::vector< Bone * > BoneList
 
typedef Assimp::MemoryIOStream MemoryStream
 
typedef std::shared_ptr< MemoryStreamMemoryStreamPtr
 
typedef Assimp::StreamReaderLE MemoryStreamReader
 
typedef std::shared_ptr< MemoryStreamReaderMemoryStreamReaderPtr
 
typedef std::vector< MorphKeyFrameMorphKeyFrameList
 
typedef std::vector< PoseKeyFramePoseKeyFrameList
 
typedef std::vector< Pose * > PoseList
 
typedef std::vector< PoseRefPoseRefList
 
typedef std::vector< SubMesh * > SubMeshList
 
typedef std::vector< SubMeshXml * > SubMeshXmlList
 
typedef std::vector< TransformKeyFrameTransformKeyFrameList
 
typedef std::vector< VertexAnimationTrackVertexAnimationTrackList
 
typedef std::vector< VertexBoneAssignmentVertexBoneAssignmentList
 
typedef std::map< uint32_t, VertexBoneAssignmentListVertexBoneAssignmentsMap
 
typedef std::map< uint16_t, MemoryStreamPtrVertexBufferBindings
 
typedef std::vector< VertexElementVertexElementList
 
typedef irr::io::IrrXMLReader XmlReader
 
typedef std::shared_ptr< XmlReaderXmlReaderPtr
 

Enumerations

enum  MeshChunkId {
  M_HEADER = 0x1000, M_MESH = 0x3000, M_SUBMESH = 0x4000, M_SUBMESH_OPERATION = 0x4010,
  M_SUBMESH_BONE_ASSIGNMENT = 0x4100, M_SUBMESH_TEXTURE_ALIAS = 0x4200, M_GEOMETRY = 0x5000, M_GEOMETRY_VERTEX_DECLARATION = 0x5100,
  M_GEOMETRY_VERTEX_ELEMENT = 0x5110, M_GEOMETRY_VERTEX_BUFFER = 0x5200, M_GEOMETRY_VERTEX_BUFFER_DATA = 0x5210, M_MESH_SKELETON_LINK = 0x6000,
  M_MESH_BONE_ASSIGNMENT = 0x7000, M_MESH_LOD = 0x8000, M_MESH_LOD_USAGE = 0x8100, M_MESH_LOD_MANUAL = 0x8110,
  M_MESH_LOD_GENERATED = 0x8120, M_MESH_BOUNDS = 0x9000, M_SUBMESH_NAME_TABLE = 0xA000, M_SUBMESH_NAME_TABLE_ELEMENT = 0xA100,
  M_EDGE_LISTS = 0xB000, M_EDGE_LIST_LOD = 0xB100, M_EDGE_GROUP = 0xB110, M_POSES = 0xC000,
  M_POSE = 0xC100, M_POSE_VERTEX = 0xC111, M_ANIMATIONS = 0xD000, M_ANIMATION = 0xD100,
  M_ANIMATION_BASEINFO = 0xD105, M_ANIMATION_TRACK = 0xD110, M_ANIMATION_MORPH_KEYFRAME = 0xD111, M_ANIMATION_POSE_KEYFRAME = 0xD112,
  M_ANIMATION_POSE_REF = 0xD113, M_TABLE_EXTREMES = 0xE000
}
 
enum  SkeletonChunkId {
  SKELETON_HEADER = 0x1000, SKELETON_BLENDMODE = 0x1010, SKELETON_BONE = 0x2000, SKELETON_BONE_PARENT = 0x3000,
  SKELETON_ANIMATION = 0x4000, SKELETON_ANIMATION_BASEINFO = 0x4010, SKELETON_ANIMATION_TRACK = 0x4100, SKELETON_ANIMATION_TRACK_KEYFRAME = 0x4110,
  SKELETON_ANIMATION_LINK = 0x5000
}
 

Functions

bool BoneCompare (Bone *a, Bone *b)
 
static bool EndsWith (const std::string &s, const std::string &suffix, bool caseSensitive=true)
 Returns if s ends with suffix. If caseSensitive is false, both strings will be lower cased before matching. More...
 
static std::string NextAfterNewLine (std::stringstream &ss, std::string &nextElement)
 Skips a line and reads next element from ss to nextElement. More...
 
template<>
std::string OgreXmlSerializer::ReadAttribute< std::string > (const std::string &name) const
 
static std::string SkipLine (std::stringstream &ss)
 Skips a line from current position until a newline. Returns the skipped part. More...
 
AI_WONT_RETURN void ThrowAttibuteError (const XmlReader *reader, const std::string &name, const std::string &error="") AI_WONT_RETURN_SUFFIX
 
static std::string ToLower (std::string s)
 Returns a lower cased copy of . More...
 
static std::string & Trim (std::string &s, bool newlines=true)
 Trim from both ends. More...
 
static std::string & TrimLeft (std::string &s, bool newlines=true)
 Trim from start. More...
 
static std::string & TrimRight (std::string &s, bool newlines=true)
 Trim from end. More...
 

Variables

const std::string anX = "x"
 
const std::string anY = "y"
 
const std::string anZ = "z"
 
const unsigned short HEADER_CHUNK_ID = 0x1000
 
const std::string MESH_VERSION_1_8 = "[MeshSerializer_v1.8]"
 
const long MSTREAM_BONE_SIZE_WITHOUT_SCALE = MSTREAM_OVERHEAD_SIZE + sizeof(unsigned short) + (sizeof(float) * 7)
 
const long MSTREAM_KEYFRAME_SIZE_WITHOUT_SCALE = MSTREAM_OVERHEAD_SIZE + (sizeof(float) * 8)
 
const long MSTREAM_OVERHEAD_SIZE = sizeof(uint16_t) + sizeof(uint32_t)
 
const std::string nnAnimation = "animation"
 
const std::string nnAnimationLinks = "animationlinks"
 
const std::string nnAnimations = "animations"
 
const std::string nnAxis = "axis"
 
const std::string nnBinormal = "binormal"
 
const std::string nnBone = "bone"
 
const std::string nnBoneAssignments = "boneassignments"
 
const std::string nnBoneHierarchy = "bonehierarchy"
 
const std::string nnBoneParent = "boneparent"
 
const std::string nnBones = "bones"
 
const std::string nnColorDiffuse = "colour_diffuse"
 
const std::string nnColorSpecular = "colour_specular"
 
const std::string nnExtremes = "extremes"
 
const std::string nnFace = "face"
 
const std::string nnFaces = "faces"
 
const std::string nnGeometry = "geometry"
 
const std::string nnKeyFrame = "keyframe"
 
const std::string nnKeyFrames = "keyframes"
 
const std::string nnLOD = "levelofdetail"
 
const std::string nnMesh = "mesh"
 
const std::string nnNormal = "normal"
 
const std::string nnPoses = "poses"
 
const std::string nnPosition = "position"
 
const std::string nnRotate = "rotate"
 
const std::string nnRotation = "rotation"
 
const std::string nnScale = "scale"
 
const std::string nnSharedGeometry = "sharedgeometry"
 
const std::string nnSkeleton = "skeleton"
 
const std::string nnSkeletonLink = "skeletonlink"
 
const std::string nnSubMesh = "submesh"
 
const std::string nnSubMeshes = "submeshes"
 
const std::string nnSubMeshNames = "submeshnames"
 
const std::string nnTangent = "tangent"
 
const std::string nnTexCoord = "texcoord"
 
const std::string nnTextures = "textures"
 
const std::string nnTrack = "track"
 
const std::string nnTracks = "tracks"
 
const std::string nnTranslate = "translate"
 
const std::string nnVertex = "vertex"
 
const std::string nnVertexBoneAssignment = "vertexboneassignment"
 
const std::string nnVertexBuffer = "vertexbuffer"
 
static const string partBlockEnd = "}"
 
static const string partBlockStart = "{"
 
static const string partComment = "//"
 
const std::string SKELETON_VERSION_1_1 = "[Serializer_v1.10]"
 
const std::string SKELETON_VERSION_1_8 = "[Serializer_v1.80]"
 

Typedef Documentation

◆ AnimationList

typedef std::vector<Animation*> Assimp::Ogre::AnimationList

◆ AssimpVertexBoneWeightList

◆ BoneList

typedef std::vector<Bone*> Assimp::Ogre::BoneList

◆ MemoryStream

◆ MemoryStreamPtr

typedef std::shared_ptr<MemoryStream> Assimp::Ogre::MemoryStreamPtr

◆ MemoryStreamReader

◆ MemoryStreamReaderPtr

◆ MorphKeyFrameList

◆ PoseKeyFrameList

◆ PoseList

typedef std::vector<Pose*> Assimp::Ogre::PoseList

◆ PoseRefList

typedef std::vector<PoseRef> Assimp::Ogre::PoseRefList

◆ SubMeshList

typedef std::vector<SubMesh*> Assimp::Ogre::SubMeshList

◆ SubMeshXmlList

◆ TransformKeyFrameList

◆ VertexAnimationTrackList

◆ VertexBoneAssignmentList

◆ VertexBoneAssignmentsMap

◆ VertexBufferBindings

◆ VertexElementList

◆ XmlReader

typedef irr::io::IrrXMLReader Assimp::Ogre::XmlReader

◆ XmlReaderPtr

typedef std::shared_ptr<XmlReader> Assimp::Ogre::XmlReaderPtr

Enumeration Type Documentation

◆ MeshChunkId

Enumerator
M_HEADER 
M_MESH 
M_SUBMESH 
M_SUBMESH_OPERATION 
M_SUBMESH_BONE_ASSIGNMENT 
M_SUBMESH_TEXTURE_ALIAS 
M_GEOMETRY 
M_GEOMETRY_VERTEX_DECLARATION 
M_GEOMETRY_VERTEX_ELEMENT 
M_GEOMETRY_VERTEX_BUFFER 
M_GEOMETRY_VERTEX_BUFFER_DATA 
M_MESH_SKELETON_LINK 
M_MESH_BONE_ASSIGNMENT 
M_MESH_LOD 
M_MESH_LOD_USAGE 
M_MESH_LOD_MANUAL 
M_MESH_LOD_GENERATED 
M_MESH_BOUNDS 
M_SUBMESH_NAME_TABLE 
M_SUBMESH_NAME_TABLE_ELEMENT 
M_EDGE_LISTS 
M_EDGE_LIST_LOD 
M_EDGE_GROUP 
M_POSES 
M_POSE 
M_POSE_VERTEX 
M_ANIMATIONS 
M_ANIMATION 
M_ANIMATION_BASEINFO 
M_ANIMATION_TRACK 
M_ANIMATION_MORPH_KEYFRAME 
M_ANIMATION_POSE_KEYFRAME 
M_ANIMATION_POSE_REF 
M_TABLE_EXTREMES 

◆ SkeletonChunkId

Enumerator
SKELETON_HEADER 
SKELETON_BLENDMODE 
SKELETON_BONE 
SKELETON_BONE_PARENT 
SKELETON_ANIMATION 
SKELETON_ANIMATION_BASEINFO 
SKELETON_ANIMATION_TRACK 
SKELETON_ANIMATION_TRACK_KEYFRAME 
SKELETON_ANIMATION_LINK 

Function Documentation

◆ BoneCompare()

bool Assimp::Ogre::BoneCompare ( Bone a,
Bone b 
)

◆ EndsWith()

static bool Assimp::Ogre::EndsWith ( const std::string &  s,
const std::string &  suffix,
bool  caseSensitive = true 
)
inlinestatic

Returns if s ends with suffix. If caseSensitive is false, both strings will be lower cased before matching.

◆ NextAfterNewLine()

static std::string Assimp::Ogre::NextAfterNewLine ( std::stringstream &  ss,
std::string &  nextElement 
)
inlinestatic

Skips a line and reads next element from ss to nextElement.

Returns
Skipped line content until newline.

◆ OgreXmlSerializer::ReadAttribute< std::string >()

template<>
std::string Assimp::Ogre::OgreXmlSerializer::ReadAttribute< std::string > ( const std::string &  name) const

◆ SkipLine()

static std::string Assimp::Ogre::SkipLine ( std::stringstream &  ss)
inlinestatic

Skips a line from current position until a newline. Returns the skipped part.

◆ ThrowAttibuteError()

AI_WONT_RETURN void Assimp::Ogre::ThrowAttibuteError ( const XmlReader reader,
const std::string &  name,
const std::string &  error = "" 
)

◆ ToLower()

static std::string Assimp::Ogre::ToLower ( std::string  s)
inlinestatic

Returns a lower cased copy of .

◆ Trim()

static std::string& Assimp::Ogre::Trim ( std::string &  s,
bool  newlines = true 
)
inlinestatic

Trim from both ends.

◆ TrimLeft()

static std::string& Assimp::Ogre::TrimLeft ( std::string &  s,
bool  newlines = true 
)
inlinestatic

Trim from start.

◆ TrimRight()

static std::string& Assimp::Ogre::TrimRight ( std::string &  s,
bool  newlines = true 
)
inlinestatic

Trim from end.

Variable Documentation

◆ anX

const std::string Assimp::Ogre::anX = "x"

◆ anY

const std::string Assimp::Ogre::anY = "y"

◆ anZ

const std::string Assimp::Ogre::anZ = "z"

◆ HEADER_CHUNK_ID

const unsigned short Assimp::Ogre::HEADER_CHUNK_ID = 0x1000

◆ MESH_VERSION_1_8

const std::string Assimp::Ogre::MESH_VERSION_1_8 = "[MeshSerializer_v1.8]"

◆ MSTREAM_BONE_SIZE_WITHOUT_SCALE

const long Assimp::Ogre::MSTREAM_BONE_SIZE_WITHOUT_SCALE = MSTREAM_OVERHEAD_SIZE + sizeof(unsigned short) + (sizeof(float) * 7)

◆ MSTREAM_KEYFRAME_SIZE_WITHOUT_SCALE

const long Assimp::Ogre::MSTREAM_KEYFRAME_SIZE_WITHOUT_SCALE = MSTREAM_OVERHEAD_SIZE + (sizeof(float) * 8)

◆ MSTREAM_OVERHEAD_SIZE

const long Assimp::Ogre::MSTREAM_OVERHEAD_SIZE = sizeof(uint16_t) + sizeof(uint32_t)

◆ nnAnimation

const std::string Assimp::Ogre::nnAnimation = "animation"

◆ nnAnimationLinks

const std::string Assimp::Ogre::nnAnimationLinks = "animationlinks"

◆ nnAnimations

const std::string Assimp::Ogre::nnAnimations = "animations"

◆ nnAxis

const std::string Assimp::Ogre::nnAxis = "axis"

◆ nnBinormal

const std::string Assimp::Ogre::nnBinormal = "binormal"

◆ nnBone

const std::string Assimp::Ogre::nnBone = "bone"

◆ nnBoneAssignments

const std::string Assimp::Ogre::nnBoneAssignments = "boneassignments"

◆ nnBoneHierarchy

const std::string Assimp::Ogre::nnBoneHierarchy = "bonehierarchy"

◆ nnBoneParent

const std::string Assimp::Ogre::nnBoneParent = "boneparent"

◆ nnBones

const std::string Assimp::Ogre::nnBones = "bones"

◆ nnColorDiffuse

const std::string Assimp::Ogre::nnColorDiffuse = "colour_diffuse"

◆ nnColorSpecular

const std::string Assimp::Ogre::nnColorSpecular = "colour_specular"

◆ nnExtremes

const std::string Assimp::Ogre::nnExtremes = "extremes"

◆ nnFace

const std::string Assimp::Ogre::nnFace = "face"

◆ nnFaces

const std::string Assimp::Ogre::nnFaces = "faces"

◆ nnGeometry

const std::string Assimp::Ogre::nnGeometry = "geometry"

◆ nnKeyFrame

const std::string Assimp::Ogre::nnKeyFrame = "keyframe"

◆ nnKeyFrames

const std::string Assimp::Ogre::nnKeyFrames = "keyframes"

◆ nnLOD

const std::string Assimp::Ogre::nnLOD = "levelofdetail"

◆ nnMesh

const std::string Assimp::Ogre::nnMesh = "mesh"

◆ nnNormal

const std::string Assimp::Ogre::nnNormal = "normal"

◆ nnPoses

const std::string Assimp::Ogre::nnPoses = "poses"

◆ nnPosition

const std::string Assimp::Ogre::nnPosition = "position"

◆ nnRotate

const std::string Assimp::Ogre::nnRotate = "rotate"

◆ nnRotation

const std::string Assimp::Ogre::nnRotation = "rotation"

◆ nnScale

const std::string Assimp::Ogre::nnScale = "scale"

◆ nnSharedGeometry

const std::string Assimp::Ogre::nnSharedGeometry = "sharedgeometry"

◆ nnSkeleton

const std::string Assimp::Ogre::nnSkeleton = "skeleton"

◆ nnSkeletonLink

const std::string Assimp::Ogre::nnSkeletonLink = "skeletonlink"

◆ nnSubMesh

const std::string Assimp::Ogre::nnSubMesh = "submesh"

◆ nnSubMeshes

const std::string Assimp::Ogre::nnSubMeshes = "submeshes"

◆ nnSubMeshNames

const std::string Assimp::Ogre::nnSubMeshNames = "submeshnames"

◆ nnTangent

const std::string Assimp::Ogre::nnTangent = "tangent"

◆ nnTexCoord

const std::string Assimp::Ogre::nnTexCoord = "texcoord"

◆ nnTextures

const std::string Assimp::Ogre::nnTextures = "textures"

◆ nnTrack

const std::string Assimp::Ogre::nnTrack = "track"

◆ nnTracks

const std::string Assimp::Ogre::nnTracks = "tracks"

◆ nnTranslate

const std::string Assimp::Ogre::nnTranslate = "translate"

◆ nnVertex

const std::string Assimp::Ogre::nnVertex = "vertex"

◆ nnVertexBoneAssignment

const std::string Assimp::Ogre::nnVertexBoneAssignment = "vertexboneassignment"

◆ nnVertexBuffer

const std::string Assimp::Ogre::nnVertexBuffer = "vertexbuffer"

◆ partBlockEnd

const string Assimp::Ogre::partBlockEnd = "}"
static

◆ partBlockStart

const string Assimp::Ogre::partBlockStart = "{"
static

◆ partComment

const string Assimp::Ogre::partComment = "//"
static

◆ SKELETON_VERSION_1_1

const std::string Assimp::Ogre::SKELETON_VERSION_1_1 = "[Serializer_v1.10]"

◆ SKELETON_VERSION_1_8

const std::string Assimp::Ogre::SKELETON_VERSION_1_8 = "[Serializer_v1.80]"