source: pacpusframework/branches/2.0-beta1/include/PacpusCityVIP/Lidar/dbt/DbtPlyAlascaManager.h@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 1.7 KB
Line 
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
36namespace pacpus {
37
38class ShMem;
39
40class DBTPLYALASCA_API DbtPlyAlascaManager
41 : public DbtPlyFileManager
42{
43public:
44 DbtPlyAlascaManager(QString name);
45 ~DbtPlyAlascaManager();
46
47protected:
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
57private:
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
Note: See TracBrowser for help on using the repository browser.