#include <VRMLModel.H>
Public Member Functions | |
virtual | ~VRMLModel () |
virtual PosedModelRef | pose (const CoordinateFrame &cframe, bool perVertexNormals=true) |
virtual PosedModelRef | pose (const CoordinateFrame &cframe, const GMaterial &material, bool perVertexNormals=true) |
virtual size_t | mainMemorySize () const |
virtual const MeshAlg::Geometry & | getGeometry () |
Static Public Member Functions | |
static VRMLModelRef | create (const std::string &filename, const Vector3 &scale=Vector3(1, 1, 1), const CoordinateFrame &cframe=CoordinateFrame()) |
static VRMLModelRef | create (const std::string &filename, const double scale, const CoordinateFrame &cframe=CoordinateFrame()) |
Friends | |
class | PosedVRMLModel |
class | VRMLObj |
Classes | |
class | PosedVRMLModel |
virtual IS3D::VRMLModel::~VRMLModel | ( | ) | [virtual] |
static VRMLModelRef IS3D::VRMLModel::create | ( | const std::string & | filename, | |
const Vector3 & | scale = Vector3(1, 1, 1) , |
|||
const CoordinateFrame & | cframe = CoordinateFrame() | |||
) | [static] |
Throws an std::string describing the error if anything goes wrong.
scale | 3D scale factors to apply to vertices while loading (*after* cframe) | |
cframe | Coordinate transform to apply to vertices while loading. This is not part of the object to world transformation for the model when posed; it really modifies the object space geometry. |
static VRMLModelRef IS3D::VRMLModel::create | ( | const std::string & | filename, | |
const double | scale, | |||
const CoordinateFrame & | cframe = CoordinateFrame() | |||
) | [static] |
virtual PosedModelRef IS3D::VRMLModel::pose | ( | const CoordinateFrame & | cframe, | |
bool | perVertexNormals = true | |||
) | [virtual] |
If perVertexNormals is false, the model is rendered with per-face normals, which are slower. No color or texture is set when rendered (that is, the existing RenderDevice values are used.)
virtual PosedModelRef IS3D::VRMLModel::pose | ( | const CoordinateFrame & | cframe, | |
const GMaterial & | material, | |||
bool | perVertexNormals = true | |||
) | [virtual] |
If perVertexNormals is false, the model is rendered with per-face normals, which are slower.
virtual size_t IS3D::VRMLModel::mainMemorySize | ( | ) | const [virtual] |
virtual const MeshAlg::Geometry& IS3D::VRMLModel::getGeometry | ( | ) | [inline, virtual] |
friend class PosedVRMLModel [friend] |
friend class VRMLObj [friend] |