BALL
1.4.1
|
00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 00005 #ifndef BALL_VIEW_DIALOGS_CLIPPINGDIALOG_H 00006 #define BALL_VIEW_DIALOGS_CLIPPINGDIALOG_H 00007 00008 #ifndef BALL_COMMON_GLOBAL_H 00009 # include <BALL/COMMON/global.h> 00010 #endif 00011 00012 #ifndef BALL_VIEW_KERNEL_CLIPPING_PLANE_H 00013 # include <BALL/VIEW/KERNEL/clippingPlane.h> 00014 #endif 00015 00016 #include <BALL/VIEW/UIC/ui_clippingDialog.h> 00017 00018 #include <QtGui/QDialog> 00019 00020 namespace BALL 00021 { 00022 namespace VIEW 00023 { 00027 class BALL_VIEW_EXPORT ClippingDialog 00028 : public QDialog, 00029 public Ui_ClippingDialogData 00030 { 00031 Q_OBJECT 00032 00033 public: 00034 00038 00041 ClippingDialog(QWidget *parent = NULL, const char *name = "ClippingDialog" ); 00042 00044 00047 00050 virtual ~ClippingDialog(); 00051 00053 void setClippingPlane(ClippingPlane* plane) { clipping_plane_ = plane;} 00054 00056 const ClippingPlane* getClippingPlane() const { return clipping_plane_;} 00057 00059 00060 public slots: 00061 00065 00068 void exec(); 00069 00071 void accept(); 00072 00074 00077 00078 protected: 00079 00080 ClippingPlane* clipping_plane_; 00081 }; 00082 00083 } } // namespaces 00084 00085 #endif // BALL_VIEW_DIALOGS_CLIPPINGDIALOG_H