Changeset 158 in flair-src for trunk/lib/FlairSimulator/src/Model_impl.cpp
- Timestamp:
- 03/05/17 10:50:56 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/Model_impl.cpp
r151 r158 18 18 #include "Model_impl.h" 19 19 #include "Simulator.h" 20 #include "Simulator_impl.h" 20 21 #include "TabWidget.h" 21 22 #include "Tab.h" … … 51 52 52 53 #ifdef GL 53 Model_impl::Model_impl(Model *self, std::string name, 54 ISceneManager *scenemanager, vrpn_Connection_IP *vrpn) 55 : ISceneNode(scenemanager->getRootSceneNode(), scenemanager, -1), 56 Thread(self, name, 50), vrpn_Tracker(name.c_str(), vrpn) 54 Model_impl::Model_impl(Model *self, std::string name,uint32_t modelId) 55 : ISceneNode(getGui()->getSceneManager()->getRootSceneNode(), getGui()->getSceneManager(), -1), 56 Thread(self, name, 50), vrpn_Tracker(name.c_str(), getSimulator()->pimpl_) 57 57 58 58 #else 59 Model_impl::Model_impl(Model *self, std::string name, vrpn_Connection_IP *vrpn)60 : Thread(self, name, 50), vrpn_Tracker(name.c_str(), vrpn)59 Model_impl::Model_impl(Model *self, std::string name,uint32_t modelId) 60 : Thread(self, name, 50), vrpn_Tracker(name.c_str(), getSimulator()->pimpl_) 61 61 #endif 62 62 { 63 63 this->self = self; 64 this->modelId=modelId; 64 65 65 66 #ifdef GL … … 131 132 132 133 self->AddDataToLog(output); 134 135 getSimulator()->pimpl_->models.push_back(self); 133 136 } 134 137
Note:
See TracChangeset
for help on using the changeset viewer.