-// Copyright (C) 2007-2014 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
#include <SalomeApp_Application.h>
#endif
#include <LightApp_Preferences.h>
+#ifndef DISABLE_PLOT2DVIEWER
#include <Plot2d_ViewFrame.h>
+#endif
class LightApp_SelectionMgr;
class QMenuBar;
class QAction;
class QTreeView;
class QtxActionGroup;
+#ifndef DISABLE_PLOT2DVIEWER
class Plot2d_Curve;
+#endif
class SALOME_Selection : public QObject
{
SplitAt = 2 //!< the view area is splitted in such a way, that specified view and all views which follow it, are moved to the new area
};
+#ifndef DISABLE_PLOT2DVIEWER
//! Type of titles in Plot3d View
enum ObjectType
{
YAxis = Plot2d_ViewFrame::YAxis,
Y2Axis = Plot2d_ViewFrame::Y2Axis
};
+#endif
enum VisibilityState
{
UnpresentableState //!< Unpresentable object
};
+#ifndef DISABLE_PLOT2DVIEWER
enum Axis {
yLeft = QwtPlot::yLeft,
yRight = QwtPlot::yRight,
xBottom = QwtPlot::xBottom,
xTop = QwtPlot::xTop,
};
+#endif
class SalomePyQt
{
static QString getViewType( const int );
static bool setViewTitle( const int, const QString& );
static QString getViewTitle( const int );
+ static bool setViewSize( const int, const int, const int = 0 );
static QList<int> findViews( const QString& );
static bool activateView( const int );
static int createView( const QString&, bool visible = true, const int width = 0, const int height = 0 );
static bool moveView( const int, const int, const bool );
static QList<int> neighbourViews( const int );
+#ifndef DISABLE_PLOT2DVIEWER
static void displayCurve(const int, Plot2d_Curve*);
static void eraseCurve(const int, Plot2d_Curve*);
static void eraseCurve(Plot2d_Curve*);
static QList<double> getPlot2dFitRangeByCurves(const int);
static QList<double> getPlot2dFitRangeCurrent(const int);
static void setPlot2dFitRange(const int, const double XMin, const double XMax, const double YMin, const double YMax);
+#endif
// static void initializeParaViewGUI();
static void processEvents();