class SVTK_Viewer;
class SVTK_Selector;
+class SVTK_CubeAxesActor2D;
class SVTK_RenderWindow;
class SVTK_InteractorStyle;
void SetSelectionMode(Selection_Mode theMode);
bool isTrihedronDisplayed();
+ bool isCubeAxesDisplayed();
/* interactive object management */
void highlight( const Handle(SALOME_InteractiveObject)& IObject,
void RemoveActor(SALOME_Actor*, bool update = false);
void AdjustTrihedrons( const bool forced );
- bool ComputeTrihedronSize( double& theNewSize,
- double& theOldSize );
- double GetTrihedronSize() const;
+ //merge with V2_2_0_VISU_improvements:bool ComputeTrihedronSize( double& theNewSize,
+ //merge with V2_2_0_VISU_improvements: double& theOldSize );
+
+ int GetTrihedronSize() const;
+ void SetTrihedronSize( const int );
+
+ VTKViewer_Trihedron* GetTrihedron() {return this->myTrihedron;};
+ SVTK_CubeAxesActor2D* GetCubeAxes() {return this->myCubeAxes;};
public slots:
void onSelectionChanged();
- signals:
+signals:
void selectionChanged();
public slots:
void onResetView();
void onFitAll();
- void onDumpView();
void onViewTrihedron();
+ void onViewCubeAxes();
+
void onAdjustTrihedron();
+ void onAdjustCubeAxes();
void onPanLeft();
void onPanRight();
void activatePanning();
void activateGlobalPanning();
+protected:
+ QImage dumpView();
+
protected slots:
void onKeyPressed(QKeyEvent* event);
void onKeyReleased(QKeyEvent* event);
SVTK_RenderWindow* myRenderWindow;
SVTK_RenderWindowInteractor* myRWInteractor;
-
- VTKViewer_Trihedron* myTrihedron;
- VTKViewer_Transform* myTransform;
+
+ VTKViewer_Transform* myTransform;
+ VTKViewer_Trihedron* myTrihedron;
+ int myTrihedronSize;
+ SVTK_CubeAxesActor2D* myCubeAxes;
QToolBar* myToolBar;
ActionsMap myActionsMap;