::SetHolderEntry(const std::string& theEntry)
{
myHolderEntry = theEntry;
- SetIO(new SALOME_InteractiveObject(theEntry.c_str(), "VISU", GetName().c_str()));
}
}
+//----------------------------------------------------------------------------
+std::string
+VISU::ColoredPrs3d_i
+::GetActorEntry()
+{
+ if(myHolderEntry != "")
+ return myHolderEntry;
+ return TSuperClass::GetActorEntry();
+}
+
+
//----------------------------------------------------------------------------
CORBA::Boolean
VISU::ColoredPrs3d_i
UseFixedRange( anOrigin->IsRangeFixed() );
myIsTimeStampFixed = anOrigin->IsTimeStampFixed();
-
- SetHolderEntry( anOrigin->GetHolderEntry() );
}
}
myIsTimeStampFixed = VISU::Storable::FindValue(theMap,"myIsTimeStampFixed").toInt();
OnSetInput(false);
- SetHolderEntry(VISU::Storable::FindValue(theMap,"myHolderEntry").latin1());
-
Build(ERestore);
SetScalarMode(VISU::Storable::FindValue(theMap,"myScalarMode").toInt());
Storable::DataToStream( theStr, "myIteration", int(GetTimeStampNumber()) );
Storable::DataToStream( theStr, "myIsTimeStampFixed", int(myIsTimeStampFixed) );
- Storable::DataToStream( theStr, "myHolderEntry", myHolderEntry );
-
Storable::DataToStream( theStr, "myScalarMode", int(GetScalarMode()) );
Storable::DataToStream( theStr, "myNumberOfColors", int(GetNbColors()) );
Storable::DataToStream( theStr, "myOrientation", myOrientation );
::GetSObject()
{
const SALOMEDS::Study_var& aStudy = GetStudyDocument();
- if(CORBA::is_nil(aStudy.in())){
+ if(!CORBA::is_nil(aStudy.in())){
CORBA::String_var anIOR = GetID();
return aStudy->FindObjectIOR(anIOR);
}
::GetIO()
{
if( myIO.IsNull() )
- myIO = new SALOME_InteractiveObject(GetEntry().c_str(), "VISU", GetName().c_str());
+ myIO = new SALOME_InteractiveObject(GetActorEntry().c_str(), "VISU", GetName().c_str());
return myIO;
}
//----------------------------------------------------------------------------
-void
+std::string
VISU::Prs3d_i
-::SetIO(const Handle(SALOME_InteractiveObject)& theIO)
+::GetActorEntry()
{
- myIO = theIO;
+ return GetEntry();
}
+
//----------------------------------------------------------------------------
void
VISU::Prs3d_i
void
CheckDataSet();
- //! Used in derived classes to initilize the myIO member
- void
- SetIO(const Handle(SALOME_InteractiveObject)& theIO);
-
protected:
vtkTimeStamp myUpdateTime;
vtkTimeStamp myParamsTime;
+ //! Used in derived classes to initilize the IO for actors
+ virtual
+ std::string
+ GetActorEntry();
+
private:
bool myIsRestored;
SALOMEDS::Study_var myRestoringStudy;