Classes | Namespaces | Defines

mitkNonBlockingAlgorithm.h File Reference

#include <itkObjectFactory.h>
#include "MitkExtExports.h"
#include <itkMacro.h>
#include <itkMultiThreader.h>
#include <itkFastMutexLock.h>
#include <itkImage.h>
#include "mitkCommon.h"
#include "mitkPropertyList.h"
#include "mitkProperties.h"
#include "mitkSmartPointerProperty.h"
#include "mitkDataStorage.h"
#include "mitkWeakPointer.h"
#include "mitkImage.h"
#include "mitkSurface.h"
#include <string>
#include <stdexcept>
#include "mitkNonBlockingAlgorithmEvents.h"

Go to the source code of this file.

Classes

class  mitk::NonBlockingAlgorithm
class  mitk::NonBlockingAlgorithm::ThreadParameters

Namespaces

namespace  mitk
 

Qmitk.


Defines

#define mitkAlgorithmNewMacro(classname)

Define Documentation

#define mitkAlgorithmNewMacro (   classname )
Value:
static Pointer New(void) { \
  classname* rawPtr = new classname(); \
  Pointer smartPtr = rawPtr; \
  rawPtr->UnRegister(); \
  rawPtr->Initialize(); \
  return smartPtr; \
}\
virtual ::itk::LightObject::Pointer CreateAnother(void) const\
{\
  Pointer smartPtr = classname::New();\
  ::itk::LightObject::Pointer lightPtr = smartPtr.GetPointer();\
  smartPtr->Initialize(this);\
  return lightPtr;\
}

from itkNewMacro(), additionally calls Initialize(), because this couldn't be done from the constructor of NonBlockingAlgorithm (you can't call virtual functions from the constructor of the superclass)

Definition at line 43 of file mitkNonBlockingAlgorithm.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines