#ifndef __bbUtilitiesAddRemoveActorsIndex_h_INCLUDED__ #define __bbUtilitiesAddRemoveActorsIndex_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkImageData.h" #include "vtkRenderer.h" #include "vtkActor.h" #include "vtkActorCollection.h" namespace bbUtilities { class /*BBTK_EXPORT*/ AddRemoveActorsIndex : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(AddRemoveActorsIndex,bbtk::AtomicBlackBox); //================================================================== BBTK_DECLARE_INPUT(Actors,std::vector); BBTK_DECLARE_INPUT(Renderer,vtkRenderer*); BBTK_DECLARE_INPUT(Index,int); BBTK_PROCESS(Process); void Process(); private: vtkActor* currentactor; vtkRenderer* render; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(AddRemoveActorsIndex,bbtk::AtomicBlackBox); BBTK_NAME("AddRemoveActorsIndex"); BBTK_AUTHOR("car-prie@uniandes.edu.co"); BBTK_DESCRIPTION("From a vector of actors, removes the last one and adds the one with the given index"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(AddRemoveActorsIndex,Actors,"Actor to be added or removed",std::vector,""); BBTK_INPUT(AddRemoveActorsIndex,Renderer,"Renderer where actor is to be placed",vtkRenderer*,""); BBTK_INPUT(AddRemoveActorsIndex,Index,"index of the actor to be added",int,""); BBTK_END_DESCRIBE_BLACK_BOX(AddRemoveActorsIndex); } // EO namespace bbUtilities #endif // __bbUtilitiesAddRemoveActorsIndex_h_INCLUDED__