#include "VisuGUI_Tools.h"
#include "VISU_ViewManager_i.hh"
-#include "VISU_ColoredPrs3dHolder_i.hh"
#include "VISU_Actor.h"
#include "VVTK_ViewModel.h"
{
VISU::Base_i* aBase = dynamic_cast<VISU::Base_i*>(VISU::GetServant(anObj).in());
if(aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER)
- return dynamic_cast<VISU::ColoredPrs3dHolder_i*>(aBase);
+ return true;
return dynamic_cast<VISU::Prs3d_i*>(aBase);
}
#include "VISU_Table_i.hh"
#include "VISU_Mesh_i.hh"
#include "VISU_ViewManager_i.hh"
-#include "VISU_ColoredPrs3dCache_i.hh"
-#include "VISU_ColoredPrs3dHolder_i.hh"
#include "VISU_Actor.h"
#include "VISU_ScalarMapAct.h"
return NULL;
VISU::Base_i* aBase = dynamic_cast<VISU::Base_i*>(aServant.in());
- if(aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER)
- {
- VISU::ColoredPrs3dHolder_i* aHolder = dynamic_cast<VISU::ColoredPrs3dHolder_i*>(aBase);
- return dynamic_cast<VISU::ColoredPrs3d_i*>(VISU::GetServant(aHolder->GetDevice()).in());
+ if(aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER){
+ VISU::ColoredPrs3dHolder_var aHolder = VISU::ColoredPrs3dHolder::_narrow(anObject);
+ VISU::ColoredPrs3d_var aColoredPrs3d = aHolder->GetDevice();
+ aServant = VISU::GetServant(aColoredPrs3d);
+ aBase = dynamic_cast<VISU::Base_i*>(aServant.in());
}
return dynamic_cast<VISU::Prs3d_i*>(aBase);