-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpointscloud_reader.h
More file actions
45 lines (36 loc) · 1.03 KB
/
pointscloud_reader.h
File metadata and controls
45 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __POINTS_CLOUD_READER_H
#define __POINTS_CLOUD_READER_H
#include <fstream>
#include <experimental/filesystem>
#include <string>
#include <osg/Camera>
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/LineWidth>
#include <osgUtil/Tessellator>
#include <osgViewer/Viewer>
#include <osg/ShapeDrawable>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
#include <osgGA/UFOManipulator>
#include <osgUtil/DelaunayTriangulator>
#include <pdal/Dimension.hpp>
#include <pdal/Options.hpp>
#include <pdal/PointView.hpp>
#include <pdal/PointViewIter.hpp>
#include <pdal/io/LasReader.hpp>
namespace pc2m {
class PointsCloudReader {
private:
osg::ref_ptr<osg::Vec3Array> vertices;
osg::ref_ptr<osg::Vec4Array> colors;
public:
PointsCloudReader();
void xyzLoad(const std::string &);
void lasLoad(const std::string &);
osg::Vec3Array * getVertices() { return vertices; }
osg::Vec4Array * getColors() { return colors; }
~PointsCloudReader();
};
}
#endif // __POINTS_CLOUD_READER_H