From: Oliver O. <fr...@us...> - 2007-04-05 04:09:25
|
Update of /cvsroot/simspark/simspark/spark/oxygen/geometryserver In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17885 Modified Files: Tag: projectx geometryserver.h Log Message: - added support for meshexporter Index: geometryserver.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/oxygen/geometryserver/geometryserver.h,v retrieving revision 1.2.4.1 retrieving revision 1.2.4.2 diff -C2 -d -r1.2.4.1 -r1.2.4.2 *** geometryserver.h 30 Mar 2007 03:18:16 -0000 1.2.4.1 --- geometryserver.h 5 Apr 2007 04:09:22 -0000 1.2.4.2 *************** *** 25,28 **** --- 25,29 ---- #include <zeitgeist/class.h> #include <zeitgeist/node.h> + #include "meshexporter.h" #include "trimesh.h" *************** *** 52,57 **** returns a cached reference */ ! boost::shared_ptr<TriMesh> GetMesh ! (const std::string& name, const zeitgeist::ParameterList& parameter); /** register a trimesh to the GeometryServer. The name of the mesh --- 53,58 ---- returns a cached reference */ ! boost::shared_ptr<TriMesh> ! GetMesh (const std::string& name, const zeitgeist::ParameterList& parameter); /** register a trimesh to the GeometryServer. The name of the mesh *************** *** 60,63 **** --- 61,74 ---- void RegisterMesh(boost::shared_ptr<TriMesh> mesh); + /** Create an instance of a mesh bridge and register it to the GeometryServer. + A MeshExporter is a class that takes care to additionally register/export + meshes registered at the GeometryServer at another class (potentially + external to spark). This has to be done only when spark/kerosin + rendering alone is not enough. + \param name name of the MeshBridge class name + \returns true if successful + */ + bool InitMeshExporter(const std::string& name); + protected: /** registers the standard mesh importer */ |