#include "bbUtilitiesAddRemoveActorsIndex.h" #include "bbUtilitiesPackage.h" namespace bbUtilities { BBTK_ADD_BLACK_BOX_TO_PACKAGE(Utilities,AddRemoveActorsIndex) BBTK_BLACK_BOX_IMPLEMENTATION(AddRemoveActorsIndex,bbtk::AtomicBlackBox); void AddRemoveActorsIndex::Process() { std::vector actors = bbGetInputActors(); render = bbGetInputRenderer(); int index = bbGetInputIndex(); if(render!=NULL && !actors.empty()&&index=0){ render->AddActor(actors[index]); if(currentactor!=NULL){ render->RemoveActor(currentactor); std::cout<<"Actor removed!!"<