1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : VisuGUI_CutSegmentDlg.h
21 // Author : Oleg UVAROV
24 #ifndef VISUGUI_CUTSEGMENTDLG_H
25 #define VISUGUI_CUTSEGMENTDLG_H
27 #include "VisuGUI_CutPlanesDlg.h"
34 class SalomeApp_Module;
35 class VisuGUI_InputPane;
36 class SalomeApp_DoubleSpinBox;
43 class VisuGUI_CutSegmentDlg: public VisuGUI_ScalarBarBaseDlg
48 VisuGUI_CutSegmentDlg (SalomeApp_Module* theModule);
49 ~VisuGUI_CutSegmentDlg();
51 virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
54 virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
56 bool isGenerateTable() { return myCreateTable->isChecked(); }
57 bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
60 virtual QString GetContextHelpFilePath();
67 void onPreviewCheck(bool thePreview);
68 void onAllCurvesInvertedCheck(bool theInvert);
69 void onPointModified();
74 void updateGlyphs(bool update);
75 void updatePoints(bool update);
77 QCheckBox* myCreateTable;
78 QCheckBox* myCurvesCheck;
82 QList<SalomeApp_DoubleSpinBox*> myPoint1;
83 QList<SalomeApp_DoubleSpinBox*> myPoint2;
85 SALOME::GenericObjPtr<VISU::CutSegment_i> myCutSegment;
88 VisuGUI_InputPane* myInputPane;
90 SALOME_Actor* myPreviewActor;
91 SALOME_Actor* myPreviewActorGlyphs;
92 SALOME_Actor* myPreviewActorPoints;
93 QCheckBox* myPreviewCheck;
94 QCheckBox* myAllCurvesInvertedCheck;
95 QCheckBox* myUseAbsoluteLengthCheck;
97 SALOME::GenericObjPtr<VISU::CutSegment_i> myPrsCopy;
100 #endif // VISUGUI_CUTSEGMENTDLG_H