GlobeEngine
OverviewPointCloud.h
Go to the documentation of this file.
1 #ifndef ExoViewer_OverviewPointCloud_h
2 #define ExoViewer_OverviewPointCloud_h
3 
4 #include "DrawableComponent.h"
5 
6 namespace geAstro{
8  public:
11  void clear();
12  void create(){};
13  void update();
14 
15  void clearVectors();
16 
17  void addPoint(vmml::Vector3d _point, vmml::Vector3f _color, int _id);
18 
19  void createVAO();
20 
21  void setGeometryBuffer(int _bufferID);
22  void setColorBuffer(int _bufferID);
23  void setPickIDBuffer(int _bufferID);
24  void setIndices();
25 
26  void setColor(vmml::Vector3f _color, int _index);
27 
28  void setScaleFactor(double _scaleFactor);
29  void setScaled(bool _scaled);
30  void draw(std::shared_ptr<ge::Camera> _cam);
31 
32  std::vector<vmml::Vector3d>* getPoints();
33 
34  private:
35  std::vector<vmml::Vector3d> points;
36  std::vector<vmml::Vector3f> colors;
37  std::vector<int> pointIDs;
38 
39  float pointSize;
40 
41  double scale(double _value);
42 
43  double scaleFactor;
44  bool scaled;
45  };
46 }
47 
48 #endif
Definition: DrawableComponent.h:25
void setScaled(bool _scaled)
void setScaleFactor(double _scaleFactor)
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: OverviewPointCloud.cpp:82
void createVAO()
Definition: OverviewPointCloud.cpp:23
void update()
Definition: OverviewPointCloud.cpp:108
void setColor(vmml::Vector3f _color, int _index)
Definition: OverviewPointCloud.cpp:97
Definition: AstroCommon.h:18
~OverviewPointCloud()
Definition: OverviewPointCloud.cpp:9
void create()
Definition: OverviewPointCloud.h:12
Definition: OverviewPointCloud.h:7
void addPoint(vmml::Vector3d _point, vmml::Vector3f _color, int _id)
Definition: OverviewPointCloud.cpp:102
OverviewPointCloud()
Definition: OverviewPointCloud.cpp:4
void setColorBuffer(int _bufferID)
Definition: OverviewPointCloud.cpp:49
void setGeometryBuffer(int _bufferID)
Definition: OverviewPointCloud.cpp:35
void clear()
Definition: OverviewPointCloud.cpp:13
void setIndices()
Definition: OverviewPointCloud.cpp:73
std::vector< vmml::Vector3d > * getPoints()
void setPickIDBuffer(int _bufferID)
Definition: OverviewPointCloud.cpp:61