Go to the source code of this file.
Namespaces | |
namespace | itk |
Defines | |
#define | itkNotUsed(x) |
#define | itkStaticConstMacro(name, type, value) static const type name = value |
#define | itkGetStaticConstMacro(name) (Self::name) |
#define | itkGetStringMacro(name) |
#define | itkGetVectorMacro(name, type, count) |
#define | itkTypeMacro(thisClass, superclass) |
#define | itkGenericExceptionMacro(x) |
#define | itkGenericOutputMacro(x) |
|
Value: virtual void name##On () { this->Set##name(true);} \ virtual void name##Off () { this->Set##name(false);} Definition at line 261 of file itkMacro.h. |
|
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 362 of file itkMacro.h. |
|
Value: { \ ::itk::OStringStream message; \ message << "itk::ERROR: " << this->GetNameOfClass() \ << "(" << this << "): " x; \ throw ::itk::ExceptionObject(__FILE__, __LINE__, message.str().c_str()); \ } Definition at line 447 of file itkMacro.h. Referenced by itk::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >::GetNumberOfWeights(), itk::Transform< TScalarType, 3, 2 >::GetParameters(), itk::MultiResolutionPDEDeformableRegistration< TFixedImage, TMovingImage, TDeformationField >::SetInitialDeformationField(), itk::WatershedImageFilter< TInputImage >::SetInput(), and itk::Transform< TScalarType, 3, 2 >::SetParameters(). |
|
Value: static Pointer New(void) \ { \ Pointer smartPtr; \ x *rawPtr = new x; \ smartPtr = rawPtr; \ rawPtr->UnRegister(); \ return smartPtr; \ } This routine assigns the raw pointer to a smart pointer and then calls UnRegister() on the rawPtr to compensate for LightObject's constructor initializing an object's reference count to 1 (needed for proper initialization of process objects and data objects cycles). Definition at line 322 of file itkMacro.h. |
|
Value: { \ ::itk::OStringStream message; \ message << "itk::ERROR: " x; \ throw ::itk::ExceptionObject(__FILE__, __LINE__, message.str().c_str()); \ } Definition at line 456 of file itkMacro.h. |
|
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 466 of file itkMacro.h. Referenced by itk::ConstRandomAccessNeighborhoodIterator< TImage >::ConstRandomAccessNeighborhoodIterator(), itk::ConstSmartNeighborhoodIterator< TImage, TBoundaryCondition >::ConstSmartNeighborhoodIterator(), itk::RandomAccessNeighborhoodIterator< TImage >::RandomAccessNeighborhoodIterator(), and itk::SmartNeighborhoodIterator< TImage, TBoundaryCondition >::SmartNeighborhoodIterator(). |
|
Value: virtual type Get##name () const \ { \ itkDebugMacro("returning " << #name " of " << this->m_##name ); \ return this->m_##name; \ } Definition at line 132 of file itkMacro.h. |
|
Value: virtual const type * Get##name () const \ { \ itkDebugMacro("returning " #name " address " << this->m_##name ); \ return this->m_##name.GetPointer(); \ } Definition at line 241 of file itkMacro.h. |
|
Value: virtual const type & Get##name () const \ { \ itkDebugMacro("returning " << #name " of " << this->m_##name ); \ return this->m_##name; \ } Definition at line 144 of file itkMacro.h. |
|
Value: virtual const typename type::Pointer & Get##name () const \ { \ itkDebugMacro("returning " #name " address " << this->m_##name ); \ return this->m_##name; \ } Definition at line 251 of file itkMacro.h. |
|
Value: virtual type Get##name () \ { \ itkDebugMacro("returning " << #name " of " << this->m_##name ); \ return this->m_##name; \ } Definition at line 121 of file itkMacro.h. |
|
Value: virtual type * Get##name () \ { \ itkDebugMacro("returning " #name " address " << this->m_##name ); \ return this->m_##name.GetPointer(); \ } Definition at line 214 of file itkMacro.h. |
|
Definition at line 103 of file itkMacro.h. Referenced by itk::Statistics::GaussianGoodnessOfFitComponent< TInputSample >::GetNumberOfParameters(). |
|
Value: virtual const char* Get##name () const \ { \ return this->m_##name.c_str(); \ } Definition at line 175 of file itkMacro.h. |
|
Value: virtual type *Get##name () const \ { \ return this->m_##name; \ } Definition at line 284 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; \ } This creation method first tries asking the object factory to create an instance, and then defaults to the standard "new" operator if the factory fails. This routine assigns the raw pointer to a smart pointer and then calls UnRegister() on the rawPtr to compensate for LightObject's constructor initializing an object's reference count to 1 (needed for proper initialization of process objects and data objects cycles). Definition at line 301 of file itkMacro.h. |
|
A convenience macro marks variables as not being used by a method, avoiding compile-time warnings. Definition at line 64 of file itkMacro.h. |
|
Value: virtual void Set##name (type _arg) \ { \ itkDebugMacro("setting " << #name " to " << _arg ); \ if (this->m_##name != (_arg<min?min:(_arg>max?max:_arg))) \ { \ this->m_##name = (_arg<min?min:(_arg>max?max:_arg)); \ this->Modified(); \ } \ } Definition at line 184 of file itkMacro.h. |
|
Value: virtual void Set##name (const type* _arg) \ { \ itkDebugMacro("setting " << #name " to " << _arg ); \ if (this->m_##name != _arg) \ { \ this->m_##name = _arg; \ this->Modified(); \ } \ } Definition at line 226 of file itkMacro.h. |
|
Value: virtual void Set##name (const type _arg) \ { \ itkDebugMacro("setting " #name " to " << _arg); \ if (this->m_##name != _arg) \ { \ this->m_##name = _arg; \ this->Modified(); \ } \ } Definition at line 108 of file itkMacro.h. |
|
Value: virtual void Set##name (type* _arg) \ { \ itkDebugMacro("setting " << #name " to " << _arg ); \ if (this->m_##name != _arg) \ { \ this->m_##name = _arg; \ this->Modified(); \ } \ } Definition at line 200 of file itkMacro.h. |
|
Value: virtual void Set##name (const char* _arg) \ { \ if ( _arg && (_arg == this->m_##name) ) { return;} \ if (_arg) \ { \ this->m_##name = _arg;\ } \ else \ { \ this->m_##name = ""; \ } \ this->Modified(); \ } Definition at line 155 of file itkMacro.h. |
|
Value: virtual void Set##name(type data[]) \ { \ unsigned int i; \ for (i=0; i<count; i++) { if ( data[i] != this->m_##name[i] ) { break; }} \ if ( i < count ) \ { \ this->Modified(); \ for (i=0; i<count; i++) { this->m_##name[i] = data[i]; }\ } \ } Definition at line 269 of file itkMacro.h. |
|
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 97 of file itkMacro.h. |
|
Value: virtual const char *GetNameOfClass() const \ {return #thisClass;} Definition at line 335 of file itkMacro.h. |
|
Value: { if (itk::Object::GetGlobalWarningDisplay()) \ { ::itk::OStringStream itkmsg; \ itkmsg << "WARNING: In " __FILE__ ", line " << __LINE__ << "\n" \ << this->GetNameOfClass() << " (" << this << "): " x \ << "\n\n"; \ itk::OutputWindowDisplayWarningText(itkmsg.str().c_str());} \ } Definition at line 380 of file itkMacro.h. |