#ifndef __bbUtilitiesAddRemoveActor_h_INCLUDED__ #define __bbUtilitiesAddRemoveActor_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkImageData.h" #include "vtkRenderer.h" #include "vtkActor.h" #include "vtkActorCollection.h" namespace bbUtilities { class /*BBTK_EXPORT*/ AddRemoveActor : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(AddRemoveActor,bbtk::AtomicBlackBox); //================================================================== BBTK_DECLARE_INPUT(Actor,vtkActor*); //BBTK_DECLARE_INPUT(Image,vtkImageData*); BBTK_DECLARE_INPUT(Renderer,vtkRenderer*); BBTK_DECLARE_INPUT(Add,int); BBTK_PROCESS(Process); void Process(); private: vtkActor* actor; vtkRenderer* render; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(AddRemoveActor,bbtk::AtomicBlackBox); BBTK_NAME("AddRemoveActor"); BBTK_AUTHOR("car-prie@uniandes.edu.co"); BBTK_DESCRIPTION("Adds or removes the actor from the renderer"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(AddRemoveActor,Actor,"Actor to be added or removed",vtkActor*,""); //BBTK_INPUT(AddRemoveActor,Image,"Image Data",vtkImageData*,""); BBTK_INPUT(AddRemoveActor,Renderer,"Renderer where actor is to be placed",vtkRenderer*,""); BBTK_INPUT(AddRemoveActor,Add,"0 to add 1 to remove",int,""); BBTK_END_DESCRIBE_BLACK_BOX(AddRemoveActor); } // EO namespace bbUtilities #endif // __bbUtilitiesAddRemoveActor_h_INCLUDED__