-// Copyright (C) 2016 CEA/DEN, EDF R&D
+// Copyright (C) 2016-2020 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#ifndef PRESENTATION_CONTROLLER_HXX
#define PRESENTATION_CONTROLLER_HXX
+#include "MEDEventListener_i.hxx"
+
#include <QObject>
#include "MEDCALCGUI.hxx"
-#include "MEDEventListener_i.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(MEDPresentationManager)
#include CORBA_CLIENT_HEADER(MEDDataManager)
void createActions();
- MEDCALC::MEDPresentationViewMode getSelectedViewMode() const;
- MEDCALC::MEDPresentationColorMap getSelectedColorMap() const;
- MEDCALC::MEDPresentationScalarBarRange getSelectedScalarBarRange() const;
+ MEDCALC::ViewModeType getSelectedViewMode() const;
+ MEDCALC::ColorMapType getSelectedColorMap() const;
+ MEDCALC::ScalarBarRangeType getSelectedScalarBarRange() const;
void showDockWidgets(bool isVisible);
void presentationSignal(const PresentationEvent*);
protected slots:
+ void onVisualizeMeshView();
void onVisualizeScalarMap();
void onVisualizeContour();
void onVisualizeVectorField();
void onPresentationSelected(int presId, const QString& presType, const QString& presName);
void processWorkspaceEvent(const MEDCALC::MedEvent*);
- void processPresentationEvent(const PresentationEvent* event);
+ void processPresentationEvent(const PresentationEvent*);
private:
void visualize(PresentationEvent::EventType);
- void updateTreeViewWithNewPresentation(long, long);
- void updateTreeViewForPresentationRemoval(long);
+ void updateTreeViewWithNewPresentation(long dataId, long presentationId);
+ void updateTreeViewForPresentationRemoval(long presId);
std::string _getIconName(const std::string&);
MEDWidgetHelper * findOrCreateWidgetHelper(MEDCALC::MEDPresentationManager_ptr presManager,
int presId, const std::string& type, const std::string& name);
- int getIntParamFromStudyEditor(SALOMEDS::SObject_var obj, const char * name);
-
QString getViewModePython() const;
QString getColorMapPython() const;
QString getScalarBarRangePython() const;
+ QString getMeshModePython(const int mode) const;
+ QString getSliceOrientationPython(const int orient) const;
+
+ void _dealWithReplaceMode();
private:
MEDModule* _salomeModule;