VISU::ColoredPrs3d_i
::OnSetInput()
{
- bool anIsNotCreated = !IsPipeLineExists();
- if(anIsNotCreated)
+ bool anIsCreatNew = !IsPipeLineExists();
+ if(anIsCreatNew)
CreatePipeLine(NULL); // to create proper pipeline
- DoSetInput(anIsNotCreated);
+ DoSetInput(anIsCreatNew);
// To update title according to the new input
SetTitle(GetCTitle().c_str());
- return anIsNotCreated;
+ return anIsCreatNew;
}
if(const ColoredPrs3d_i* aPrs3d = dynamic_cast<const ColoredPrs3d_i*>(theOrigin)){
ColoredPrs3d_i* anOrigin = const_cast<ColoredPrs3d_i*>(aPrs3d);
- if(OnSetInput())
+ bool anIsCreatNew = OnSetInput();
+ if(anIsCreatNew)
Build(ESameAs);
TSuperClass::SameAs(theOrigin);
SetPosition(anOrigin->GetPosX(), anOrigin->GetPosY());
SetSize(anOrigin->GetWidth(), anOrigin->GetHeight());
SetLabels(anOrigin->GetLabels());
- SetTitle(anOrigin->GetTitle());
+ if(anIsCreatNew)
+ SetTitle(anOrigin->GetTitle());
SetBoldTitle(anOrigin->IsBoldTitle());
SetItalicTitle(anOrigin->IsItalicTitle());