Changeset 158 in flair-src for trunk/lib/FlairSimulator/src/Model.cpp
- Timestamp:
- Mar 5, 2017, 10:50:56 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/Model.cpp
r70 r158 18 18 #include "Model_impl.h" 19 19 #include "Simulator.h" 20 #include "Simulator_impl.h"21 20 #include <DoubleSpinBox.h> 22 21 23 22 #ifdef GL 24 23 #include "FollowMeCamera.h" 25 #include "Gui.h"26 24 #include <ICameraSceneNode.h> 27 25 using namespace irr; … … 36 34 namespace simulator { 37 35 38 Model::Model(const Simulator *parent, std::string name) 39 : IODevice(parent, name) { 40 #ifdef GL 41 pimpl_ = 42 new Model_impl(this, name, getGui()->getSceneManager(), parent->pimpl_); 43 #else 44 pimpl_ = new Model_impl(this, name, parent->pimpl_); 45 #endif 46 parent->pimpl_->models.push_back(this); 36 Model::Model(std::string name,uint32_t modelId) 37 : IODevice(getSimulator(), name) { 38 pimpl_ = new Model_impl(this, name,modelId); 47 39 } 48 40 … … 79 71 float Model::dT(void) const { return pimpl_->dT->Value(); } 80 72 73 int Model::GetId(void) const { 74 return pimpl_->modelId; 75 } 76 81 77 } // end namespace simulator 82 78 } // end namespace flair
Note:
See TracChangeset
for help on using the changeset viewer.