}
-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) {