7 #ifndef CAFU_MODEL_NODE_HPP_INCLUDED
8 #define CAFU_MODEL_NODE_HPP_INCLUDED
11 #include "Models/AnimExpr.hpp"
12 #include "Util/Util.hpp"
28 ModelNodeT(
const CafuModelT* Model,
const std::string& Label,
const Vector3fT& Origin,
const Vector3fT& Angles,
float Scale=1.0f,
int SeqNumber=0,
float FrameOffset=0.0f,
float FrameTimeScale=1.0f,
bool Animate=
false);
37 void WriteTo(std::ostream& OutFile,
aux::PoolT& Pool)
const;
63 float m_FrameTimeScale;
This class represents a native Cafu model.
Definition: Model_cmdl.hpp:45
static ModelNodeT * CreateFromFile_cw(std::istream &InFile, aux::PoolT &Pool, ModelManagerT &ModelMan)
Named constructor.
Definition: ModelNode.cpp:44
bool IsOpaque() const
TODO / FIXME: This method is a hot-fix for getting the render order with translucent Bezier Patches r...
Definition: ModelNode.hpp:41
void DrawAmbientContrib(const Vector3dT &ViewerPos) const
Draws the contents of this scene node.
Definition: ModelNode.cpp:101
A platform independent timer class that allows to measure the time passed since its construction or t...
Definition: Util.hpp:24
Definition: ModelNode.hpp:23
This class is used for managing model instances.
Definition: ModelManager.hpp:31
~ModelNodeT()
The destructor.
Definition: ModelNode.cpp:66
const BoundingBox3T< double > & GetBoundingBox() const
Returns the bounding box of the contents of this scene node.
Definition: ModelNode.cpp:91