bbtkItkBlackBoxMacros.h File Reference

Defines macros for the creation of itk object inherited black boxes. More...

Go to the source code of this file.

Defines

#define BBTK_ITK_DELETE()
#define BBTK_ITK_BLACK_BOX_INTERFACE(CLASS, PARENTBLACKBOX, ITKPARENT)
#define BBTK_DECLARE_ITK_INPUT(NAME, TYPE)
 Declares an itk-inherited AtomicBlackBox input.
#define BBTK_DECLARE_ITK_OUTPUT(NAME, TYPE)
#define BBTK_DECLARE_ITK_PARAM(NAME, TYPE)
#define BBTK_ITK_PROCESS()


Detailed Description

Defines macros for the creation of itk object inherited black boxes.

Definition in file bbtkItkBlackBoxMacros.h.


Define Documentation

#define BBTK_DECLARE_ITK_INPUT ( NAME,
TYPE   ) 

Value:

public:                                                         \
  TYPE bbGetInput##NAME ()                                              \
  { return itkParent::GetInput(); }                                     \
  void bbSetInput##NAME (TYPE d)                                        \
  { itkParent::SetInput(d);                                             \
    /*bbSetModifiedStatus();*/ }
Declares an itk-inherited AtomicBlackBox input.

Definition at line 61 of file bbtkItkBlackBoxMacros.h.

#define BBTK_DECLARE_ITK_OUTPUT ( NAME,
TYPE   ) 

Value:

public:                                                         \
  TYPE bbGetOutput##NAME ()                                             \
  { return itkParent::GetOutput(); }                                    \
  void bbSetOutput##NAME (TYPE d)                                       \
  { /*PARENT::GetOutput() = d;*/ }

Definition at line 71 of file bbtkItkBlackBoxMacros.h.

#define BBTK_DECLARE_ITK_PARAM ( NAME,
TYPE   ) 

Value:

public:                                                         \
  TYPE bbGetInput##NAME ()                                              \
  { return itkParent::Get##NAME(); }                                    \
  void bbSetInput##NAME (TYPE d)                                        \
  { itkParent::Set##NAME(d);                                            \
    /*bbSetModifiedStatus();*/ }
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

Definition at line 83 of file bbtkItkBlackBoxMacros.h.

#define BBTK_ITK_BLACK_BOX_INTERFACE ( CLASS,
PARENTBLACKBOX,
ITKPARENT   ) 

Value:

BBTK_BLACK_BOX_INTERFACE(CLASS,PARENTBLACKBOX);                 \
  typedef ITKPARENT itkParent;                                          \
  BBTK_ITK_DELETE();

Definition at line 53 of file bbtkItkBlackBoxMacros.h.

 
#define BBTK_ITK_DELETE (  ) 

Value:

void bbDelete() {                                                       \
    itkParent::UnRegister();                                            \
  }

Definition at line 46 of file bbtkItkBlackBoxMacros.h.

 
#define BBTK_ITK_PROCESS (  ) 

Value:

public:                                                         \
  inline void bbUserProcess()                                           \
  {                                                                     \
    bbtkDebugMessage("process",1,"**> Processing ["<<bbGetFullName()    \
                     <<"]"<<std::endl);                                 \
    itkParent::Update();                                                \
    bbtkDebugMessage("process",2,"<** Processing ["<<bbGetFullName()    \
                     <<"]"<<std::endl);                                 \
  }
Defines the default bbUserProcess method for itk inherited black boxes (calls itkParent::Update)

Definition at line 95 of file bbtkItkBlackBoxMacros.h.


Generated on Wed Nov 12 11:37:48 2008 for BBTK by  doxygen 1.5.6