#include <TangentSpaceGenerator.h>
Public Member Functions | |
TangentSpaceGenerator () | |
TangentSpaceGenerator (const TangentSpaceGenerator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
void | generate (osg::Geometry *geo, int normal_map_tex_unit=0) |
osg::Vec4Array * | getTangentArray () |
const osg::Vec4Array * | getTangentArray () const |
void | setTangentArray (osg::Vec4Array *array) |
osg::Vec4Array * | getNormalArray () |
const osg::Vec4Array * | getNormalArray () const |
void | setNormalArray (osg::Vec4Array *array) |
osg::Vec4Array * | getBinormalArray () |
const osg::Vec4Array * | getBinormalArray () const |
void | setBinormalArray (osg::Vec4Array *array) |
void | setDebugInfo (bool flag) |
Protected Member Functions | |
virtual | ~TangentSpaceGenerator () |
TangentSpaceGenerator & | operator= (const TangentSpaceGenerator &) |
void | compute_basis_vectors (osg::PrimitiveSet *pset, const osg::Array *vx, const osg::Array *tx, int iA, int iB, int iC, const osg::IndexArray *vxIndices=NULL, const osg::IndexArray *txIndices=NULL) |
Private Attributes | |
osg::ref_ptr< osg::Vec4Array > | T_ |
osg::ref_ptr< osg::Vec4Array > | B_ |
osg::ref_ptr< osg::Vec4Array > | N_ |
bool | debugInfo |
TangentSpaceGenerator::TangentSpaceGenerator | ( | ) |
TangentSpaceGenerator::TangentSpaceGenerator | ( | const TangentSpaceGenerator & | copy, | |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY | |||
) |
virtual vhdOSG::TangentSpaceGenerator::~TangentSpaceGenerator | ( | ) | [inline, protected, virtual] |
void TangentSpaceGenerator::generate | ( | osg::Geometry * | geo, | |
int | normal_map_tex_unit = 0 | |||
) |
osg::Vec4Array* vhdOSG::TangentSpaceGenerator::getTangentArray | ( | ) | [inline] |
const osg::Vec4Array* vhdOSG::TangentSpaceGenerator::getTangentArray | ( | ) | const [inline] |
void vhdOSG::TangentSpaceGenerator::setTangentArray | ( | osg::Vec4Array * | array | ) | [inline] |
osg::Vec4Array* vhdOSG::TangentSpaceGenerator::getNormalArray | ( | ) | [inline] |
const osg::Vec4Array* vhdOSG::TangentSpaceGenerator::getNormalArray | ( | ) | const [inline] |
void vhdOSG::TangentSpaceGenerator::setNormalArray | ( | osg::Vec4Array * | array | ) | [inline] |
osg::Vec4Array* vhdOSG::TangentSpaceGenerator::getBinormalArray | ( | ) | [inline] |
const osg::Vec4Array* vhdOSG::TangentSpaceGenerator::getBinormalArray | ( | ) | const [inline] |
void vhdOSG::TangentSpaceGenerator::setBinormalArray | ( | osg::Vec4Array * | array | ) | [inline] |
void vhdOSG::TangentSpaceGenerator::setDebugInfo | ( | bool | flag | ) | [inline] |
TangentSpaceGenerator& vhdOSG::TangentSpaceGenerator::operator= | ( | const TangentSpaceGenerator & | ) | [inline, protected] |
void vhdOSG::TangentSpaceGenerator::compute_basis_vectors | ( | osg::PrimitiveSet * | pset, | |
const osg::Array * | vx, | |||
const osg::Array * | tx, | |||
int | iA, | |||
int | iB, | |||
int | iC, | |||
const osg::IndexArray * | vxIndices = NULL , |
|||
const osg::IndexArray * | txIndices = NULL | |||
) | [protected] |
osg::ref_ptr<osg::Vec4Array> vhdOSG::TangentSpaceGenerator::T_ [private] |
osg::ref_ptr<osg::Vec4Array> vhdOSG::TangentSpaceGenerator::B_ [private] |
osg::ref_ptr<osg::Vec4Array> vhdOSG::TangentSpaceGenerator::N_ [private] |
bool vhdOSG::TangentSpaceGenerator::debugInfo [private] |