}
}
}
+
+//----------------------------------------------------------------------------
+void
+VISU::ColoredPrs3dCache_i
+::RemoveHolder(VISU::ColoredPrs3dHolder_i* theHolder)
+{
+ TColoredPrs3dHolderMap::iterator anIter = myHolderMap.find(theHolder->GetEntry());
+ if(anIter != myHolderMap.end())
+ myHolderMap.erase(anIter);
+}
+
const VISU::ColoredPrs3dHolder::BasicInput& theInput,
VISU::View3D_ptr theView3D);
+ // Unregister the holder instance from cache
+ void
+ RemoveHolder(VISU::ColoredPrs3dHolder_i* theHolder);
+
void
ClearCache();
void
VISU::ColoredPrs3dHolder_i
::RemoveFromStudy()
-{}
+{
+ myCache.RemoveHolder(this);
+ CORBA::String_var anIOR = GetID();
+ SALOMEDS::SObject_var aSObject = GetStudyDocument()->FindObjectIOR(anIOR.in());
+ VISU::RemoveFromStudy(aSObject, false);
+}
//----------------------------------------------------------------------------
void