Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
pointcloudviewer.h
1 #ifndef POINTCLOUDVIEWER_H
2 #define POINTCLOUDVIEWER_H
3 
4 #include <QMainWindow>
5 #include "programlogic.h"
6 
7 namespace Ui {
8 class PointCloudViewer;
9 }
10 
15 class PointCloudViewer : public QMainWindow
16 {
17  Q_OBJECT
18 
19 public:
20  explicit PointCloudViewer(QWidget *parent = 0);
26  void setProgramLogic(ProgramLogic &pl);
27 
32  void addFov(int value);
33 
38  void addOpenFile(QString name);
39 
44  int getSelectedObject();
45 
49  void removeCurrentFile();
50 
56 
61  float getShaderParamAmbient();
62 
67  void updateFPS(float msec);
68 
73  void updateObjectText(unsigned int index);
74 
75 public slots:
79  void openFile();
83  void closeSelected();
84 
88  void showBGColorDialog();
92  void resetCam();
96  void resetObject();
97 
101  void addLight();
102 
106  void showLightColorDialog();
107 
111  void showObjectNameDialog();
112 
117  void updateFov(int fov);
118 
119 private slots:
120  void on_comboBox_currentIndexChanged(int index);
121 
122  void on_listSceneObjects_doubleClicked(const QModelIndex &index);
123 
124  void on_listSceneObjects_currentRowChanged(int currentRow);
125 
126  void on_actionClose_All_triggered();
127 
128  void on_doubleSpinBox_valueChanged(double value);
129 
130 private:
131  Ui::PointCloudViewer *ui;
132  ProgramLogic *pl;
133  QIcon iconVis, iconHid;
134 
135  void updateObjectList();
136 };
137 
138 #endif // POINTCLOUDVIEWER_H
void setProgramLogic(ProgramLogic &pl)
set Reference to ProgramLogic object
Definition: pointcloudviewer.cpp:43
void resetObject()
reset the currently selected object
Definition: pointcloudviewer.cpp:164
Definition: pointcloudviewer.h:7
void addOpenFile(QString name)
add an object to the scene object list in the gui
Definition: pointcloudviewer.cpp:90
void updateFov(int fov)
update the FOV, called from gui
Definition: pointcloudviewer.cpp:69
void closeSelected()
remove the selected object, close file if it's a point cloud
Definition: pointcloudviewer.cpp:64
void showBGColorDialog()
show dialog to change Background Color.
Definition: pointcloudviewer.cpp:77
Provides access to all functionality of the program.
Definition: programlogic.h:17
void showObjectNameDialog()
show dialog to change object name
Definition: pointcloudviewer.cpp:202
float getShaderParamAmbient()
get value for ambient light from gui.
Definition: pointcloudviewer.cpp:160
void showLightColorDialog()
show dialog to change light color
Definition: pointcloudviewer.cpp:186
void addFov(int value)
change Fov by value, called from mouse listener
Definition: pointcloudviewer.cpp:73
int getShaderParamShininess()
get value for shininess from gui.
Definition: pointcloudviewer.cpp:156
void resetCam()
reset the camera
Definition: pointcloudviewer.cpp:85
void openFile()
Show dialog to open new file.
Definition: pointcloudviewer.cpp:51
void updateObjectText(unsigned int index)
update the text of the current selected scene object
Definition: pointcloudviewer.cpp:135
int getSelectedObject()
return the index of currently selected scene object in the gui
Definition: pointcloudviewer.cpp:101
void addLight()
add a new light
Definition: pointcloudviewer.cpp:178
void updateFPS(float msec)
update the FPS counter
Definition: pointcloudviewer.cpp:173
PointCloudViewer This class is the main window of the Application.
Definition: pointcloudviewer.h:15
void removeCurrentFile()
remove the current selected object from the list of scene objects
Definition: pointcloudviewer.cpp:94