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 63 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 73 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 85 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 55 of file bbtkItkBlackBoxMacros.h.

 
#define BBTK_ITK_DELETE (  ) 

Value:

int bbDelete() {                                                        \
    int refs = itkParent::GetReferenceCount()-1;                        \
    itkParent::UnRegister();                                            \
    return refs;                                                        \
  }

Definition at line 46 of file bbtkItkBlackBoxMacros.h.

 
#define BBTK_ITK_PROCESS (  ) 

Value:

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

Definition at line 97 of file bbtkItkBlackBoxMacros.h.


Generated on Thu May 31 14:12:43 2012 for BBTK by  doxygen 1.5.7.1