#include <NektarModelObj.H>
Inherits IS3D::DrawObj.
Public Member Functions | |
NektarModelObj (const std::string &filename, int numTriangles, int numTimesteps) | |
virtual | ~NektarModelObj () |
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. | |
NektarModelRef | getNektarModel () |
void | showVertexNumbers (bool s) |
void | showFaceNumbers (bool s) |
int | getNumTimesteps () |
int | getCurrTimestep () |
void | setTimestep (int ts) |
Protected Attributes | |
Color4 | _color |
std::string | _texname |
NektarModelRef | _model |
PosedModelRef | _posed |
RenderDevice::ShadeMode | _shadeMode |
IS3D::NektarModelObj::NektarModelObj | ( | const std::string & | filename, | |
int | numTriangles, | |||
int | numTimesteps | |||
) |
virtual IS3D::NektarModelObj::~NektarModelObj | ( | ) | [virtual] |
void IS3D::NektarModelObj::setShadeMode | ( | RenderDevice::ShadeMode | mode | ) | [inline] |
References _shadeMode.
RenderDevice::ShadeMode IS3D::NektarModelObj::getShadeMode | ( | ) | [inline] |
References _shadeMode.
void IS3D::NektarModelObj::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::NektarModelObj::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::NektarModelObj::draw | ( | ) | [virtual] |
NektarModelRef IS3D::NektarModelObj::getNektarModel | ( | ) |
void IS3D::NektarModelObj::showVertexNumbers | ( | bool | s | ) | [inline] |
References _model.
void IS3D::NektarModelObj::showFaceNumbers | ( | bool | s | ) | [inline] |
References _model.
int IS3D::NektarModelObj::getNumTimesteps | ( | ) | [inline] |
References _model.
int IS3D::NektarModelObj::getCurrTimestep | ( | ) | [inline] |
References _model.
void IS3D::NektarModelObj::setTimestep | ( | int | ts | ) | [inline] |
References _model.
Color4 IS3D::NektarModelObj::_color [protected] |
Referenced by reColor().
std::string IS3D::NektarModelObj::_texname [protected] |
Referenced by reTexture().
NektarModelRef IS3D::NektarModelObj::_model [protected] |
Referenced by getCurrTimestep(), getNumTimesteps(), setTimestep(), showFaceNumbers(), and showVertexNumbers().
PosedModelRef IS3D::NektarModelObj::_posed [protected] |
RenderDevice::ShadeMode IS3D::NektarModelObj::_shadeMode [protected] |
Referenced by getShadeMode(), and setShadeMode().