Changeset 61 in pacpusframework for trunk/include/Pacpus/DbitePlayer
- Timestamp:
- Jan 9, 2013, 1:40:39 PM (12 years ago)
- Location:
- trunk/include/Pacpus/DbitePlayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/DbitePlayer/DbtPlyEngine.h
r31 r61 71 71 void reset(); 72 72 73 /// @todo Documentation 73 74 void speedUp(); 75 /// @todo Documentation 74 76 void speedDown(); 77 /// @todo Documentation 75 78 void setLastTNow(road_time_t newTNow) 76 79 { … … 79 82 80 83 protected: 81 // The 3 virtual methods relative to the ComponentBase inheritance84 /// @todo Documentation 82 85 virtual void startActivity(); 86 /// @todo Documentation 83 87 virtual void stopActivity(); 88 /// @todo Documentation 84 89 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 85 90 … … 122 127 123 128 Q_SIGNALS: 129 /// @todo Documentation 124 130 void play(road_time_t timeToPlay, road_time_t actualTime, bool direction); 131 /// @todo Documentation 125 132 void stopfile(); 133 /// @todo Documentation 126 134 void displayStateSig(DbtPlyEngineState * state, float speed); 135 /// @todo Documentation 127 136 void timeMinMax(road_time_t tMin, road_time_t tMax); 137 /// @todo Documentation 128 138 void curReplayTime(road_time_t time); 129 139 130 140 public Q_SLOTS: 141 /// @todo Documentation 131 142 void engReceiver(); 143 /// @todo Documentation 132 144 void changeDirection(bool reverse); 145 /// @todo Documentation 133 146 void tMinMax(road_time_t tMin, road_time_t tMax); 134 147 148 /// @todo Documentation 135 149 void playEvent(); 150 /// @todo Documentation 136 151 void pauseEvent(); 152 /// @todo Documentation 137 153 void stopEvent(); 154 /// @todo Documentation 138 155 void speedUpEvent(); 156 /// @todo Documentation 139 157 void speedDownEvent(); 140 158 }; -
trunk/include/Pacpus/DbitePlayer/DbtPlyFileManager.h
r31 r61 41 41 42 42 public: 43 // constructor43 /// constructor 44 44 DbtPlyFileManager(QString name); 45 // destructor45 /// destructor 46 46 virtual ~DbtPlyFileManager(); 47 47 48 // the player replays only the last data that has not been yet replayed 48 /// the player replays only the last data that has not been yet replayed 49 /// @todo Rename 49 50 void playMode1 (road_time_t tDbt, bool reverse); 50 // the player replays all the data that have not been yet replayed 51 /// the player replays all the data that have not been yet replayed 52 /// @todo Rename 51 53 void playMode2 (road_time_t tDbt, bool reverse); 52 54 53 // virtual method: call when new DBT data are replayed55 /// virtual method: call when new DBT data are replayed 54 56 virtual void processData(road_time_t time, road_timerange_t timeRange, void * data) = 0; 55 57 virtual void displayUI(); 56 58 57 // 3 Virtual methods relative to the ComponentBase inheritance59 /// 3 Virtual methods relative to the ComponentBase inheritance 58 60 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 61 /// @todo Documentation 59 62 virtual void startActivity(); 63 /// @todo Documentation 60 64 virtual void stopActivity(); 61 65 62 // The loop of the thread66 /// The loop of the thread 63 67 virtual void run(); 64 68 65 69 public Q_SLOTS: 66 // slot activated by the engine when it computes new DBT time70 /// slot activated by the engine when it computes new DBT time 67 71 void playData(road_time_t tDbt,road_time_t tNow, bool reverse); 68 72 69 // put the file descriptor to the beginning of the file73 /// put the file descriptor to the beginning of the file 70 74 void beginfile(); 71 75 72 76 Q_SIGNALS: 73 // signal sent to the engine to provide to it the tmin and tmax of the file77 /// signal sent to the engine to provide to it the tmin and tmax of the file 74 78 void tMinMaxIs(road_time_t tmin, road_time_t tmax); 75 79 … … 78 82 int mVerbose; 79 83 80 // a pointer on the player engine84 /// a pointer on the player engine 81 85 DbtPlyEngine * mEngine; 82 86 83 // the absolute path of the DBT file87 /// the absolute path of the DBT file 84 88 QString dbtProperty_; 85 89 QStringList mDbtFilenameList; 86 90 87 // The directory where the DBT file is located91 /// The directory where the DBT file is located 88 92 QString mDbtDataPath; 89 93 90 // Display or not the graphical interface94 /// Display or not the graphical interface 91 95 bool mShowGui; 92 96 97 /// @todo Documentation 93 98 struct dbtStruct 94 99 { … … 98 103 }; 99 104 105 /// @todo Documentation 100 106 struct dbtStructFile 101 107 { … … 112 118 113 119 private: 120 /// @todo Documentation 114 121 bool processDbtFileHdfile(dbtStructFile & dbtFile, pacpus::DbiteFile::ReadDirection direction); 115 122 … … 118 125 bool reverse_; 119 126 120 // the estimated DBT time sent by the engine and computed relatively to the state of the player127 /// the estimated DBT time sent by the engine and computed relatively to the state of the player 121 128 road_time_t timeToRead_; 122 129 123 // The mode of replay124 // see playModeN method130 /// The mode of replay 131 /// @see playMode1, playMode2 methods 125 132 int mode_; 126 133 127 // The minimum and maximum time of the data contained in the file134 /// The minimum and maximum time of the data contained in the file 128 135 road_time_t tMin_, tMax_; 129 136 130 // the synchronization semaphore with the engine137 /// the synchronization semaphore with the engine 131 138 QSemaphore * sync_; 132 139 133 // For statistics purpose - delta time between the instant when the tDbt is computed and the instant when it is134 // taken into account by the file manager140 /// For statistics purpose - delta time between the instant when the tDbt is computed and the instant when it is 141 /// taken into account by the file manager 135 142 int deltaTDbtTab_[1000]; 136 143 int deltaTDbtTabLoop_; -
trunk/include/Pacpus/DbitePlayer/DbtPlyTrigger.h
r31 r61 35 35 36 36 public: 37 /// @todo Documentation 37 38 DbtPlyTrigger(QString name); 39 /// @todo Documentation 38 40 virtual ~DbtPlyTrigger(); 39 41 42 /// @todo Documentation 40 43 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 41 44 45 /// @todo Documentation 42 46 virtual void run(); 43 47 44 48 Q_SIGNALS: 49 /// @todo Documentation 45 50 void triggerSig(); 46 51 47 52 protected: 53 /// @todo Documentation 48 54 virtual void startActivity(); 55 /// @todo Documentation 49 56 virtual void stopActivity(); 50 57
Note:
See TracChangeset
for help on using the changeset viewer.