Changeset 144 in flair-src
- Timestamp:
- Feb 27, 2017, 10:59:54 AM (8 years ago)
- Location:
- trunk/lib
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/OneAxisRotation.cpp
r15 r144 56 56 } 57 57 58 float OneAxisRotation::GetAngle() const { 59 return pimpl_->GetAngle(); 60 } 61 62 int OneAxisRotation::GetAxis() const { 63 return pimpl_->GetAxis(); 64 } 65 58 66 } // end namespace core 59 67 } // end namespace flair -
trunk/lib/FlairCore/src/OneAxisRotation.h
r15 r144 82 82 void ComputeRotation(core::RotationMatrix &matrix) const; 83 83 84 float GetAngle() const; 85 int GetAxis() const; 86 84 87 private: 85 88 const class OneAxisRotation_impl *pimpl_; -
trunk/lib/FlairCore/src/OneAxisRotation_impl.cpp
r103 r144 74 74 quat.ToEuler(euler); 75 75 } 76 77 int OneAxisRotation_impl::GetAxis() const { 78 return rot_axe->CurrentIndex(); 79 } 80 81 float OneAxisRotation_impl::GetAngle() const { 82 return rot_value->Value(); 83 } 84 -
trunk/lib/FlairCore/src/unexported/OneAxisRotation_impl.h
r15 r144 40 40 void ComputeRotation(flair::core::RotationMatrix &matrix) const; 41 41 void ComputeRotation(flair::core::Euler &euler) const; 42 42 int GetAxis() const; 43 float GetAngle() const; 44 43 45 private: 44 46 flair::gui::ComboBox *rot_axe; -
trunk/lib/FlairSensorActuator/src/SimuCamera.cpp
r137 r144 38 38 Camera(name, width, height, cvimage::Type::Format::BGR) { 39 39 data_rate = 40 new SpinBox(GetGroupBox()->NewRow(), "data rate", " Hz", 1, 100, 1, 50);40 new SpinBox(GetGroupBox()->NewRow(), "data rate", " Hz", 1, 200, 1, 50); 41 41 42 42 buf_size = width * height * channels; … … 82 82 83 83 output->GetMutex(); 84 //blocking read 84 85 shmem->Read((char *)img->imageData, buf_size); // remplacer copie par 85 86 // échange de pointeur sur -
trunk/lib/FlairSensorActuator/src/SimuCamera.h
r137 r144 19 19 20 20 namespace flair { 21 namespace core {22 class SharedMem;23 }24 namespace gui {25 class SpinBox;26 }21 namespace core { 22 class SharedMem; 23 } 24 namespace gui { 25 class SpinBox; 26 } 27 27 } 28 28 -
trunk/lib/FlairSimulator/src/Gui_impl.cpp
r134 r144 266 266 } 267 267 268 for (size_t i = 0; i < models.size(); i++) { 269 models.at(i)->ProcessUpdate(NULL); 270 } 268 // for (size_t i = 0; i < models.size(); i++) { 269 // models.at(i)->ProcessUpdate(NULL); 270 ProcessUpdate(NULL); 271 Printf("Appel à ProcessUpdate depuis Gui_impl::RunGui\n"); 272 // } 271 273 272 274 // on fait ca ici, devrait etre un peu plus haut -
trunk/lib/FlairSimulator/src/Model_impl.cpp
r70 r144 331 331 332 332 self->ProcessUpdate(output); 333 Printf("Appel à ProcessUpdate depuis Model_impl::Run\n"); //already done by Gui_impl::RunGui (dans le cas où il y a un GUI) 333 334 } 334 335 -
trunk/lib/FlairSimulator/src/unexported/Gui_impl.h
r70 r144 25 25 26 26 namespace irr { 27 class IrrlichtDevice;28 namespace scene {29 class ISceneManager;30 class IMeshSceneNode;31 class ITriangleSelector;32 }33 namespace video {34 class IVideoDriver;35 }36 namespace gui {37 class IGUIFont;38 class IGUIEnvironment;39 }27 class IrrlichtDevice; 28 namespace scene { 29 class ISceneManager; 30 class IMeshSceneNode; 31 class ITriangleSelector; 32 } 33 namespace video { 34 class IVideoDriver; 35 } 36 namespace gui { 37 class IGUIFont; 38 class IGUIEnvironment; 39 } 40 40 } 41 41 42 42 namespace flair { 43 namespace core { 44 class Object; 45 } 46 namespace simulator { 47 class Model; 48 class GenericObject; 49 class Gui; 50 class VisualizationCamera; 51 } 43 namespace core { 44 class Object; 45 class IODevice; 46 } 47 namespace simulator { 48 class Model; 49 class GenericObject; 50 class Gui; 51 class VisualizationCamera; 52 } 52 53 } 53 54 54 55 class MyEventReceiver; 55 56 56 class Gui_impl {57 class Gui_impl:public IODevice { 57 58 public: 58 59 Gui_impl(flair::simulator::Gui *self, int app_width, int app_height, -
trunk/lib/FlairVisionFilter/src/OpticalFlow.cpp
r122 r144 53 53 54 54 GroupBox* reglages_groupbox=new GroupBox(position,name); 55 56 55 rotation=new OneAxisRotation(reglages_groupbox->NewRow(),"post rotation"); 56 max_features=new SpinBox(reglages_groupbox->NewRow(),"max features:",1,65535,1,1); 57 57 58 58 output=new OpticalFlowData(parent,max_features->Value()); … … 85 85 unsigned int i; 86 86 87 if(max_features->ValueChanged()==true) 88 { 87 if(max_features->ValueChanged()==true) { 89 88 cvFree(&pointsA); 90 89 cvFree(&pointsB); … … 125 124 */ 126 125 //apply rotation 127 for(i=0;i<count;i++) 128 { 126 for(i=0;i<count;i++) { 129 127 Vector3D tmp; 130 128 tmp.x=pointsA[i].x;
Note:
See TracChangeset
for help on using the changeset viewer.