camerasDialog.h 785 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4
#ifndef _CAMERASDIALOG_H_
#define _CAMERASDIALOG_H_

#include "ui_camerasDialog.h"
Pierre Kraemer's avatar
Pierre Kraemer committed
5
#include "view.h"
Pierre Kraemer's avatar
Pierre Kraemer committed
6

Pierre Kraemer's avatar
Pierre Kraemer committed
7 8 9 10 11 12
namespace CGoGN
{

namespace SCHNApps
{

Pierre Kraemer's avatar
Pierre Kraemer committed
13 14 15 16 17 18 19 20 21 22 23 24 25
class Window;
class Camera;

class CamerasDialog : public QDialog, Ui::CamerasDialog
{
	Q_OBJECT

public:
	CamerasDialog(Window* window);
	~CamerasDialog();

private:
	Window* m_window;
Pierre Kraemer's avatar
Pierre Kraemer committed
26
	bool b_refreshingUI;
Pierre Kraemer's avatar
Pierre Kraemer committed
27 28

public slots:
Pierre Kraemer's avatar
Pierre Kraemer committed
29 30 31 32
	void setCameraType(const QString& name, qglviewer::Camera::Type type);
	void setDrawCamera(const QString& name, bool b);
	void setDrawCameraPath(const QString& name, bool b);

Pierre Kraemer's avatar
Pierre Kraemer committed
33 34 35 36
	void cb_addCamera();
	void cb_removeCameras();
	void cb_addCameraToList(Camera* c);
	void cb_removeCameraFromList(Camera* c);
Pierre Kraemer's avatar
Pierre Kraemer committed
37
	void cb_itemChanged(QTreeWidgetItem* item, int column);
Pierre Kraemer's avatar
Pierre Kraemer committed
38 39
};

Pierre Kraemer's avatar
Pierre Kraemer committed
40 41 42 43
} // namespace SCHNApps

} // namespace CGoGN

Pierre Kraemer's avatar
Pierre Kraemer committed
44
#endif