|
xoreos
0.0.5
|
#include <model_nwn.h>


Classes | |
| struct | Mesh |
Public Member Functions | |
| ModelNode_NWN_ASCII (Model &model) | |
| ~ModelNode_NWN_ASCII () | |
| void | load (Model_NWN::ParserContext &ctx, const Common::UString &type, const Common::UString &name) |
Public Member Functions inherited from Graphics::Aurora::ModelNode | |
| ModelNode (Model &model) | |
| virtual | ~ModelNode () |
| const Common::UString & | getName () const |
| Get the node's name. More... | |
| float | getWidth () const |
| Get the width of the node's bounding box. More... | |
| float | getHeight () const |
| Get the height of the node's bounding box. More... | |
| float | getDepth () const |
| Get the depth of the node's bounding box. More... | |
| void | setInvisible (bool invisible) |
| Should the node never be rendered at all? More... | |
| void | setEnvironmentMap (const Common::UString &environmentMap="") |
| Change the environment map on this model node. More... | |
| void | getPosition (float &x, float &y, float &z) const |
| Get the position of the node. More... | |
| void | getRotation (float &x, float &y, float &z) const |
| Get the rotation of the node. More... | |
| void | getOrientation (float &x, float &y, float &z, float &a) const |
| Get the orientation of the node. More... | |
| void | getAbsolutePosition (float &x, float &y, float &z) const |
| Get the position of the node after translate/rotate. More... | |
| glm::mat4 | getAbsolutePosition () const |
| Get the position of the node after translate/rotate. More... | |
| uint16 | getNodeNumber () const |
| void | setPosition (float x, float y, float z) |
| Set the position of the node. More... | |
| void | setRotation (float x, float y, float z) |
| Set the rotation of the node. More... | |
| void | setOrientation (float x, float y, float z, float a) |
| Set the orientation of the node. More... | |
| void | move (float x, float y, float z) |
| Move the node, relative to its current position. More... | |
| void | rotate (float x, float y, float z) |
| Rotate the node, relative to its current rotation. More... | |
| void | setTextures (const std::vector< Common::UString > &textures) |
| Set textures to the node. More... | |
| void | computeInverseBindPose () |
| void | computeAbsoluteTransform () |
| float | getAlpha () |
| Get the alpha (transparency) of the node. More... | |
| void | setAlpha (float alpha, bool isRecursive=true) |
| Set the alpha (transparency) of the node. More... | |
| float | getScaleX () |
| float | getScaleY () |
| float | getScaleZ () |
| ModelNode * | getParent () |
| Get the node's parent. More... | |
| const ModelNode * | getParent () const |
| Get the node's parent. More... | |
| void | setParent (ModelNode *parent) |
| Set the node's parent. More... | |
| std::list< ModelNode * > & | getChildren () |
| Get the node's children. More... | |
| Mesh * | getMesh () const |
| bool | isInFrontOf (const ModelNode &node) const |
| Is this node in front of that other node? More... | |
| void | inheritPosition (ModelNode &node) const |
| void | inheritOrientation (ModelNode &node) const |
Private Member Functions | |
| void | readConstraints (Model_NWN::ParserContext &ctx, uint32 n) |
| void | readWeights (Model_NWN::ParserContext &ctx, uint32 n) |
| void | readFloats (const std::vector< Common::UString > &strings, float *floats, uint32 n, uint32 start) |
| void | readVCoords (Model_NWN::ParserContext &ctx, Mesh &mesh) |
| void | readTCoords (Model_NWN::ParserContext &ctx, Mesh &mesh) |
| void | readFaces (Model_NWN::ParserContext &ctx, Mesh &mesh) |
| void | processMesh (ModelNode_NWN_ASCII::Mesh &mesh) |
Additional Inherited Members | |
Public Types inherited from Graphics::Aurora::ModelNode | |
| enum | EnvironmentMapMode { kModeEnvironmentBlendedUnder, kModeEnvironmentBlendedOver } |
| The way the environment map is applied to a model node. More... | |
Protected Member Functions inherited from Graphics::Aurora::ModelNode | |
| void | loadTextures (const std::vector< Common::UString > &textures) |
| void | createBound () |
| void | createCenter () |
| void | createAbsoluteBound () |
| void | createAbsoluteBound (Common::BoundingBox parentPosition) |
| void | render (RenderPass pass) |
| void | drawSkeleton (const glm::mat4 &parent, bool showInvisible) |
| void | calcRenderTransform (const glm::mat4 &parentTransform) |
| Calculate the transform used for rendering. More... | |
| void | renderImmediate (const glm::mat4 &parentTransform) |
| void | queueRender (const glm::mat4 &parentTransform) |
| void | lockFrame () |
| void | unlockFrame () |
| void | lockFrameIfVisible () |
| void | unlockFrameIfVisible () |
| void | setBufferedPosition (float x, float y, float z) |
| void | setBufferedOrientation (float x, float y, float z, float angle) |
| void | flushBuffers () |
| TextureHandle * | getTextures (uint32 &count) |
| TextureHandle * | getEnvironmentMap (EnvironmentMapMode &mode) |
| void | setMaterial (Shader::ShaderMaterial *material) |
| virtual void | buildMaterial () |
Protected Attributes inherited from Graphics::Aurora::ModelNode | |
| Model * | _model |
| The model this node belongs to. More... | |
| ModelNode * | _parent |
| The node's parent. More... | |
| std::list< ModelNode * > | _children |
| The node's children. More... | |
| Model * | _attachedModel |
| The model that is attached to this node. More... | |
| uint32 | _level |
| Common::UString | _name |
| The node's name. More... | |
| std::vector< Shader::ShaderRenderable > | _renderableArray |
| Damn you bioware. More... | |
| float | _center [3] |
| The node's center. More... | |
| float | _position [3] |
| Position of the node. More... | |
| float | _rotation [3] |
| Node rotation. More... | |
| float | _orientation [4] |
| Orientation of the node. More... | |
| float | _scale [3] |
| Scale of the node. More... | |
| float | _alpha |
| Alpha of the node, used if no _mesh is present in this node. More... | |
| std::vector< PositionKeyFrame > | _positionFrames |
| Keyframes for position animation. More... | |
| std::vector< QuaternionKeyFrame > | _orientationFrames |
| Keyframes for orientation animation. More... | |
| glm::mat4 | _absolutePosition |
| Position of the node after translate/rotate. More... | |
| glm::mat4 | _renderTransform |
| bool | _render |
| Render the node? More... | |
| bool | _dirtyRender |
| Rendering information needs updating. More... | |
| bool | _dirtyMesh |
| Mesh data needs updating. More... | |
| Mesh * | _mesh |
| ModelNode * | _rootStateNode |
| Common::BoundingBox | _boundBox |
| Common::BoundingBox | _absoluteBoundBox |
| uint16 | _nodeNumber |
| glm::mat4 | _invBindPose |
| Inverse bind pose matrix used for animations. More... | |
| glm::mat4 | _absoluteTransform |
| Absolute transformation matrix used for animations. More... | |
| float | _positionBuffer [3] |
| bool | _positionBuffered |
| float | _orientationBuffer [4] |
| bool | _orientationBuffered |
| std::vector< float > | _vertexCoordsBuffer |
| bool | _vertexCoordsBuffered |
| Shader::ShaderMaterial * | _material |
| Shader::ShaderRenderable * | _shaderRenderable |
Definition at line 119 of file model_nwn.h.
| Graphics::Aurora::ModelNode_NWN_ASCII::ModelNode_NWN_ASCII | ( | Model & | model | ) |
Definition at line 1082 of file model_nwn.cpp.
| Graphics::Aurora::ModelNode_NWN_ASCII::~ModelNode_NWN_ASCII | ( | ) |
Definition at line 1085 of file model_nwn.cpp.
| void Graphics::Aurora::ModelNode_NWN_ASCII::load | ( | Model_NWN::ParserContext & | ctx, |
| const Common::UString & | type, | ||
| const Common::UString & | name | ||
| ) |
Definition at line 1088 of file model_nwn.cpp.
References Graphics::Aurora::ModelNode::_mesh, Graphics::Aurora::ModelNode::_name, Graphics::Aurora::ModelNode::_orientation, Graphics::Aurora::ModelNode::_position, Graphics::Aurora::ModelNode::buildMaterial(), Common::UString::c_str(), debugC(), Common::UString::empty(), Common::ReadStream::eos(), Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::faceCount, Graphics::Aurora::Model_NWN::ParserContext::findNode(), Common::StreamTokenizer::getTokens(), GfxMan, Common::kDebugGraphics, Graphics::Aurora::Model_NWN::ParserContext::mdl, Graphics::Aurora::Model_NWN::ParserContext::mdlName, MeshMan, Graphics::Aurora::Model::State::name, Common::StreamTokenizer::nextChunk(), Common::parseString(), processMesh(), Common::rad2deg(), readConstraints(), readFaces(), readFloats(), readTCoords(), readVCoords(), readWeights(), Graphics::Aurora::ModelNode::setParent(), Common::UString::size(), Graphics::Aurora::Model_NWN::ParserContext::state, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tCount, Graphics::Aurora::Model_NWN::ParserContext::texture, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::textures, Graphics::Aurora::Model_NWN::ParserContext::tokenize, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vCount, and warning().
Referenced by Graphics::Aurora::Model_NWN::loadASCII().


|
private |
Definition at line 1374 of file model_nwn.cpp.
References Graphics::Aurora::ModelNode::_mesh, Graphics::Aurora::ModelNode::_render, Graphics::Aurora::ModelNode::createBound(), Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::faceCount, Graphics::Aurora::FaceVert::i, Graphics::Aurora::ModelNode::loadTextures(), Graphics::Aurora::FaceVert::n, Graphics::Aurora::FaceVert::p, Graphics::Aurora::FaceVert::t, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tCount, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::textures, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tIA, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tIB, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tIC, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tX, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tY, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vCount, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vIA, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vIB, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vIC, Graphics::VNORMAL, Graphics::VPOSITION, Graphics::VTCOORD, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vX, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vY, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vZ, and warning().
Referenced by load().


|
private |
Definition at line 1225 of file model_nwn.cpp.
References Common::StreamTokenizer::getTokens(), Graphics::Aurora::Model_NWN::ParserContext::mdl, Common::StreamTokenizer::nextChunk(), and Graphics::Aurora::Model_NWN::ParserContext::tokenize.
Referenced by load().


|
private |
Definition at line 1313 of file model_nwn.cpp.
References Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::faceCount, Common::StreamTokenizer::getTokens(), Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::mat, Graphics::Aurora::Model_NWN::ParserContext::mdl, Common::StreamTokenizer::nextChunk(), Common::parseString(), Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::smooth, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tIA, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tIB, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tIC, Graphics::Aurora::Model_NWN::ParserContext::tokenize, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vIA, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vIB, and Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vIC.
Referenced by load().


|
private |
Definition at line 1257 of file model_nwn.cpp.
References Common::parseString().
Referenced by load().


|
private |
Definition at line 1291 of file model_nwn.cpp.
References Common::StreamTokenizer::getTokens(), Graphics::Aurora::Model_NWN::ParserContext::mdl, Common::StreamTokenizer::nextChunk(), Common::parseString(), Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tCount, Graphics::Aurora::Model_NWN::ParserContext::tokenize, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tX, and Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::tY.
Referenced by load().


|
private |
Definition at line 1267 of file model_nwn.cpp.
References Common::StreamTokenizer::getTokens(), Graphics::Aurora::Model_NWN::ParserContext::mdl, Common::StreamTokenizer::nextChunk(), Common::parseString(), Graphics::Aurora::Model_NWN::ParserContext::tokenize, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vCount, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vX, Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vY, and Graphics::Aurora::ModelNode_NWN_ASCII::Mesh::vZ.
Referenced by load().


|
private |
Definition at line 1241 of file model_nwn.cpp.
References Common::StreamTokenizer::getTokens(), Graphics::Aurora::Model_NWN::ParserContext::mdl, Common::StreamTokenizer::nextChunk(), and Graphics::Aurora::Model_NWN::ParserContext::tokenize.
Referenced by load().


1.8.14