- Timestamp:
- Jul 25, 2010, 1:46:29 PM (14 years ago)
- Location:
- osgVisual
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/bin/visual_slave.bat
r70 r75 1 osgVisual.exe - -SingleThreaded -C center -s --server localhost12345 --window 950 450 600 350 D:/OpenSceneGraph/VPB-Testdatensatz/DB_Small/database.ive -p salzburg.path1 osgVisual.exe -C center -s --server 192.168.0.101 12345 --window 950 450 600 350 D:/OpenSceneGraph/VPB-Testdatensatz/DB_Small/database.ive -p salzburg.path -
osgVisual/include/cluster/dataIO_clusterENet.h
r69 r75 21 21 #include <osgDB/ReaderWriter> 22 22 #include <iostream> 23 #include <cstdlib> // Clearscrean console 23 24 24 25 #include <dataIO_cluster.h> -
osgVisual/include/dataIO/dataIO_transportContainer.h
r73 r75 35 35 frameID(tC_.frameID), 36 36 viewMatrix(tC_.viewMatrix), 37 eye(tC_.eye),38 center(tC_.center),39 up(tC_.up),40 37 executer(tC_.executer), 41 38 ioSlots(tC_.ioSlots){} 42 39 dataIO_transportContainer(){} 43 40 virtual ~dataIO_transportContainer(){} 44 45 46 41 47 42 … … 52 47 int frameID; 53 48 osg::Matrixd viewMatrix; 54 osg::Vec3d eye, center, up;55 49 executerList executer; 56 50 slotList ioSlots; … … 64 58 const osg::Matrixd& getViewMatrix() const {return viewMatrix;} 65 59 66 void setEye(const osg::Vec3d& eye_) { eye = eye_; }67 const osg::Vec3d& getEye() const { return eye; }68 69 void setCenter(const osg::Vec3d& center_) { center = center_; }70 const osg::Vec3d& getCenter() const { return center; }71 72 void setUp(const osg::Vec3d& up_) { up = up_; }73 const osg::Vec3d& getUp() const { return up; }74 75 60 void setExecuter(const executerList& executer_) {executer=executer_;} 76 61 const executerList& getExecuter() const {return executer;} … … 78 63 void setIOSlots(const slotList& ioSlots_) {ioSlots=ioSlots_;} 79 64 const slotList& getIOSlots() const {return ioSlots;} 80 81 65 82 66 -
osgVisual/src/cluster/dataIO_clusterENet.cpp
r74 r75 125 125 sendContainer->setFrameID(viewer->getFrameStamp()->getFrameNumber()); 126 126 sendContainer->setViewMatrix(viewer->getCamera()->getViewMatrix()); 127 osg::Vec3d eye, center, up;128 viewer->getCamera()->getViewMatrixAsLookAt(eye,center,up);129 sendContainer->setEye(eye);130 sendContainer->setCenter(center);131 sendContainer->setUp(up);132 //std::cout << "sending lookat: eye:"<<eye<<", center:"<<center<<", up:" << up << std::endl;133 127 134 128 // Writing node to stream … … 188 182 // Restore Viewmatrix 189 183 viewer->getCamera()->setViewMatrix(sendContainer->getViewMatrix()); 190 //viewer->getCamera()->setViewMatrixAsLookAt(sendContainer->getEye(),sendContainer->getCenter(),sendContainer->getUp());191 //std::cout << "receiving lookat: eye:"<<eye.x()<<", center:"<<center<<", up:" << up << std::endl;192 184 } 193 185 else -
osgVisual/src/core/visual_core.cpp
r73 r75 106 106 // next frame please.... 107 107 viewer->advance(); 108 std::cout << "New frame----------------------------" << std::endl;109 108 110 109 /*double hat, hot, lat, lon, height; -
osgVisual/src/dataIO/dataIO_transportContainer.cpp
r73 r75 27 27 ADD_INT_SERIALIZER( FrameID, 0 ); 28 28 ADD_MATRIXD_SERIALIZER( ViewMatrix, osg::Matrixd() ); 29 ADD_VEC3D_SERIALIZER( Eye, osg::Vec3d(-1.0, -1.0, -1.0) );30 ADD_VEC3D_SERIALIZER( Center, osg::Vec3d(-1.0,-1.0,-1.0) );31 ADD_VEC3D_SERIALIZER( Up, osg::Vec3d(-1.0,-1.0,-1.0) );32 29 ADD_LIST_SERIALIZER( Executer, osgVisual::dataIO_transportContainer::executerList ); 33 30 ADD_LIST_SERIALIZER( IOSlots, osgVisual::dataIO_transportContainer::slotList ); -
osgVisual/src/dataIO/visual_dataIO.cpp
r73 r75 82 82 if(cluster.valid()) 83 83 //cluster->init(arguments_, clusterMode, slotContainer, true, false); 84 cluster->init(arguments_, viewer_, clusterMode, slotContainer, false, true);84 cluster->init(arguments_, viewer_, clusterMode, slotContainer, false, false); 85 85 86 86 // Create extLink.
Note: See TracChangeset
for help on using the changeset viewer.