/*========================================================================= Program: bbtk Module: $RCSfile: bbtkUserBlackBoxDescriptor.h,v $ Language: C++ Date: $Date: 2008/01/22 15:02:00 $ Version: $Revision: 1.1.1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ /** * \file * \brief Class bbtk::UserBlackBoxDescriptor : structure containing the description of a UserBlackBox input (name, description, type, functor) */ /** * \class bbtk::UserBlackBoxDescriptor * \brief Structure containing the description of a UserBlackBox input (name, description, type, functor) */ #ifndef __bbtkUserBlackBoxDescriptor_h__ #define __bbtkUserBlackBoxDescriptor_h__ #include "bbtkBlackBoxDescriptor.h" #include "bbtkUserBlackBoxInputDescriptor.h" #include "bbtkUserBlackBoxOutputDescriptor.h" namespace bbtk { class BBTK_EXPORT UserBlackBoxDescriptor : public bbtk::BlackBoxDescriptor { public: UserBlackBoxDescriptor() { AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor("BoxProcessMode", "Set the process mode of the box (Pipeline | Always | Reactive)", new bbtk::UserBlackBoxTGetFunctor(&BlackBox::bbGetInputBoxProcessMode), new bbtk::UserBlackBoxTSetFunctor(&BlackBox::bbSetInputBoxProcessMode) ) ); AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor("BoxExecute", "Any change signal received by this input executes the box", new bbtk::UserBlackBoxTGetFunctor(&BlackBox::bbGetInputBoxExecute), new bbtk::UserBlackBoxTSetFunctor(&BlackBox::bbSetInputBoxExecute) ) ); AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor("BoxChange", "Propagates modification of the box", new bbtk::UserBlackBoxTGetFunctor(&BlackBox::bbGetOutputBoxChange), new bbtk::UserBlackBoxTSetFunctor(&BlackBox::bbSetOutputBoxChange) ) ); } }; } // namespace bbtk #endif