Documentation


ManipulatedMeshVertexAnimated.cpp

Go to the documentation of this file.
00001 //
00002 // C++ Implementation: ManipulatedMeshVertexAnimated
00003 //
00004 // Description: 
00005 //
00006 //
00007 // Author: Matthieu Nesme <>, (C) 2004
00008 //
00009 // Copyright: See COPYING file that comes with this distribution
00010 //
00011 //
00012 #include "ManipulatedMeshVertexAnimated.h"
00013 
00014 namespace animal {
00015 
00016 namespace octree {
00017 
00018 template<typename t_Vector,typename t_Real,typename t_VecReal>
00019 ManipulatedMeshVertexAnimated<t_Vector,t_Real,t_VecReal>::ManipulatedMeshVertexAnimated(X3DTK::X3D::DeformableOctreeParticleSystemNode *node, const X3DTK::SFVec3f *meshVertex)
00020  : ManipulatedMeshVertex(node,meshVertex)
00021  , _node(node)
00022 {
00023 }
00024 
00025 
00026 template<typename t_Vector,typename t_Real,typename t_VecReal>
00027 ManipulatedMeshVertexAnimated<t_Vector,t_Real,t_VecReal>::~ManipulatedMeshVertexAnimated()
00028 {
00029 }
00030 
00031 template<typename t_Vector,typename t_Real,typename t_VecReal>
00032 void ManipulatedMeshVertexAnimated<t_Vector,t_Real,t_VecReal>::moveTo( float x, float y, float z )
00033 {
00034     //std::cerr << "ManipulatedMeshVertex::moveTo( " << x << ", " << y << " , " << z << " )\n";
00035     Require( _octree );
00036     Require( _vertex );
00037     _node->getOctree()->directManipulation( _vertex, Vec3d(x,y,z) );
00038     _node->getOctree()->movedRecLeaves( _node->getOctree()->root() );
00039     //_node->updateGL();
00040     //_node->animate(1);
00041     
00042     //std::cerr << "\tPosition is now : " << *_vertex->getSFVec3f() << "\n";
00043     /*
00044     (*(_vertex->getSFVec3f()))[0] = _initPos[0]+x;
00045     (*(_vertex->getSFVec3f()))[1] = _initPos[1]+y;
00046     (*(_vertex->getSFVec3f()))[2] = _initPos[2]+z;
00047     */
00048 }
00049 
00050 };
00051 
00052 };

Generated on Thu Dec 23 13:52:25 2004 by doxygen 1.3.6