-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#include "OCCViewer_ViewWindow.h"
#include <gp_Pln.hxx>
+#include <TopAbs_ShapeEnum.hxx>
class SUIT_Desktop;
class OCCViewer_Viewer;
OCCViewer_ViewFrame(SUIT_Desktop* theDesktop, OCCViewer_Viewer* theModel);
virtual ~OCCViewer_ViewFrame();
+ bool event( QEvent* e );
+
OCCViewer_ViewWindow* getView( const int ) const;
+ OCCViewer_ViewWindow* getActiveView() const;
+
virtual OCCViewer_ViewPort3d* getViewPort() { return getView(MAIN_VIEW)->getViewPort(); }
OCCViewer_ViewPort3d* getViewPort(int theView);
virtual int interactionStyle() const { return getView(MAIN_VIEW)->interactionStyle(); }
virtual void setInteractionStyle( const int i );
+ virtual int projectionType() const;
+ virtual void setProjectionType( int );
+
+ virtual int stereoType() const;
+ virtual void setStereoType( const int );
+
+ virtual int anaglyphFilter() const;
+ virtual void setAnaglyphFilter( const int );
+
+ virtual void setStereographicFocus( const int, const double );
+ virtual int stereographicFocusType() const;
+ virtual double stereographicFocusValue() const;
+
+ virtual void setInterocularDistance( const int, const double );
+ virtual int interocularDistanceType() const;
+ virtual double interocularDistanceValue() const;
+
+ virtual bool isReverseStereo() const;
+ virtual void setReverseStereo( const bool );
+
+ virtual bool isVSync() const;
+ virtual void setVSync( const bool );
+
+ virtual bool isQuadBufferSupport() const;
+ virtual void setQuadBufferSupport( const bool );
+
virtual int zoomingStyle() const { return getView(MAIN_VIEW)->zoomingStyle(); }
virtual void setZoomingStyle( const int );
+ virtual bool isSelectionEnabled() const { return getView(MAIN_VIEW)->isSelectionEnabled(); }
+ virtual void enableSelection( bool );
+
+ virtual bool isPreselectionEnabled() const { return getView(MAIN_VIEW)->isPreselectionEnabled(); }
+ virtual void enablePreselection( bool );
+
+ virtual bool enableDrawMode( bool );
+
virtual void setViewManager( SUIT_ViewManager* );
virtual bool eventFilter(QObject* watched, QEvent* e) { return SUIT_ViewWindow::eventFilter(watched, e); }
virtual Qtx::BackgroundData background() const;
virtual void setBackground( const Qtx::BackgroundData& );
- virtual void setDropDownButtons( bool );
+ virtual void showStaticTrihedron( bool );
+
+ virtual void setDropDownButtons( bool );
+
+ virtual SUIT_CameraProperties cameraProperties();
public slots:
virtual void onFrontView() { getView(MAIN_VIEW)->onFrontView(); }
virtual void activateSetRotationGravity() {}
virtual void activateSetRotationSelected( double theX, double theY, double theZ ) {}
- virtual void activateStartPointSelection() {}
+ virtual void activateStartPointSelection( TopAbs_ShapeEnum ) {}
virtual void updateGravityCoords() {}
void onMaximizedView( OCCViewer_ViewWindow*, bool );
+ void returnTo3dView();
virtual void onDumpView();
private slots:
void onContextMenuRequested(QContextMenuEvent*);
+ void onMousePressed(SUIT_ViewWindow*, QMouseEvent*);
private:
- void connectViewSignals(OCCViewer_ViewWindow* theView);
-
+ void connectViewSignals( OCCViewer_ViewWindow* theView );
+ void updateWindowTitle( OCCViewer_ViewWindow* theView );
+ void createSubViews();
+ void splitSubViews();
+ void setSubViewParams( OCCViewer_ViewWindow* theView );
QList<OCCViewer_ViewWindow*> myViews;
QGridLayout* myLayout;
+ OCCViewer_ViewWindow* myMaximizedView;
+ OCCViewer_ViewWindow* myActiveView;
+ int mySplitMode;
+ QList<int> myViewsMode;
OCCViewer_ViewWindow* myPopupRequestedView;
};