| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef MODEL_NODE_H
- #define MODEL_NODE_H
- #include <boost/array.hpp>
- #include "SceneNode.h"
- #include "RsrcPtr.h"
- #include "Properties.h"
- #include "ModelPatchNode.h"
- #include "Vec.h"
- class Model;
- /// The model scene node
- class ModelNode: public SceneNode
- {
- public:
- ModelNode(): SceneNode(SNT_MODEL, true, NULL) {}
- /// @name Accessors
- /// @{
- const Model& getModel() const {return *model;}
- /// @}
- /// Initialize the node
- /// - Load the resource
- void init(const char* filename);
- /// @name Accessors
- /// @{
- const Vec<ModelPatchNode*>& getModelPatchNodees() const {return patches;}
- /// @}
- private:
- RsrcPtr<Model> model;
- Vec<ModelPatchNode*> patches;
- };
- #endif
|