Go to the source code of this file.
Namespaces | |
| namespace | itk |
Defines | |
| #define | ITK_EMPTY |
| #define | ITK_EXPORT_ITKCommon(c, x, n) ITK_EXPORT_TEMPLATE(ITKCommon_EXPORT, c, x, n) |
| #define | ITK_EXPORT_TEMPLATE(EXPORT, c, x, y) ITK_TEMPLATE_##c(ITK_TEMPLATE_EXPORT, EXPORT ITK_EMPTY, x, y) |
| #define | ITK_IMPORT_ITKCommon(c, x, n) ITK_IMPORT_TEMPLATE(ITKCommon_EXPORT, c, x, n) |
| #define | ITK_IMPORT_TEMPLATE(EXPORT, c, x, y) ITK_TEMPLATE_##c(ITK_TEMPLATE_IMPORT, EXPORT ITK_EMPTY, x, y) |
| #define | ITK_LOCATION "unknown" |
| #define | ITK_TEMPLATE_1(x1) x1 |
| #define | ITK_TEMPLATE_2(x1, x2) x1,x2 |
| #define | ITK_TEMPLATE_3(x1, x2, x3) x1,x2,x3 |
| #define | ITK_TEMPLATE_4(x1, x2, x3, x4) x1,x2,x3,x4 |
| #define | ITK_TEMPLATE_5(x1, x2, x3, x4, x5) x1,x2,x3,x4,x5 |
| #define | ITK_TEMPLATE_6(x1, x2, x3, x4, x5, x6) x1,x2,x3,x4,x5,x6 |
| #define | ITK_TEMPLATE_7(x1, x2, x3, x4, x5, x6, x7) x1,x2,x3,x4,x5,x6,x7 |
| #define | ITK_TEMPLATE_8(x1, x2, x3, x4, x5, x6, x7, x8) x1,x2,x3,x4,x5,x6,x7,x8 |
| #define | ITK_TEMPLATE_9(x1, x2, x3, x4, x5, x6, x7, x8, x9) x1,x2,x3,x4,x5,x6,x7,x8,x9 |
| #define | ITK_TEMPLATE_DO_NOT_INSTANTIATE 0 |
| #define | ITK_TEMPLATE_EXPLICIT 0 |
| #define | ITK_TEMPLATE_EXPORT(x) ITK_TEMPLATE_EXPORT_DELAY(x) |
| #define | ITK_TEMPLATE_EXPORT_DELAY(x) template ITK_TEMPLATE_##x; |
| #define | ITK_TEMPLATE_EXTERN 0 |
| #define | ITK_TEMPLATE_IMPORT(x) |
| #define | ITK_TEMPLATE_IMPORT_WORKS 0 |
| #define | ITK_TEMPLATE_TXX !(ITK_TEMPLATE_CXX || ITK_TEMPLATE_TYPE) |
| #define | itkBooleanMacro(name) |
| #define | itkDebugMacro(x) |
| #define | itkExceptionMacro(x) |
| #define | itkFactorylessNewMacro(x) |
| #define | itkGenericExceptionMacro(x) |
| #define | itkGenericOutputMacro(x) |
| #define | itkGetConstMacro(name, type) |
| #define | itkGetConstObjectMacro(name, type) |
| #define | itkGetConstReferenceMacro(name, type) |
| #define | itkGetConstReferenceObjectMacro(name, type) |
| #define | itkGetInputMacro(name, type, number) |
| #define | itkGetMacro(name, type) |
| #define | itkGetObjectMacro(name, type) |
| #define | itkGetStaticConstMacro(name) (Self::name) |
| #define | itkGetStringMacro(name) |
| #define | itkGetVectorMacro(name, type, count) |
| #define | itkLegacy(method) method |
| #define | itkLegacyBody(method, version) itkWarningMacro(#method " was deprecated for ITK " #version " and will be removed in a future version.") |
| #define | itkLegacyReplaceBody(method, version, replace) itkWarningMacro(#method " was deprecated for ITK " #version " and will be removed in a future version. Use " #replace " instead.") |
| #define | itkLogMacro(x, y) |
| #define | itkLogMacroStatic(obj, x, y) |
| #define | itkNewMacro(x) |
| #define | itkNotUsed(x) |
| #define | itkSetClampMacro(name, type, min, max) |
| #define | itkSetConstObjectMacro(name, type) |
| #define | itkSetInputMacro(name, type, number) |
| #define | itkSetMacro(name, type) |
| #define | itkSetObjectMacro(name, type) |
| #define | itkSetStringMacro(name) |
| #define | itkSetVectorMacro(name, type, count) |
| #define | itkStaticConstMacro(name, type, value) static const type name = value |
| #define | itkTypeMacro(thisClass, superclass) |
| #define | itkWarningMacro(x) |
Functions | |
| This macro is used to print | debug (or other information).They are *also used to catch errors |
| Set an input This defines the Set name | Input () method */namespace itk |
Variables | |
| This macro is used to print etc Example usage looks | like |
|
|
Definition at line 763 of file itkMacro.h. |
|
|
Definition at line 810 of file itkMacro.h. |
|
|
Definition at line 759 of file itkMacro.h. |
|
|
Definition at line 812 of file itkMacro.h. |
|
|
Definition at line 761 of file itkMacro.h. |
|
|
Definition at line 527 of file itkMacro.h. |
|
|
Definition at line 769 of file itkMacro.h. |
|
|
Definition at line 770 of file itkMacro.h. |
|
|
Definition at line 771 of file itkMacro.h. |
|
|
Definition at line 772 of file itkMacro.h. |
|
|
Definition at line 773 of file itkMacro.h. |
|
|
Definition at line 774 of file itkMacro.h. |
|
|
Definition at line 775 of file itkMacro.h. |
|
|
Definition at line 776 of file itkMacro.h. |
|
|
Definition at line 777 of file itkMacro.h. |
|
|
Definition at line 661 of file itkMacro.h. |
|
|
Definition at line 831 of file itkMacro.h. |
|
|
Definition at line 674 of file itkMacro.h. |
|
|
Definition at line 675 of file itkMacro.h. |
|
|
Definition at line 664 of file itkMacro.h. |
|
|
Definition at line 699 of file itkMacro.h. |
|
|
Definition at line 700 of file itkMacro.h. |
|
|
Definition at line 790 of file itkMacro.h. |
|
|
Value: |
|
|
Value: { if (this->GetDebug() && ::itk::Object::GetGlobalWarningDisplay()) \
{ ::itk::OStringStream itkmsg; \
itkmsg << "Debug: In " __FILE__ ", line " << __LINE__ << "\n" \
<< this->GetNameOfClass() << " (" << this << "): " x \
<< "\n\n"; \
::itk::OutputWindowDisplayDebugText(itkmsg.str().c_str());} \
}
Definition at line 434 of file itkMacro.h. Referenced by itk::ActiveShapeModelCalculator< TImage >::PrintSelf(). |
|
|
|
Value: static Pointer New(void) \ { \ Pointer smartPtr; \ x *rawPtr = new x; \ smartPtr = rawPtr; \ rawPtr->UnRegister(); \ return smartPtr; \ } \ virtual LightObject::Pointer CreateAnother(void) const \ { \ LightObject::Pointer smartPtr; \ smartPtr = x::New().GetPointer(); \ return smartPtr; \ } |
|
|
Value: { \
::itk::OStringStream message; \
message << "itk::ERROR: " x; \
::itk::ExceptionObject e_(__FILE__, __LINE__, message.str().c_str(),ITK_LOCATION); \
throw e_; /* Explicit naming to work around Intel compiler bug. */ \
}
Definition at line 545 of file itkMacro.h. Referenced by itk::MeasurementVectorTraits::Assert(), itk::Statistics::ListSampleBase< ImageJointDomainTraits< TImage >::MeasurementVectorType >::Search(), and itk::MeasurementVectorTraits::SetLength(). |
|
|
Value: { if (::itk::Object::GetGlobalWarningDisplay()) \
{ ::itk::OStringStream itkmsg; \
itkmsg << "WARNING: In " __FILE__ ", line " << __LINE__ << "\n" \
x << "\n\n"; \
itk::OutputWindowDisplayGenericOutputText(itkmsg.str().c_str());} \
}
Definition at line 556 of file itkMacro.h. |
|
|
Value: |
|
|
Value: |
|
|
Value: |
|
|
Value: virtual const typename type::Pointer & Get##name () const \ { \ itkDebugMacro("returning " #name " address " << this->m_##name ); \ return this->m_##name; \ } |
|
|
Value: virtual const type * Get##name##Input() const \ { \ itkDebugMacro("returning input " << #name " of " << static_cast<const type *>(this->ProcessObject::GetInput( number )) ); \ return static_cast<const type *>(this->ProcessObject::GetInput( number )); \ } \ virtual const type * GetInput##number() const \ { \ itkDebugMacro("returning input " << #number " of " << static_cast<const type *>(this->ProcessObject::GetInput( number )) ); \ return static_cast<const type *>(this->ProcessObject::GetInput( number )); \ } |
|
|
Value: |
|
|
Value: |
|
|
|
Value: |
|
|
Value: |
|
|
Definition at line 610 of file itkMacro.h. |
|
|
|
Definition at line 633 of file itkMacro.h. Referenced by itk::CannyEdgeDetectionImageFilter::GetThreshold(), and itk::CannyEdgeDetectionImageFilter::SetThreshold(). |
|
|
Value: Definition at line 570 of file itkMacro.h. |
|
|
Value: { \
if (obj->GetLogger() ) \
{ \
obj->GetLogger()->Write(::itk::LoggerBase::x, y); \
} \
}
Definition at line 579 of file itkMacro.h. |
|
|
Value: static Pointer New(void) \ { \ Pointer smartPtr; \ x *rawPtr = ::itk::ObjectFactory<x>::Create(); \ if(rawPtr == NULL) \ { \ rawPtr = new x; \ } \ smartPtr = rawPtr; \ rawPtr->UnRegister(); \ return smartPtr; \ } \ virtual ::itk::LightObject::Pointer CreateAnother(void) const \ { \ ::itk::LightObject::Pointer smartPtr; \ smartPtr = x::New().GetPointer(); \ return smartPtr; \ } |
|
|
A convenience macro marks variables as not being used by a method, avoiding compile-time warnings. Definition at line 59 of file itkMacro.h. |
|
|
Value: |
|
|
Value: |
|
|
Value: virtual void Set##name##Input(const type *_arg) \ { \ itkDebugMacro("setting input " #name " to " << _arg); \ if (_arg != static_cast<type *>(this->ProcessObject::GetInput( number ))) \ { \ this->ProcessObject::SetNthInput( number, const_cast<type *>(_arg) ); \ this->Modified(); \ } \ } \ virtual void SetInput##number(const type *_arg) \ { \ itkDebugMacro("setting input " #number " to " << _arg); \ if (_arg != static_cast<type *>(this->ProcessObject::GetInput( number ))) \ { \ this->ProcessObject::SetNthInput( number, const_cast<type *>(_arg) ); \ this->Modified(); \ } \ } |
|
|
Value: |
|
|
Value: |
|
|
Value: |
|
|
Value: |
|
|
Macro to initialize static constants. This is used frequently to replace the use of enum's within a class. Some compilers do not allow an enum of one class to be passed as template argument to another class. Other uses of this macro as possible. This is based (verbatim) on the BOOST_STATIC_CONSTANT macro. The original Boost documentation is below. BOOST_STATIC_CONSTANT workaround --------------------------------------- // On compilers which don't allow in-class initialization of static integral constant members, we must use enums as a workaround if we want the constants to be available at compile-time. This macro gives us a convenient way to declare such constants. Definition at line 104 of file itkMacro.h. |
|
|
Value: virtual const char *GetNameOfClass() const \ {return #thisClass;} |
|
|
|
|
|
|
Macro used to add standard methods to all classes, mainly type information. The following is used to output debug, warning, and error messages. Use a global function which actually calls: OutputWindow::GetInstance()->DisplayText(); This is to avoid Object #include of OutputWindow while OutputWindow #includes Object. Definition at line 113 of file itkMacro.h. |
|
|
Definition at line 430 of file itkMacro.h. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000