{
/* Enumerations and constants */
- enum MEDPresentationViewMode {
+ enum ViewModeType {
VIEW_MODE_OVERLAP,
VIEW_MODE_REPLACE,
VIEW_MODE_NEW_LAYOUT,
VIEW_MODE_SPLIT_VIEW
};
- enum MEDPresentationColorMap {
+ enum ColorMapType {
COLOR_MAP_BLUE_TO_RED_RAINBOW,
COLOR_MAP_COOL_TO_WARM
};
- enum MEDPresentationScalarBarRange {
+ enum ScalarBarRangeType {
SCALAR_BAR_ALL_TIMESTEPS,
SCALAR_BAR_CURRENT_TIMESTEP
};
- enum MEDPresentationMeshMode {
+ enum MeshModeType {
MESH_MODE_WIREFRAME,
MESH_MODE_SURFACE_EDGES,
MESH_MODE_SURFACE
const string DISPLAY_EUCLIDEAN_NORM = ""; // Void string to avoid clash with a real component name -- never used actually?
- enum MEDPresentationSliceOrientation {
+ enum SliceOrientationType {
SLICE_NORMAL_TO_X,
SLICE_NORMAL_TO_Y,
SLICE_NORMAL_TO_Z,
/* Default values */
- const MEDPresentationViewMode VIEW_MODE_DEFAULT = VIEW_MODE_REPLACE;
- const MEDPresentationColorMap COLOR_MAP_DEFAULT = COLOR_MAP_BLUE_TO_RED_RAINBOW;
- const MEDPresentationScalarBarRange SCALAR_BAR_RANGE_DEFAULT = SCALAR_BAR_ALL_TIMESTEPS;
- const MEDPresentationMeshMode MESH_MODE_DEFAULT = MESH_MODE_WIREFRAME;
+ const ViewModeType VIEW_MODE_DEFAULT = VIEW_MODE_REPLACE;
+ const ColorMapType COLOR_MAP_DEFAULT = COLOR_MAP_BLUE_TO_RED_RAINBOW;
+ const ScalarBarRangeType SCALAR_BAR_RANGE_DEFAULT = SCALAR_BAR_ALL_TIMESTEPS;
+ const MeshModeType MESH_MODE_DEFAULT = MESH_MODE_WIREFRAME;
// const long SCALAR_BAR_RANGE_VAL_MIN_DEFAULT = -1;
// const long SCALAR_BAR_RANGE_VAL_MAX_DEFAULT = -1;
const string DISPLAY_DEFAULT = DISPLAY_EUCLIDEAN_NORM;
- const MEDPresentationSliceOrientation SLICE_ORIENTATION_DEFAULT = SLICE_NORMAL_TO_X;
+ const SliceOrientationType SLICE_ORIENTATION_DEFAULT = SLICE_NORMAL_TO_X;
const long NB_CONTOURS_DEFAULT = 10;
const long NB_SLICES_DEFAULT = 1;
// Just showing the mesh
struct MeshViewParameters {
long fieldHandlerId; // TODO should be a meshHandlerId really ...
- MEDPresentationMeshMode mode;
+ MeshModeType mode;
};
// A simple scalar map
struct ScalarMapParameters {
long fieldHandlerId;
string displayedComponent; // DISPLAY_EUCLIDEAN_NORM or any component name
- MEDPresentationScalarBarRange scalarBarRange;
- MEDPresentationColorMap colorMap;
+ ScalarBarRangeType scalarBarRange;
+ ColorMapType colorMap;
};
// A contour is an isoline in 2D and an isosurface in 3D
struct ContourParameters { // Contour are only for scalar fields
long fieldHandlerId;
- MEDPresentationScalarBarRange scalarBarRange;
- MEDPresentationColorMap colorMap;
+ ScalarBarRangeType scalarBarRange;
+ ColorMapType colorMap;
long nbContours;
};
// struct VectorFieldParameters {
// long fieldHandlerId;
// string displayedComponent; // DISPLAY_EUCLIDEAN_NORM or any component name
-// MEDPresentationScalarBarRange scalarBarRange;
-// MEDPresentationColorMap colorMap;
+// ScalarBarRangeType scalarBarRange;
+// ColorMapType colorMap;
// };
//
struct SlicesParameters {
long fieldHandlerId;
string displayedComponent; // DISPLAY_EUCLIDEAN_NORM or any component name
- MEDPresentationScalarBarRange scalarBarRange;
- MEDPresentationColorMap colorMap;
- MEDPresentationSliceOrientation orientation;
+ ScalarBarRangeType scalarBarRange;
+ ColorMapType colorMap;
+ SliceOrientationType orientation;
long nbSlices;
};
//
// struct PointSpriteParameters {
// long fieldHandlerId;
// string displayedComponent; // DISPLAY_EUCLIDEAN_NORM or any component name
-// MEDPresentationScalarBarRange scalarBarRange;
-// MEDPresentationColorMap colorMap;
+// ScalarBarRangeType scalarBarRange;
+// ColorMapType colorMap;
// };
typedef sequence<long> PresentationsList;
interface MEDPresentationManager : SALOME::GenericObj
{
- long makeMeshView(in MeshViewParameters params, in MEDPresentationViewMode viewMode);
- long makeScalarMap(in ScalarMapParameters params, in MEDPresentationViewMode viewMode);
- long makeContour(in ContourParameters params, in MEDPresentationViewMode viewMode)
+ long makeMeshView(in MeshViewParameters params, in ViewModeType viewMode);
+ long makeScalarMap(in ScalarMapParameters params, in ViewModeType viewMode);
+ long makeContour(in ContourParameters params, in ViewModeType viewMode)
raises (SALOME::SALOME_Exception);
-// long makeVectorField(in VectorFieldParameters params, in MEDPresentationViewMode viewMode);
- long makeSlices(in SlicesParameters params, in MEDPresentationViewMode viewMode);
-// long makeDeflectionShape(in DeflectionShapeParameters params, in MEDPresentationViewMode viewMode);
-// long makePointSprite(in PointSpriteParameters params, in MEDPresentationViewMode viewMode);
+// long makeVectorField(in VectorFieldParameters params, in ViewModeType viewMode);
+ long makeSlices(in SlicesParameters params, in ViewModeType viewMode);
+// long makeDeflectionShape(in DeflectionShapeParameters params, in ViewModeType viewMode);
+// long makePointSprite(in PointSpriteParameters params, in ViewModeType viewMode);
void setPresentationStringProperty(in long presId, in string propName, in string propValue);
string getPresentationStringProperty(in long presId, in string propName);
// Low level ParaVis dump
string getParavisDump(in long presId);
-// MEDPresentationViewMode getPresentationViewMode(in long presId);
+// ViewModeType getPresentationViewMode(in long presId);
PresentationsList getAllPresentations();
};
const std::string MEDPresentation::PROP_SCALAR_BAR_RANGE = "scalarBarRange";
MEDPresentation::MEDPresentation(MEDPresentation::TypeID fieldHandlerId, const std::string& name,
- const MEDCALC::MEDPresentationViewMode viewMode,
- const MEDCALC::MEDPresentationColorMap colorMap,
- const MEDCALC::MEDPresentationScalarBarRange sbRange)
+ const MEDCALC::ViewModeType viewMode,
+ const MEDCALC::ColorMapType colorMap,
+ const MEDCALC::ScalarBarRangeType sbRange)
: _fieldHandlerId(fieldHandlerId), _propertiesStr(),
//_pipeline(0), _display(0)
_selectedComponentIndex(-1),
static int GeneratePythonId();
MEDPresentation(MEDPresentation::TypeID fieldHandlerId, const std::string& name,
- const MEDCALC::MEDPresentationViewMode viewMode,
- const MEDCALC::MEDPresentationColorMap colorMap,
- const MEDCALC::MEDPresentationScalarBarRange sbRange);
+ const MEDCALC::ViewModeType viewMode,
+ const MEDCALC::ColorMapType colorMap,
+ const MEDCALC::ScalarBarRangeType sbRange);
std::string getRenderViewCommand() const;
std::string getRenderViewVar() const;
std::string getResetCameraCommand() const;
void fillAvailableFieldComponents();
-// virtual MEDCALC::MEDPresentationViewMode getViewMode() = 0;
+// virtual MEDCALC::ViewModeType getViewMode() = 0;
template<typename PresentationType, typename PresentationParameters>
void updateComponent(const std::string& newCompo);
template<typename PresentationType, typename PresentationParameters>
- void updateColorMap(MEDCALC::MEDPresentationColorMap colorMap);
+ void updateColorMap(MEDCALC::ColorMapType colorMap);
template<typename PresentationType, typename PresentationParameters>
- void updateScalarBarRange(MEDCALC::MEDPresentationScalarBarRange sbRange);
+ void updateScalarBarRange(MEDCALC::ScalarBarRangeType sbRange);
template<typename PresentationType, typename PresentationParameters>
void getParameters(PresentationParameters& params) const;
MEDPresentation::TypeID _fieldHandlerId;
int _selectedComponentIndex;
- MEDCALC::MEDPresentationViewMode _viewMode;
- MEDCALC::MEDPresentationColorMap _colorMap;
- MEDCALC::MEDPresentationScalarBarRange _sbRange;
+ MEDCALC::ViewModeType _viewMode;
+ MEDCALC::ColorMapType _colorMap;
+ MEDCALC::ScalarBarRangeType _sbRange;
///! Identifier (in the Python dump) of the render view
int _renderViewPyId;
template<typename PresentationType, typename PresentationParameters>
void
-MEDPresentation::updateColorMap(MEDCALC::MEDPresentationColorMap colorMap)
+MEDPresentation::updateColorMap(MEDCALC::ColorMapType colorMap)
{
PresentationType * p = static_cast<PresentationType*>(this);
template<typename PresentationType, typename PresentationParameters>
void
-MEDPresentation::updateScalarBarRange(MEDCALC::MEDPresentationScalarBarRange sbRange)
+MEDPresentation::updateScalarBarRange(MEDCALC::ScalarBarRangeType sbRange)
{
PresentationType * p = static_cast<PresentationType*>(this);
const std::string MEDPresentationContour::PROP_NB_CONTOUR = "nbContour";
MEDPresentationContour::MEDPresentationContour(const MEDCALC::ContourParameters& params,
- const MEDCALC::MEDPresentationViewMode viewMode) :
+ const MEDCALC::ViewModeType viewMode) :
MEDPresentation(params.fieldHandlerId, TYPE_NAME, viewMode, params.colorMap, params.scalarBarRange),
_params(params)
{
static const std::string TYPE_NAME;
static const std::string PROP_NB_CONTOUR;
- MEDPresentationContour(const MEDCALC::ContourParameters& params, const MEDCALC::MEDPresentationViewMode viewMode);
+ MEDPresentationContour(const MEDCALC::ContourParameters& params, const MEDCALC::ViewModeType viewMode);
virtual ~MEDPresentationContour() {}
void updatePipeline(const MEDCALC::ContourParameters& params);
virtual ~MEDPresentationDeflectionShape() {}
void updatePipeline(const MEDCALC::DeflectionShapeParameters& params);
- MEDCALC::MEDPresentationViewMode getViewMode() { return _params.viewMode; }
+ MEDCALC::ViewModeType getViewMode() { return _params.viewMode; }
protected:
virtual void internalGeneratePipeline();
}
MEDPresentation::TypeID
-MEDPresentationManager_i::makeMeshView(const MEDCALC::MeshViewParameters& params, const MEDCALC::MEDPresentationViewMode viewMode)
+MEDPresentationManager_i::makeMeshView(const MEDCALC::MeshViewParameters& params, const MEDCALC::ViewModeType viewMode)
{
return _makePresentation<MEDPresentationMeshView>(params, viewMode);
}
MEDPresentation::TypeID
-MEDPresentationManager_i::makeScalarMap(const MEDCALC::ScalarMapParameters& params, const MEDCALC::MEDPresentationViewMode viewMode)
+MEDPresentationManager_i::makeScalarMap(const MEDCALC::ScalarMapParameters& params, const MEDCALC::ViewModeType viewMode)
{
return _makePresentation<MEDPresentationScalarMap>(params, viewMode);
}
MEDPresentation::TypeID
-MEDPresentationManager_i::makeContour(const MEDCALC::ContourParameters& params, const MEDCALC::MEDPresentationViewMode viewMode)
+MEDPresentationManager_i::makeContour(const MEDCALC::ContourParameters& params, const MEDCALC::ViewModeType viewMode)
{
return _makePresentation<MEDPresentationContour>(params, viewMode);
}
//}
//
MEDPresentation::TypeID
-MEDPresentationManager_i::makeSlices(const MEDCALC::SlicesParameters& params, const MEDCALC::MEDPresentationViewMode viewMode)
+MEDPresentationManager_i::makeSlices(const MEDCALC::SlicesParameters& params, const MEDCALC::ViewModeType viewMode)
{
return _makePresentation<MEDPresentationSlices>(params, viewMode);
}
}
-//MEDCALC::MEDPresentationViewMode
+//MEDCALC::ViewModeType
//MEDPresentationManager_i::getPresentationViewMode(MEDPresentation::TypeID presentationID)
//{
// MEDPresentation* pres = _getPresentation(presentationID);
static MEDPresentationManager_i* getInstance();
- MEDCALC_EXPORT MEDPresentation::TypeID makeMeshView(const MEDCALC::MeshViewParameters&, const MEDCALC::MEDPresentationViewMode);
- MEDCALC_EXPORT MEDPresentation::TypeID makeScalarMap(const MEDCALC::ScalarMapParameters&, const MEDCALC::MEDPresentationViewMode);
- MEDCALC_EXPORT MEDPresentation::TypeID makeContour(const MEDCALC::ContourParameters&, const MEDCALC::MEDPresentationViewMode);
-// MEDCALC_EXPORT MEDPresentation::TypeID makeVectorField(const MEDCALC::VectorFieldParameters&, const MEDCALC::MEDPresentationViewMode);
- MEDCALC_EXPORT MEDPresentation::TypeID makeSlices(const MEDCALC::SlicesParameters&, const MEDCALC::MEDPresentationViewMode);
-// MEDCALC_EXPORT MEDPresentation::TypeID makeDeflectionShape(const MEDCALC::DeflectionShapeParameters&, const MEDCALC::MEDPresentationViewMode);
-// MEDCALC_EXPORT MEDPresentation::TypeID makePointSprite(const MEDCALC::PointSpriteParameters&, const MEDCALC::MEDPresentationViewMode);
+ MEDCALC_EXPORT MEDPresentation::TypeID makeMeshView(const MEDCALC::MeshViewParameters&, const MEDCALC::ViewModeType);
+ MEDCALC_EXPORT MEDPresentation::TypeID makeScalarMap(const MEDCALC::ScalarMapParameters&, const MEDCALC::ViewModeType);
+ MEDCALC_EXPORT MEDPresentation::TypeID makeContour(const MEDCALC::ContourParameters&, const MEDCALC::ViewModeType);
+// MEDCALC_EXPORT MEDPresentation::TypeID makeVectorField(const MEDCALC::VectorFieldParameters&, const MEDCALC::ViewModeType);
+ MEDCALC_EXPORT MEDPresentation::TypeID makeSlices(const MEDCALC::SlicesParameters&, const MEDCALC::ViewModeType);
+// MEDCALC_EXPORT MEDPresentation::TypeID makeDeflectionShape(const MEDCALC::DeflectionShapeParameters&, const MEDCALC::ViewModeType);
+// MEDCALC_EXPORT MEDPresentation::TypeID makePointSprite(const MEDCALC::PointSpriteParameters&, const MEDCALC::ViewModeType);
MEDCALC_EXPORT void setPresentationStringProperty(MEDPresentation::TypeID presentationID, const char* propName, const char* propValue);
MEDCALC_EXPORT char* getPresentationStringProperty(MEDPresentation::TypeID presentationID, const char* propName);
MEDCALC_EXPORT CORBA::Boolean removePresentation(MEDPresentation::TypeID);
MEDCALC_EXPORT CORBA::Boolean activateView(MEDPresentation::TypeID);
MEDCALC_EXPORT CORBA::Long getActiveViewPythonId();
-// MEDCALC_EXPORT MEDCALC::MEDPresentationViewMode getPresentationViewMode(MEDPresentation::TypeID);
+// MEDCALC_EXPORT MEDCALC::ViewModeType getPresentationViewMode(MEDPresentation::TypeID);
MEDCALC_EXPORT char* getParavisDump(MEDPresentation::TypeID presentationID);
MEDCALC_EXPORT MEDCALC::PresentationsList* getAllPresentations();
// Create a new presentation instance and return its unique ID
template<typename PresentationType, typename PresentationParameters>
- MEDPresentation::TypeID _makePresentation(const PresentationParameters params, MEDCALC::MEDPresentationViewMode viewMode);
+ MEDPresentation::TypeID _makePresentation(const PresentationParameters params, MEDCALC::ViewModeType viewMode);
// Update presentation
template<typename PresentationType, typename PresentationParameters>
template<typename PresentationType, typename PresentationParameters>
MEDPresentation::TypeID
-MEDPresentationManager_i::_makePresentation(const PresentationParameters params, const MEDCALC::MEDPresentationViewMode viewMode)
+MEDPresentationManager_i::_makePresentation(const PresentationParameters params, const MEDCALC::ViewModeType viewMode)
{
int activeViewId = getActiveViewPythonId();
const std::string MEDPresentationMeshView::PROP_MESH_MODE = "meshMode";
MEDPresentationMeshView::MEDPresentationMeshView(const MEDCALC::MeshViewParameters& params,
- const MEDCALC::MEDPresentationViewMode viewMode) :
+ const MEDCALC::ViewModeType viewMode) :
// Cheating a bit here - a mesh view doesn't need a color map or a range:
MEDPresentation(params.fieldHandlerId, TYPE_NAME, viewMode, MEDCALC::COLOR_MAP_DEFAULT,
MEDCALC::SCALAR_BAR_RANGE_DEFAULT),
}
void
-MEDPresentationMeshView::updateMeshMode(const MEDCALC::MEDPresentationMeshMode mode)
+MEDPresentationMeshView::updateMeshMode(const MEDCALC::MeshModeType mode)
{
_params.mode = mode;
static const std::string TYPE_NAME;
static const std::string PROP_MESH_MODE;
- MEDPresentationMeshView(const MEDCALC::MeshViewParameters& params, const MEDCALC::MEDPresentationViewMode viewMode);
+ MEDPresentationMeshView(const MEDCALC::MeshViewParameters& params, const MEDCALC::ViewModeType viewMode);
virtual ~MEDPresentationMeshView() {}
void updatePipeline(const MEDCALC::MeshViewParameters& params);
void setParameters(const MEDCALC::MeshViewParameters & params) { _params = params; } ;
protected:
- void updateMeshMode(const MEDCALC::MEDPresentationMeshMode mode);
+ void updateMeshMode(const MEDCALC::MeshModeType mode);
virtual void internalGeneratePipeline();
std::string getMeshViewCommand() const;
virtual ~MEDPresentationPointSprite() {}
void updatePipeline(const MEDCALC::PointSpriteParameters& params);
- MEDCALC::MEDPresentationViewMode getViewMode() { return _params.viewMode; }
+ MEDCALC::ViewModeType getViewMode() { return _params.viewMode; }
protected:
virtual void internalGeneratePipeline();
const std::string MEDPresentationScalarMap::TYPE_NAME = "MEDPresentationScalarMap";
MEDPresentationScalarMap::MEDPresentationScalarMap(const MEDCALC::ScalarMapParameters& params,
- const MEDCALC::MEDPresentationViewMode viewMode) :
+ const MEDCALC::ViewModeType viewMode) :
MEDPresentation(params.fieldHandlerId, TYPE_NAME, viewMode, params.colorMap, params.scalarBarRange), _params(params)
{
}
public:
static const std::string TYPE_NAME;
- MEDPresentationScalarMap(const MEDCALC::ScalarMapParameters& params, const MEDCALC::MEDPresentationViewMode viewMode);
+ MEDPresentationScalarMap(const MEDCALC::ScalarMapParameters& params, const MEDCALC::ViewModeType viewMode);
virtual ~MEDPresentationScalarMap() {}
void updatePipeline(const MEDCALC::ScalarMapParameters& params);
void getParameters(MEDCALC::ScalarMapParameters & params) const { params = _params; } ;
void setParameters(const MEDCALC::ScalarMapParameters & params) { _params = params; } ;
-// MEDCALC::MEDPresentationViewMode getViewMode() { return _params.viewMode; }
+// MEDCALC::ViewModeType getViewMode() { return _params.viewMode; }
protected:
virtual void internalGeneratePipeline();
const std::string MEDPresentationSlices::PROP_SLICE_ORIENTATION = "slicesOrientation";
MEDPresentationSlices::MEDPresentationSlices(const MEDCALC::SlicesParameters& params,
- const MEDCALC::MEDPresentationViewMode viewMode) :
+ const MEDCALC::ViewModeType viewMode) :
MEDPresentation(params.fieldHandlerId, TYPE_NAME, viewMode, params.colorMap, params.scalarBarRange),
_params(params)
{
}
void
-MEDPresentationSlices::updateOrientation(const MEDCALC::MEDPresentationSliceOrientation orientation)
+MEDPresentationSlices::updateOrientation(const MEDCALC::SliceOrientationType orientation)
{
_params.orientation = orientation;
static const std::string PROP_NB_SLICES;
static const std::string PROP_SLICE_ORIENTATION;
- MEDPresentationSlices(const MEDCALC::SlicesParameters& params, const MEDCALC::MEDPresentationViewMode viewMode);
+ MEDPresentationSlices(const MEDCALC::SlicesParameters& params, const MEDCALC::ViewModeType viewMode);
virtual ~MEDPresentationSlices() {}
void updatePipeline(const MEDCALC::SlicesParameters& params);
protected:
void updateNbSlices(const int nbSlices);
- void updateOrientation(const MEDCALC::MEDPresentationSliceOrientation orientation);
+ void updateOrientation(const MEDCALC::SliceOrientationType orientation);
virtual void internalGeneratePipeline();
std::string getNbSlicesCommand() const;
virtual ~MEDPresentationVectorField() {}
void updatePipeline(const MEDCALC::VectorFieldParameters& params);
- MEDCALC::MEDPresentationViewMode getViewMode() { return _params.viewMode; }
+ MEDCALC::ViewModeType getViewMode() { return _params.viewMode; }
protected:
virtual void internalGeneratePipeline();
mgr->setRule( this->action( actionId ), rule, QtxPopupMgr::VisibleRule );
}
-//MEDCALC::MEDPresentationViewMode
+//MEDCALC::ViewModeType
//MEDModule::getSelectedViewMode() const
//{
// return _presentationController->getSelectedViewMode();
//}
//
-//MEDCALC::MEDPresentationColorMap
+//MEDCALC::ColorMapType
//MEDModule::getSelectedColorMap() const
//{
// return _presentationController->getSelectedColorMap();
//}
//
-//MEDCALC::MEDPresentationScalarBarRange
+//MEDCALC::ScalarBarRangeType
//MEDModule::getSelectedScalarBarRange() const
//{
// return _presentationController->getSelectedScalarBarRange();
const QString& menus="",
const QString& rule="client='ObjectBrowser'");
-// MEDCALC::MEDPresentationViewMode getSelectedViewMode() const;
-// MEDCALC::MEDPresentationColorMap getSelectedColorMap() const;
-// MEDCALC::MEDPresentationScalarBarRange getSelectedScalarBarRange() const;
+// MEDCALC::ViewModeType getSelectedViewMode() const;
+// MEDCALC::ColorMapType getSelectedColorMap() const;
+// MEDCALC::ScalarBarRangeType getSelectedScalarBarRange() const;
inline SALOME_AppStudyEditor* getStudyEditor() { return _studyEditor; }
void requestSALOMETermination() const;
oss << MEDPresentation::PROP_COMPONENT << i;
_allCompos.push_back(_presManager->getPresentationStringProperty(_presId, oss.str().c_str()));
}
- _colorMap = static_cast<MEDCALC::MEDPresentationColorMap>(
+ _colorMap = static_cast<MEDCALC::ColorMapType>(
_presManager->getPresentationIntProperty(_presId, MEDPresentation::PROP_COLOR_MAP.c_str()));
- _scalarBarRange = static_cast<MEDCALC::MEDPresentationScalarBarRange>(
+ _scalarBarRange = static_cast<MEDCALC::ScalarBarRangeType>(
_presManager->getPresentationIntProperty(_presId, MEDPresentation::PROP_SCALAR_BAR_RANGE.c_str()));
}
std::vector<std::string> _allCompos; // All available components
// Color map
- MEDCALC::MEDPresentationColorMap _colorMap;
+ MEDCALC::ColorMapType _colorMap;
// Scalar bar range
- MEDCALC::MEDPresentationScalarBarRange _scalarBarRange;
+ MEDCALC::ScalarBarRangeType _scalarBarRange;
};
#endif
void MEDWidgetHelperMeshView::loadParametersFromEngine()
{
MEDWidgetHelper::loadParametersFromEngine();
- _meshMode = static_cast<MEDCALC::MEDPresentationMeshMode>(
+ _meshMode = static_cast<MEDCALC::MeshModeType>(
_presManager->getPresentationIntProperty(_presId, MEDPresentationMeshView::PROP_MESH_MODE.c_str()));
}
virtual void loadParametersFromEngine();
private:
- MEDCALC::MEDPresentationMeshMode _meshMode;
+ MEDCALC::MeshModeType _meshMode;
};
#endif /* SRC_MEDCALC_GUI_MEDWIDGETHELPERMESHVIEW_HXX_ */
{
MEDWidgetHelper::loadParametersFromEngine();
_nbSlices = _presManager->getPresentationIntProperty(_presId, MEDPresentationSlices::PROP_NB_SLICES.c_str());
- _sliceOrientation = static_cast<MEDCALC::MEDPresentationSliceOrientation>(
+ _sliceOrientation = static_cast<MEDCALC::SliceOrientationType>(
_presManager->getPresentationIntProperty(_presId, MEDPresentationSlices::PROP_SLICE_ORIENTATION.c_str()));
}
private:
int _nbSlices;
- MEDCALC::MEDPresentationSliceOrientation _sliceOrientation;
+ MEDCALC::SliceOrientationType _sliceOrientation;
};
#endif /* SRC_MEDCALC_GUI_MEDWIDGETHELPERSLICES_HXX_ */
}
-MEDCALC::MEDPresentationViewMode
+MEDCALC::ViewModeType
PresentationController::getSelectedViewMode() const
{
if (_salomeModule->action(OPTIONS_VIEW_MODE_REPLACE_ID)->isChecked()) {
return MEDCALC::VIEW_MODE_REPLACE;
}
-MEDCALC::MEDPresentationColorMap
+MEDCALC::ColorMapType
PresentationController::getSelectedColorMap() const
{
return _widgetPresentationParameters->getColorMap();
}
-MEDCALC::MEDPresentationScalarBarRange
+MEDCALC::ScalarBarRangeType
PresentationController::getSelectedScalarBarRange() const
{
return _widgetPresentationParameters->getScalarBarRange();
QString
PresentationController::getViewModePython() const
{
- MEDCALC::MEDPresentationViewMode viewMode = getSelectedViewMode();
+ MEDCALC::ViewModeType viewMode = getSelectedViewMode();
switch(viewMode) {
case MEDCALC::VIEW_MODE_REPLACE: return "MEDCALC.VIEW_MODE_REPLACE";
case MEDCALC::VIEW_MODE_OVERLAP: return "MEDCALC.VIEW_MODE_OVERLAP";
QString
PresentationController::getColorMapPython() const
{
- MEDCALC::MEDPresentationColorMap colorMap = getSelectedColorMap();
+ MEDCALC::ColorMapType colorMap = getSelectedColorMap();
switch(colorMap) {
case MEDCALC::COLOR_MAP_BLUE_TO_RED_RAINBOW: return "MEDCALC.COLOR_MAP_BLUE_TO_RED_RAINBOW";
case MEDCALC::COLOR_MAP_COOL_TO_WARM: return "MEDCALC.COLOR_MAP_COOL_TO_WARM";
QString
PresentationController::getScalarBarRangePython() const
{
- MEDCALC::MEDPresentationScalarBarRange colorMap = getSelectedScalarBarRange();
+ MEDCALC::ScalarBarRangeType colorMap = getSelectedScalarBarRange();
switch(colorMap) {
case MEDCALC::SCALAR_BAR_ALL_TIMESTEPS: return "MEDCALC.SCALAR_BAR_ALL_TIMESTEPS";
case MEDCALC::SCALAR_BAR_CURRENT_TIMESTEP: return "MEDCALC.SCALAR_BAR_CURRENT_TIMESTEP";
QString
PresentationController::getMeshModePython(const int mode) const
{
- MEDCALC::MEDPresentationMeshMode mod = static_cast<MEDCALC::MEDPresentationMeshMode>(mode);
+ MEDCALC::MeshModeType mod = static_cast<MEDCALC::MeshModeType>(mode);
switch(mod) {
case MEDCALC::MESH_MODE_WIREFRAME: return "MEDCALC.MESH_MODE_WIREFRAME";
case MEDCALC::MESH_MODE_SURFACE: return "MEDCALC.MESH_MODE_SURFACE";
QString
PresentationController::getSliceOrientationPython(const int orientation) const
{
- MEDCALC::MEDPresentationSliceOrientation orient = static_cast<MEDCALC::MEDPresentationSliceOrientation>(orientation);
+ MEDCALC::SliceOrientationType orient = static_cast<MEDCALC::SliceOrientationType>(orientation);
switch(orient) {
case MEDCALC::SLICE_NORMAL_TO_X: return "MEDCALC.SLICE_NORMAL_TO_X";
case MEDCALC::SLICE_NORMAL_TO_Y: return "MEDCALC.SLICE_NORMAL_TO_Y";
oss.str().c_str(), type.c_str(),ico.c_str(), presentationId);
- // MEDCALC::MEDPresentationViewMode viewMode = MEDFactoryClient::getPresentationManager()->getPresentationViewMode(presentationId);
+ // MEDCALC::ViewModeType viewMode = MEDFactoryClient::getPresentationManager()->getPresentationViewMode(presentationId);
//
// // Remove sibling presentations if view mode is set to REPLACE
// if (viewMode == MEDCALC::VIEW_MODE_REPLACE) {
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
-WidgetPresentationParameters::setScalarBarRange(MEDCALC::MEDPresentationScalarBarRange sbrange)
+WidgetPresentationParameters::setScalarBarRange(MEDCALC::ScalarBarRangeType sbrange)
{
int idx;
if (sbrange == MEDCALC::SCALAR_BAR_ALL_TIMESTEPS)
}
void
-WidgetPresentationParameters::setColorMap(MEDCALC::MEDPresentationColorMap colorMap)
+WidgetPresentationParameters::setColorMap(MEDCALC::ColorMapType colorMap)
{
int idx = -1;
if (colorMap == MEDCALC::COLOR_MAP_BLUE_TO_RED_RAINBOW)
}
void
-WidgetPresentationParameters::setMeshMode(MEDCALC::MEDPresentationMeshMode mode)
+WidgetPresentationParameters::setMeshMode(MEDCALC::MeshModeType mode)
{
// Show the widget:
_ui.labelMeshMode->show();
}
void
-WidgetPresentationParameters::setSliceOrientation(MEDCALC::MEDPresentationSliceOrientation orient)
+WidgetPresentationParameters::setSliceOrientation(MEDCALC::SliceOrientationType orient)
{
// Show the widget:
_ui.labelSliceOrient->show();
}
-MEDCALC::MEDPresentationSliceOrientation
+MEDCALC::SliceOrientationType
WidgetPresentationParameters::getSliceOrientation() const
{
QString sbrange = _ui.comboBoxSliceOrient->currentText();
return MEDCALC::SLICE_NORMAL_TO_X;
}
-MEDCALC::MEDPresentationMeshMode
+MEDCALC::MeshModeType
WidgetPresentationParameters::getMeshMode() const
{
QString mesm = _ui.comboBoxMesh->currentText();
}
-MEDCALC::MEDPresentationScalarBarRange
+MEDCALC::ScalarBarRangeType
WidgetPresentationParameters::getScalarBarRange() const
{
QString sbrange = _ui.comboBoxScalarBarRange->currentText();
// return _ui.doubleSpinBoxMaxVal->value();
//}
-MEDCALC::MEDPresentationColorMap
+MEDCALC::ColorMapType
WidgetPresentationParameters::getColorMap() const
{
QString colorMap = _ui.comboBoxColorMap->currentText();
std::string getComponent() const;
void setComponents(std::vector<std::string> compos, int selecIndex);
- MEDCALC::MEDPresentationMeshMode getMeshMode() const;
- void setMeshMode(MEDCALC::MEDPresentationMeshMode mode);
+ MEDCALC::MeshModeType getMeshMode() const;
+ void setMeshMode(MEDCALC::MeshModeType mode);
- MEDCALC::MEDPresentationScalarBarRange getScalarBarRange() const;
- void setScalarBarRange(MEDCALC::MEDPresentationScalarBarRange);
+ MEDCALC::ScalarBarRangeType getScalarBarRange() const;
+ void setScalarBarRange(MEDCALC::ScalarBarRangeType);
// double getScalarBarTimestep() const;
// double getScalarBarMinVal() const;
// double getScalarBarMaxVal() const;
- MEDCALC::MEDPresentationColorMap getColorMap() const;
- void setColorMap(MEDCALC::MEDPresentationColorMap);
+ MEDCALC::ColorMapType getColorMap() const;
+ void setColorMap(MEDCALC::ColorMapType);
void setPresName(const std::string& name);
int getNbSlices() const;
void setNbSlices(int nbSlices);
- MEDCALC::MEDPresentationSliceOrientation getSliceOrientation() const;
- void setSliceOrientation(MEDCALC::MEDPresentationSliceOrientation orient);
+ MEDCALC::SliceOrientationType getSliceOrientation() const;
+ void setSliceOrientation(MEDCALC::SliceOrientationType orient);
void toggleWidget(bool show);
bool isShown() const;