1 // VISU VISUGUI : GUI of VISU component
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : VVTK_PickingDlg.h
8 // Author : Oleg Uvarov
11 #ifndef VVTK_PICKINGDLG_H
12 #define VVTK_PICKINGDLG_H
16 #include <vtkObject.h>
17 #include <vtkSmartPointer.h>
19 class vtkActorCollection;
20 class vtkCallbackCommand;
32 class VISU_GaussPtsAct;
33 class VISU_PickingSettings;
35 class SVTK_RenderWindowInteractor;
39 * Uses for set up picking preferenses and apply
40 * them to all actors in the current renderer.
42 class VVTK_PickingDlg : public QDialog
47 VVTK_PickingDlg( QWidget* parent = 0, const char* name = 0 );
50 //! Used to switch toggle state of the Picking action.
51 void SetAction( QtxAction* theAction ) { myAction = theAction; }
53 //! Make an actor to listen the event of Update Picking Settings event.
54 void AddActor( VISU_GaussPtsAct* );
55 void RemoveActor( VISU_GaussPtsAct* );
57 //! Update dialog contents.
60 VISU_PickingSettings* GetPickingSettings();
62 void SetInteractor( SVTK_RenderWindowInteractor* );
65 virtual void done( int );
70 void onColorButtonPressed();
73 static void ProcessEvents(vtkObject* theObject,
74 unsigned long theEvent,
81 QtxDblSpinBox* myCursorSizeSpinBox;
82 QtxDblSpinBox* myPyramidHeightSpinBox;
83 QPushButton* mySelectionColorButton;
84 QtxDblSpinBox* myPointToleranceSpinBox;
85 QtxIntSpinBox* myTransparencySpinBox;
86 QComboBox* myPositionComboBox;
87 QtxDblSpinBox* myZoomFactorSpinBox;
88 QtxIntSpinBox* myStepNumberSpinBox;
89 QCheckBox* myDisplayParentMeshCheckBox;
92 vtkSmartPointer<VISU_PickingSettings> myPickingSettings;
94 SVTK_RenderWindowInteractor* myInteractor;
97 vtkSmartPointer<vtkCallbackCommand> myEventCallbackCommand;