+ double getDistance() const;
+ void setDistance( const double );
+ double getRotation1() const;
+ double getRotation2() const;
+ void setRotation( const double, const double );
+
+ void setOrigin(double theVal[3]);
+ void setDirection(double theVal[3]);
+
+ void initializePlaneData();
+ void initParam();
+ void synchronize();
+ void updateActorList();
+ void updateActorItem( QListWidgetItem* theItem,
+ bool theUpdateSelectAll,
+ bool theUpdateClippingPlaneMap );
+ SMESH::TActorList getCurrentActors();
+
+ void dumpPlaneData() const;
+ void absolutePlaneToRelative ( double theOrigin[3], double theDir[3] );
+ void setBoundsForPreviewWidget();
+ vtkImplicitPlaneWidget* createPreviewWidget();
+
+
+private:
+ SMESHGUI* mySMESHGUI;
+ SVTK_ViewWindow* myViewWindow;
+ SMESH::TPlaneDataVector myPlanes;
+
+ vtkCallbackCommand* myCallback;
+ vtkImplicitPlaneWidget* myPreviewWidget;
+ double myBounds[6];
+
+ QComboBox* ComboBoxPlanes;
+ QCheckBox* isOpenGLClipping;
+ QPushButton* buttonNew;
+ QMenu* MenuMode;
+ QPushButton* buttonDelete;
+
+ QListWidget* ActorList;
+ QCheckBox* SelectAllCheckBox;
+
+ QStackedLayout* ModeStackedLayout;
+
+ QGroupBox* GroupAbsolutePoint;
+ QLabel* TextLabelX;
+ QLabel* TextLabelY;
+ QLabel* TextLabelZ;
+ QtxDoubleSpinBox* SpinBox_X;
+ QtxDoubleSpinBox* SpinBox_Y;
+ QtxDoubleSpinBox* SpinBox_Z;
+ QPushButton* resetButton;
+
+ QGroupBox* GroupAbsoluteDirection;
+ QLabel* TextLabelDx;
+ QLabel* TextLabelDy;
+ QLabel* TextLabelDz;
+ QtxDoubleSpinBox* SpinBox_Dx;
+ QtxDoubleSpinBox* SpinBox_Dy;
+ QtxDoubleSpinBox* SpinBox_Dz;
+ QPushButton* invertButton;
+ QComboBox* CBAbsoluteOrientation;
+
+ QGroupBox* GroupRelative;
+ QLabel* TextLabelOrientation;
+ QLabel* TextLabelDistance;
+ QLabel* TextLabelRotation1;
+ QLabel* TextLabelRotation2;
+ QtxDoubleSpinSlider* SpinSliderDistance;
+ QtxIntSpinSlider* SpinSliderRotation1;
+ QtxIntSpinSlider* SpinSliderRotation2;
+ QComboBox* CBRelativeOrientation;
+
+ QCheckBox* PreviewCheckBox;
+ QCheckBox* AutoApplyCheckBox;
+
+ QPushButton* buttonOk;
+ QPushButton* buttonCancel;
+ QPushButton* buttonApply;
+ QPushButton* buttonHelp;
+
+ bool myIsSelectPlane;
+ bool myIsPreviewMoved;
+ QString myHelpFileName;
+
+ SMESH::Mode CurrentMode;
+
+protected slots:
+ virtual void reject();