#include <VRMLObj.H>
Inherits IS3D::DrawObj.
Public Member Functions | |
VRMLObj (const std::string &filename) | |
virtual | ~VRMLObj () |
void | setShadeMode (RenderDevice::ShadeMode mode) |
RenderDevice::ShadeMode | getShadeMode () |
void | reColor (const Color4 &c, int colorNum=0) |
void | reTexture (const std::string &texname, int texNum=0) |
void | draw () |
Override this function and place your G3D draw calls inside it. | |
void | showVertexNumbers (bool s) |
VRMLModelRef | getVRMLModel () |
Protected Attributes | |
Color4 | _color |
std::string | _texname |
VRMLModelRef | _model |
PosedModelRef | _posed |
RenderDevice::ShadeMode | _shadeMode |
IS3D::VRMLObj::VRMLObj | ( | const std::string & | filename | ) |
virtual IS3D::VRMLObj::~VRMLObj | ( | ) | [virtual] |
void IS3D::VRMLObj::setShadeMode | ( | RenderDevice::ShadeMode | mode | ) | [inline] |
References _shadeMode.
RenderDevice::ShadeMode IS3D::VRMLObj::getShadeMode | ( | ) | [inline] |
References _shadeMode.
void IS3D::VRMLObj::reColor | ( | const Color4 & | c, | |
int | colorNum = 0 | |||
) | [inline, virtual] |
Some interactive widgets assume they can call this functions on any DrawObj, you should override if appropriate.
Reimplemented from IS3D::DrawObj.
References _color.
void IS3D::VRMLObj::reTexture | ( | const std::string & | texname, | |
int | texNum = 0 | |||
) | [inline, virtual] |
Some interactive widgets assume they can call this functions on any DrawObj, you should override if appropriate.
Reimplemented from IS3D::DrawObj.
References _texname.
void IS3D::VRMLObj::draw | ( | ) | [virtual] |
void IS3D::VRMLObj::showVertexNumbers | ( | bool | s | ) | [inline] |
References _model.
VRMLModelRef IS3D::VRMLObj::getVRMLModel | ( | ) |
Color4 IS3D::VRMLObj::_color [protected] |
Referenced by reColor().
std::string IS3D::VRMLObj::_texname [protected] |
Referenced by reTexture().
VRMLModelRef IS3D::VRMLObj::_model [protected] |
Referenced by showVertexNumbers().
PosedModelRef IS3D::VRMLObj::_posed [protected] |
RenderDevice::ShadeMode IS3D::VRMLObj::_shadeMode [protected] |
Referenced by getShadeMode(), and setShadeMode().