Salome HOME
[salome test] connect MEDCalc tests
[modules/med.git] / src / MEDCalc / cmp / MEDPresentationManager_i.cxx
index c5f7a8f0baf064a02b25bbd5430edce40cc61383..a2e3cfb0925649157def5f5f9dc42e781cf19f27 100644 (file)
@@ -166,3 +166,26 @@ MEDPresentationManager_i::updatePointSprite(MEDPresentation::TypeID presentation
 {
   return _updatePresentation<MEDPresentationPointSprite>(presentationID, params);
 }
+
+CORBA::Boolean
+MEDPresentationManager_i::removePresentation(MEDPresentation::TypeID presentationID)
+{
+  std::map<MEDPresentation::TypeID, MEDPresentation*>::const_iterator citr = _presentations.find(presentationID);
+  if (citr == _presentations.end()) {
+    std::cerr << "removePresentation(): presentation not found!!" << std::endl;
+    return false;
+  }
+  MEDPresentation* presentation = (*citr).second;
+  if (presentation)
+    delete presentation;
+  _presentations.erase(presentationID);
+  return true;
+}
+
+MEDPresentation::TypeID
+MEDPresentationManager_i::_getActivePresentationId() const
+{
+  // :TODO:
+
+  return -1;
+}