Changeset 64 in pacpussensors for trunk/PtGreyCameras
- Timestamp:
- Sep 4, 2014, 11:19:05 AM (10 years ago)
- Location:
- trunk/PtGreyCameras
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PtGreyCameras/CMakeLists.txt
r51 r64 130 130 FILES_TO_MOC 131 131 Flea3Component.h 132 #Flea3Grabber.h132 Flea3Grabber.h 133 133 ) 134 134 endif() -
trunk/PtGreyCameras/Flea3Grabber.cpp
r56 r64 43 43 this->nbrCamera_ = 1; 44 44 this->masterCamera_ = 0; 45 this->img2send_ = 0; 45 46 } 46 47 … … 951 952 //++imageCount; 952 953 } 953 954 // Has to change 955 this->img_sending_->write((void*)correctedImg[0].data, settings_[0].mMaxImageOutputSize); 956 } 954 955 switch (img2send_) 956 { 957 case 0: 958 this->img_sending_->write((void*)convertedImage[0].GetData(), settings_[0].mMaxImageOutputSize); 959 break; 960 case 1: 961 this->img_sending_->write((void*)correctedImg[0].data, settings_[0].mMaxImageOutputSize); 962 break; 963 case 2: 964 this->img_sending_->write((void*)convertedImage[1].GetData(), settings_[0].mMaxImageOutputSize); 965 break; 966 case 3: 967 this->img_sending_->write((void*)correctedImg[1].data, settings_[0].mMaxImageOutputSize); 968 break; 969 default: 970 // Should not happen 971 break; 972 } 973 } 957 974 958 975 for (int i = 0; i < this->nbrCamera_; i++) … … 989 1006 } 990 1007 } 1008 1009 1010 //////////////////////////////////////////////////////////////////////////////// 1011 /// Slot to change the image 1012 //////////////////////////////////////////////////////////////////////////////// 1013 void Flea3Grabber::changeImage() 1014 { 1015 img2send_ = ++img2send_ & 0x03; 1016 } -
trunk/PtGreyCameras/Flea3Grabber.h
r56 r64 15 15 16 16 #include <QThread> 17 #include <QMutex>18 17 #include <QDir> 19 18 … … 32 31 #include <string> 33 32 #include <vector> 34 #include "../../ StdDbtPlayerComponents/ImageBaseStructure.h"33 #include "../../../Pacpussensors/trunk/StdDbtPlayerComponents/ImageBaseStructure.h" 35 34 36 35 namespace pacpus { … … 102 101 public ComponentBase 103 102 { 103 Q_OBJECT 104 104 public: 105 105 //============================= DEFAULT ELEMENTS =============================================== … … 113 113 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 114 114 //============================================================================================== 115 115 116 /** 117 * Initialize default values 118 */ 119 void InitDefault(int indice); 120 121 int img2send_; 122 116 123 protected: 117 124 … … 123 130 bool THREAD_ALIVE; 124 131 125 public:126 127 /**128 * Initialize default values129 */130 void InitDefault(int indice);131 132 132 133 private: … … 139 140 std::vector<camSetting> settings_; 140 141 std::vector<ShMem*> shmem_images_; 142 143 public Q_SLOTS: 144 void changeImage(); 141 145 }; 142 146
Note:
See TracChangeset
for help on using the changeset viewer.