-// 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 "SVTK.h"
#include "SVTK_ViewModelBase.h"
+#include "SVTK_Selection.h"
#include "Qtx.h"
LastGradient = FourthCornerGradient,
};
+ enum {
+ CrystalEyesType, RedBlueType,
+ InterlacedType, LeftType,
+ RightType, DresdenType,
+ AnaglyphType, CheckerboardType,
+ SplitViewPortHorizontalType
+ };
typedef SVTK_ViewWindow TViewWindow;
//! Define string representation of the viewer type
static QString Type() { return "VTKViewer"; }
static QString backgroundData( QStringList&, QIntList&, QIntList& );
+ static void stereoData( QStringList&, QIntList&);
SVTK_Viewer();
virtual ~SVTK_Viewer();
void setBackground( const Qtx::BackgroundData& );
//! Get size of trihedron of the viewer (see #SVTK_Renderer::SetTrihedronSize)
- vtkFloatingPointType trihedronSize() const;
+ double trihedronSize() const;
//! Shows if the size of trihedron relative (see #SVTK_Renderer::SetTrihedronSize)
bool trihedronRelative() const;
//! Set size of trihedron of the viewer (see #SVTK_Renderer::SetTrihedronSize)
- void setTrihedronSize( const vtkFloatingPointType, const bool = true );
+ void setTrihedronSize( const double, const bool = true );
//! Get visibility status of the static trihedron
bool isStaticTrihedronVisible() const;
//! Sets projection mode
void setProjectionMode( const int );
+ //! Gets stereo type
+ int stereoType() const;
+
+ //! Sets stereo type
+ void setStereoType( const int );
+
+ //! Gets anaglyph filter
+ int anaglyphFilter() const;
+
+ //! Sets anaglyph filter
+ void setAnaglyphFilter( const int );
+
+ //! Get support quad-buffered stereo
+ bool isQuadBufferSupport() const;
+
+ //! Set support quad-buffered stereo
+ void setQuadBufferSupport( const bool );
+
//! Gets interaction style
int interactionStyle() const;
//! Sets zooming style
void setZoomingStyle( const int );
- //! Gets dynamic preselection
- bool dynamicPreSelection() const;
-
- //! Sets dynamic preselection
- void setDynamicPreSelection( const bool );
+ //! Gets current preselection mode (standard, dynamic or disabled)
+ Preselection_Mode preSelectionMode() const;
+ //! Sets new preselection mode
+ void setPreSelectionMode( Preselection_Mode );
+
//! Get incremental speed (see #SVTK_InteractorStyle::ControllerIncrement)
int incrementalSpeed() const;
//! See #SALOME_View::Erase( const SALOME_VTKPrs*, const bool = false )
void Erase( const SALOME_VTKPrs*, const bool = false );
- //! See #SALOME_View::EraseAll( const bool = false )
- void EraseAll( const bool = false );
+ //! See #SALOME_View::EraseAll( SALOME_Displayer*, const bool = false )
+ void EraseAll( SALOME_Displayer*, const bool = false );
//! See #SALOME_View::getVisible( SALOME_ListIO& )
virtual void GetVisible( SALOME_ListIO& );
void updateToolBars();
Qtx::BackgroundData myDefaultBackground;
- vtkFloatingPointType myTrihedronSize;
+ double myTrihedronSize;
bool myTrihedronRelative;
bool myIsStaticTrihedronVisible;
bool mySelectionEnabled;
int myIncrementSpeed;
int myIncrementMode;
int myProjMode;
+ int myStereoType;
+ int myAnaglyphFilter;
+ bool myQuadBufferSupport;
int myStyle;
int myZoomingStyle;
- bool myDynamicPreSelection;
+ Preselection_Mode myPreSelectionMode;
int mySpaceBtn[3];
};