return false;
}
+//=======================================================================
+//function : CheckActiveStudyLock
+//purpose : return true if NOT locked, ie OK
+//=======================================================================
+
+bool VisuGUI::CheckActiveStudyLock()
+{
+ //Document OCAF de l'etude active
+ SALOMEDS::Study_var aStudy = GetActiveStudy()->getStudyDocument();
+ return !checkLock( aStudy );
+}
+
bool VisuGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
UpdateViewer(aSameVectors);
}
break;
+ case VISU::TPLOT3D:
+ {
+ VISU::Plot3D_i* aPlot3DPrs = dynamic_cast<VISU::Plot3D_i*>(aPrsObject);
+ VISU::Plot3D_i* aSamePlot3D = new VISU::Plot3D_i(aPlot3DPrs->GetResult());
+ aSamePlot3D->SameAs(aPlot3DPrs);
+ UpdateViewer(aSamePlot3D);
+ }
+ break;
}
GetActiveStudy()->updateObjBrowser();
}
case VISU::TCUTLINES:
case VISU::TVECTORS:
case VISU::TSTREAMLINES:
+ case VISU::TPLOT3D:
selNext = homoPresentations; break;
case VISU::TFIELD:
if (getValue(aSObject, "myNbTimeStamps").toLong() > 1) {
static VISU::Storable::TRestoringMap getMapOfValue(SALOMEDS::SObject_var theSObject);
static VISU::Result_i* CreatePresent(SALOMEDS::SObject_var theField, VISU::Result_var& theResult);
+ static bool CheckActiveStudyLock();
enum CameraOrient {e3D, eFront, eLeft, eTop};
static CameraOrient SetFitAll( VTKViewer_ViewFrame* vf);