SofaFlowVR::FlowVRRenderMesh Class Reference

Inheritance diagram for SofaFlowVR::FlowVRRenderMesh:

Inheritance graph
[legend]
Collaboration diagram for SofaFlowVR::FlowVRRenderMesh:

Collaboration graph
[legend]

Public Types

typedef
sofa::component::visualmodel::OglModel 
Inherit
typedef Inherit::VecCoord VecCoord
 Container of Coord values with the same API as sofa::helper::vector.
typedef Inherit::Coord Coord
 Position values.

Public Member Functions

 FlowVRRenderMesh ()
void parse (sofa::core::objectmodel::BaseObjectDescription *arg)
 Parse the given description to assign values to this object's fields and potentially other parameters.
virtual bool loadTexture (const std::string &filename)
void renderInit ()
void init ()
 Initialization method called at graph modification, during bottom-up traversal.
void computePositions ()
void computeNormals ()
void computeMesh (sofa::core::componentmodel::topology::BaseMeshTopology *topology)
void renderUpdate ()

Data Fields

Data< std::string > vShader
Data< std::string > pShader
Data< bool > useTangent
std::string texture
std::map< std::string,
std::string > 
paramT
std::map< std::string,
std::string > 
paramNM
std::map< std::string,
std::string > 
paramVS
std::map< std::string,
std::string > 
paramPS
flowvr::ID idP
flowvr::ID idVB
flowvr::ID idVBN
flowvr::ID idVBT
flowvr::ID idVBTangent
flowvr::ID idIB
flowvr::ID idVS
flowvr::ID idPS
flowvr::ID idTex
bool posModified
bool normModified
bool meshModified
int lastPosRev
int lastNormRev

Detailed Description

Definition at line 1228 of file Main.cpp.


Member Typedef Documentation

Position values.

Reimplemented from sofa::component::visualmodel::VisualModelImpl.

Definition at line 1233 of file Main.cpp.

Definition at line 1231 of file Main.cpp.

Container of Coord values with the same API as sofa::helper::vector.

Reimplemented from sofa::component::visualmodel::VisualModelImpl.

Definition at line 1232 of file Main.cpp.


Constructor & Destructor Documentation

SofaFlowVR::FlowVRRenderMesh::FlowVRRenderMesh (  )  [inline]

Definition at line 1262 of file Main.cpp.


Member Function Documentation

void SofaFlowVR::FlowVRRenderMesh::computeMesh ( sofa::core::componentmodel::topology::BaseMeshTopology *  topology  )  [inline]

void SofaFlowVR::FlowVRRenderMesh::computeNormals (  )  [inline, virtual]

void SofaFlowVR::FlowVRRenderMesh::computePositions (  )  [inline, virtual]

void SofaFlowVR::FlowVRRenderMesh::init ( void   )  [inline, virtual]

Initialization method called at graph modification, during bottom-up traversal.

Reimplemented from sofa::component::visualmodel::VisualModelImpl.

Definition at line 1329 of file Main.cpp.

virtual bool SofaFlowVR::FlowVRRenderMesh::loadTexture ( const std::string &  filename  )  [inline, virtual]

void SofaFlowVR::FlowVRRenderMesh::parse ( sofa::core::objectmodel::BaseObjectDescription *  arg  )  [inline, virtual]

void SofaFlowVR::FlowVRRenderMesh::renderInit (  )  [inline, virtual]

Implements SofaFlowVR::FlowVRRenderVisualModel.

Definition at line 1325 of file Main.cpp.

void SofaFlowVR::FlowVRRenderMesh::renderUpdate (  )  [inline, virtual]

Implements SofaFlowVR::FlowVRRenderVisualModel.

Definition at line 1352 of file Main.cpp.

References SofaFlowVR::FlowVRRenderObject::addIndexBuffer(), SofaFlowVR::FlowVRRenderObject::addPrimitive(), SofaFlowVR::FlowVRRenderObject::addVertexBuffer(), sofa::component::visualmodel::VisualModelImpl::bbox, sofa::defaulttype::ExtVector< T >::empty(), SofaFlowVR::FlowVRModule::f_scale, SofaFlowVR::FlowVRModule::f_trans, ftl::Type::get(), sofa::core::objectmodel::Base::getName(), sofa::core::objectmodel::Data< T >::getValue(), sofa::defaulttype::Mat< L, C, real >::identity(), idIB, idP, idPS, idTex, idVB, idVBN, idVBT, idVBTangent, idVS, sofa::component::visualmodel::VisualModelImpl::lastMeshRev, lastPosRev, SofaFlowVR::FlowVRRenderObject::loadSharedPixelShader(), SofaFlowVR::FlowVRRenderObject::loadSharedTexture(), SofaFlowVR::FlowVRRenderObject::loadSharedTextureNormalMap(), SofaFlowVR::FlowVRRenderObject::loadSharedVertexShader(), sofa::component::visualmodel::VisualModelImpl::material, meshModified, SofaFlowVR::FlowVRObject::mod, paramNM, paramPS, paramT, paramVS, posModified, pShader, sofa::defaulttype::Mat< L, C, real >::ptr(), sofa::component::visualmodel::VisualModelImpl::quads, sofa::defaulttype::ExtVector< T >::resize(), sofa::component::visualmodel::VisualModelImpl::rotation, sofa::component::visualmodel::VisualModelImpl::scale, SofaFlowVR::FlowVRRenderVisualModel::scene, SofaFlowVR::FlowVRRenderVisualModel::scratch, sofa::defaulttype::ExtVector< T >::size(), texture, sofa::helper::Quater< Real >::toMatrix(), sofa::component::visualmodel::VisualModelImpl::triangles, useTangent, sofa::component::visualmodel::VisualModelImpl::vertices, sofa::component::visualmodel::VisualModelImpl::vnormals, vShader, sofa::component::visualmodel::VisualModelImpl::vtexcoords, sofa::component::visualmodel::RigidMappedModel::xforms, and sofa::component::visualmodel::RigidMappedModel::xformsModified.


Field Documentation

Definition at line 1250 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1245 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1252 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1253 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1246 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1247 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1248 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1249 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1251 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1260 of file Main.cpp.

Definition at line 1259 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1257 of file Main.cpp.

Referenced by computeMesh(), and renderUpdate().

Definition at line 1256 of file Main.cpp.

std::map<std::string,std::string> SofaFlowVR::FlowVRRenderMesh::paramNM

Definition at line 1241 of file Main.cpp.

Referenced by parse(), and renderUpdate().

std::map<std::string,std::string> SofaFlowVR::FlowVRRenderMesh::paramPS

Definition at line 1243 of file Main.cpp.

Referenced by parse(), and renderUpdate().

std::map<std::string,std::string> SofaFlowVR::FlowVRRenderMesh::paramT

Definition at line 1240 of file Main.cpp.

Referenced by parse(), and renderUpdate().

std::map<std::string,std::string> SofaFlowVR::FlowVRRenderMesh::paramVS

Definition at line 1242 of file Main.cpp.

Referenced by parse(), and renderUpdate().

Definition at line 1255 of file Main.cpp.

Referenced by computePositions(), and renderUpdate().

Definition at line 1236 of file Main.cpp.

Referenced by renderUpdate().

Definition at line 1238 of file Main.cpp.

Referenced by loadTexture(), and renderUpdate().

Definition at line 1237 of file Main.cpp.

Referenced by parse(), and renderUpdate().

Definition at line 1235 of file Main.cpp.

Referenced by renderUpdate().


The documentation for this class was generated from the following file:

Generated on Sun Nov 23 04:25:04 2008 for Sofa by  doxygen 1.5.7.1