/*========================================================================= Program: bbtk Module: $RCSfile: bbtkItkBlackBoxMacros.h,v $ Language: C++ Date: $Date: 2008/05/07 06:31:37 $ Version: $Revision: 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 Defines macros for the creation of itk object inherited black boxes */ #ifndef __bbtkItkBlackBoxMacros_h__ #define __bbtkItkBlackBoxMacros_h__ //=========================================================================== //============================================================================ // ITK Specific macros //=========================================================================== //=========================================================================== //=========================================================================== /// Declares an itk-inherited AtomicBlackBox input #define BBTK_DECLARE_ITK_INPUT(PARENT,NAME,TYPE) \ public: \ TYPE bbGetInput##NAME () \ { return PARENT::GetInput(); } \ void bbSetInput##NAME (TYPE d) \ { PARENT::SetInput(d); \ /*bbSetModifiedStatus();*/ } //=========================================================================== //=========================================================================== #define BBTK_DECLARE_ITK_OUTPUT(PARENT,NAME,TYPE) \ public: \ TYPE bbGetOutput##NAME () \ { return PARENT::GetOutput(); } \ void bbSetOutput##NAME (TYPE d) \ { /*PARENT::GetOutput() = d;*/ } //=========================================================================== //=========================================================================== /// Declares an AtomicBlackBox input corresponding to an inherited itk parameter /// which was declared by itkSetMacro/itkGetMacro /// The NAME **MUST** be the same than the itk parameter name #define BBTK_DECLARE_ITK_PARAM(PARENT,NAME,TYPE) \ public: \ TYPE bbGetInput##NAME () \ { return PARENT::Get##NAME(); } \ void bbSetInput##NAME (TYPE d) \ { PARENT::Set##NAME(d); \ /*bbSetModifiedStatus();*/ } //=========================================================================== //=========================================================================== /// EOF //=========================================================================== #endif