1 | // *********************************************************************
|
---|
2 | // created: 2007/11/13 - 16:51
|
---|
3 | // filename: DbtPlyAlascaManager.h
|
---|
4 | //
|
---|
5 | // author: Gerald Dherbomez
|
---|
6 | // Copyright Heudiasyc UMR UTC/CNRS 6599
|
---|
7 | //
|
---|
8 | // version: $Id: $
|
---|
9 | //
|
---|
10 | // purpose:
|
---|
11 | // *********************************************************************
|
---|
12 |
|
---|
13 | #ifndef DBTPLYALASCAMANAGER_H
|
---|
14 | #define DBTPLYALASCAMANAGER_H
|
---|
15 |
|
---|
16 | #include <fstream>
|
---|
17 |
|
---|
18 | #include "DbitePlayer/DbtPlyFileManager.h"
|
---|
19 | #include "structure/structure_telemetre.h"
|
---|
20 | #include "structure/genericLidarStructures.h"
|
---|
21 |
|
---|
22 | // Export macro for DbtPlyAlasca DLL for Windows only
|
---|
23 | #ifdef WIN32
|
---|
24 | # ifdef DBTPLYALASCA_EXPORTS
|
---|
25 | // make DLL
|
---|
26 | # define DBTPLYALASCA_API __declspec(dllexport)
|
---|
27 | # else
|
---|
28 | // use DLL
|
---|
29 | # define DBTPLYALASCA_API __declspec(dllimport)
|
---|
30 | # endif
|
---|
31 | #else
|
---|
32 | // On other platforms, simply ignore this
|
---|
33 | # define DBTPLYALASCA_API
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | namespace pacpus {
|
---|
37 |
|
---|
38 | class ShMem;
|
---|
39 |
|
---|
40 | class DBTPLYALASCA_API DbtPlyAlascaManager
|
---|
41 | : public DbtPlyFileManager
|
---|
42 | {
|
---|
43 | public:
|
---|
44 | DbtPlyAlascaManager(QString name);
|
---|
45 | ~DbtPlyAlascaManager();
|
---|
46 |
|
---|
47 | protected:
|
---|
48 | void processData(road_time_t t, road_timerange_t tr, void * buffer);
|
---|
49 | void displayUI();
|
---|
50 |
|
---|
51 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
52 | virtual void startActivity();
|
---|
53 | virtual void stopActivity();
|
---|
54 |
|
---|
55 | void addInputOutput();
|
---|
56 |
|
---|
57 | private:
|
---|
58 | ShMem * mShMem;
|
---|
59 | ScanAlascaData mAlascaData;
|
---|
60 | LidarScan lidarScan;
|
---|
61 |
|
---|
62 | std::ifstream mDataFile;
|
---|
63 | QString mDataFilename;
|
---|
64 | };
|
---|
65 |
|
---|
66 | } // namespace pacpus
|
---|
67 |
|
---|
68 | #endif // DBTPLYALASCAMANAGER_H
|
---|