mirror of
https://gitlab.univ-nantes.fr/E164955Z/ptrans.git
synced 2026-08-30 00:00:26 +08:00
62 lines
2.0 KiB
C++
62 lines
2.0 KiB
C++
//##########################################################################
|
|
//# #
|
|
//# CLOUDCOMPARE PLUGIN: ColorimetricSegmenter #
|
|
//# #
|
|
//# This program is free software; you can redistribute it and/or modify #
|
|
//# it under the terms of the GNU General Public License as published by #
|
|
//# the Free Software Foundation; version 2 of the License. #
|
|
//# #
|
|
//# This program is distributed in the hope that it will be useful, #
|
|
//# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
//# GNU General Public License for more details. #
|
|
//# #
|
|
//# COPYRIGHT: Tri-Thien TRUONG, Ronan COLLIER, Mathieu LETRONE #
|
|
//# #
|
|
//##########################################################################
|
|
|
|
#ifndef RgbDialog_H
|
|
#define RgbDialog_H
|
|
|
|
#include <ui_RgbDialog.h>
|
|
#include "ccPickingListener.h"
|
|
|
|
//Qt
|
|
#include <ccHObject.h>
|
|
#include <QDialog>
|
|
#include <qcheckbox.h>
|
|
|
|
class ccGLWindow;
|
|
class ccPlane;
|
|
class ccHObject;
|
|
class ccPickingHub;
|
|
|
|
class RgbDialog : public QDialog, public ccPickingListener, public Ui::RgbDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit RgbDialog(ccPickingHub* pickingHub, QWidget* parent = 0);
|
|
|
|
//! Inherited from ccPickingListener
|
|
virtual void onItemPicked(const PickedItem& pi);
|
|
|
|
void processPickedItem(ccHObject* entity, unsigned, int, int, const CCVector3& P, const CCVector3d& uvw);
|
|
|
|
public slots:
|
|
void pickPoint(bool);
|
|
|
|
protected: //members
|
|
|
|
//! Picking window (if any)
|
|
ccGLWindow* m_pickingWin;
|
|
|
|
//! Associated plane (if any)
|
|
ccPlane* m_associatedPlane;
|
|
|
|
//! Picking hub
|
|
ccPickingHub* m_pickingHub;
|
|
|
|
};
|
|
|
|
#endif // RgbDialog_H
|