Go to the source code of this file.
Classes | |
class | igtl::OStringStream |
Namespaces | |
igtl | |
Macros | |
#define | IGTL_EMPTY |
#define | IGTL_EXPORT_IGTLCommon(c, x, n) IGTL_EXPORT_TEMPLATE(IGTLCommon_EXPORT, c, x, n) |
#define | IGTL_EXPORT_TEMPLATE(EXPORT, c, x, y) IGTL_TEMPLATE_##c(IGTL_TEMPLATE_EXPORT, EXPORT IGTL_EMPTY, x, y) |
#define | IGTL_IMPORT_IGTLCommon(c, x, n) IGTL_IMPORT_TEMPLATE(IGTLCommon_EXPORT, c, x, n) |
#define | IGTL_IMPORT_TEMPLATE(EXPORT, c, x, y) IGTL_TEMPLATE_##c(IGTL_TEMPLATE_IMPORT, EXPORT IGTL_EMPTY, x, y) |
#define | IGTL_LOCATION "unknown" |
#define | IGTL_NO_RETURN |
#define | IGTL_TEMPLATE_1(x1) x1 |
#define | IGTL_TEMPLATE_2(x1, x2) x1,x2 |
#define | IGTL_TEMPLATE_3(x1, x2, x3) x1,x2,x3 |
#define | IGTL_TEMPLATE_4(x1, x2, x3, x4) x1,x2,x3,x4 |
#define | IGTL_TEMPLATE_5(x1, x2, x3, x4, x5) x1,x2,x3,x4,x5 |
#define | IGTL_TEMPLATE_6(x1, x2, x3, x4, x5, x6) x1,x2,x3,x4,x5,x6 |
#define | IGTL_TEMPLATE_7(x1, x2, x3, x4, x5, x6, x7) x1,x2,x3,x4,x5,x6,x7 |
#define | IGTL_TEMPLATE_8(x1, x2, x3, x4, x5, x6, x7, x8) x1,x2,x3,x4,x5,x6,x7,x8 |
#define | IGTL_TEMPLATE_9(x1, x2, x3, x4, x5, x6, x7, x8, x9) x1,x2,x3,x4,x5,x6,x7,x8,x9 |
#define | IGTL_TEMPLATE_DO_NOT_INSTANTIATE 0 |
#define | IGTL_TEMPLATE_EXPLICIT 0 |
#define | IGTL_TEMPLATE_EXPORT(x) IGTL_TEMPLATE_EXPORT_DELAY(x) |
#define | IGTL_TEMPLATE_EXPORT_DELAY(x) template IGTL_TEMPLATE_##x; |
#define | IGTL_TEMPLATE_EXTERN 0 |
#define | IGTL_TEMPLATE_IMPORT(x) |
#define | IGTL_TEMPLATE_IMPORT_WORKS 0 |
#define | IGTL_TEMPLATE_TXX !(IGTL_TEMPLATE_CXX || IGTL_TEMPLATE_TYPE) |
#define | igtlErrorMacro(x) |
#define | igtlExceptionMacro(x) |
#define | igtlGenericOutputMacro(x) |
#define | igtlGetStaticConstMacro(name) (Self::name) |
#define | igtlGetStringMacro(name) |
#define | igtlGetVectorMacro(name, type, count) |
#define | igtlLegacyBodyMacro(method, version) igtlWarningMacro(#method " was deprecated for IGTL " #version " and will be removed in a future version.") |
#define | igtlLegacyMacro(method) method |
#define | igtlLegacyReplaceBodyMacro(method, version, replace) igtlWarningMacro(#method " was deprecated for IGTL " #version " and will be removed in a future version. Use " #replace " instead.") |
#define | igtlLogMacro(x, y) |
#define | igtlLogMacroStatic(obj, x, y) |
#define | igtlNotUsed(x) |
#define | igtlStaticConstMacro(name, type, value) static const type name = value |
#define | igtlSuperclassTraitMacro(traitnameType) typedef typename Superclass::traitnameType traitnameType; |
#define | igtlTypeMacro(thisClass, superclass) |
#define | igtlSetInputMacro(name, type, number) |
#define | igtlGetInputMacro(name, type, number) |
#define | igtlSetDecoratedInputMacro(name, type, number) |
#define | igtlSetDecoratedObjectInputMacro(name, type, number) |
#define | igtlSetMacro(name, type) |
#define | igtlGetMacro(name, type) |
#define | igtlGetConstMacro(name, type) |
#define | igtlGetConstReferenceMacro(name, type) |
#define | igtlSetEnumMacro(name, type) |
#define | igtlGetEnumMacro(name, type) |
#define | igtlSetStringMacro(name) |
#define | igtlSetClampMacro(name, type, min, max) |
#define | igtlSetObjectMacro(name, type) |
#define | igtlGetObjectMacro(name, type) |
#define | igtlSetConstObjectMacro(name, type) |
#define | igtlGetConstObjectMacro(name, type) |
#define | igtlGetConstReferenceObjectMacro(name, type) |
#define | igtlBooleanMacro(name) |
#define | igtlSetVectorMacro(name, type, count) |
#define | igtlNewMacro(x) |
#define | igtlFactorylessNewMacro(x) |
#define | igtlDebugMacro(x) |
#define | igtlWarningMacro(x) |
#define IGTL_EMPTY |
Definition at line 856 of file igtlMacro.h.
#define IGTL_EXPORT_IGTLCommon | ( | c, | |
x, | |||
n | |||
) | IGTL_EXPORT_TEMPLATE(IGTLCommon_EXPORT, c, x, n) |
Definition at line 903 of file igtlMacro.h.
#define IGTL_EXPORT_TEMPLATE | ( | EXPORT, | |
c, | |||
x, | |||
y | |||
) | IGTL_TEMPLATE_##c(IGTL_TEMPLATE_EXPORT, EXPORT IGTL_EMPTY, x, y) |
Definition at line 852 of file igtlMacro.h.
#define IGTL_IMPORT_IGTLCommon | ( | c, | |
x, | |||
n | |||
) | IGTL_IMPORT_TEMPLATE(IGTLCommon_EXPORT, c, x, n) |
Definition at line 905 of file igtlMacro.h.
#define IGTL_IMPORT_TEMPLATE | ( | EXPORT, | |
c, | |||
x, | |||
y | |||
) | IGTL_TEMPLATE_##c(IGTL_TEMPLATE_IMPORT, EXPORT IGTL_EMPTY, x, y) |
Definition at line 854 of file igtlMacro.h.
#define IGTL_LOCATION "unknown" |
Definition at line 606 of file igtlMacro.h.
#define IGTL_NO_RETURN |
Definition at line 940 of file igtlMacro.h.
#define IGTL_TEMPLATE_1 | ( | x1 | ) | x1 |
Definition at line 862 of file igtlMacro.h.
#define IGTL_TEMPLATE_2 | ( | x1, | |
x2 | |||
) | x1,x2 |
Definition at line 863 of file igtlMacro.h.
#define IGTL_TEMPLATE_3 | ( | x1, | |
x2, | |||
x3 | |||
) | x1,x2,x3 |
Definition at line 864 of file igtlMacro.h.
#define IGTL_TEMPLATE_4 | ( | x1, | |
x2, | |||
x3, | |||
x4 | |||
) | x1,x2,x3,x4 |
Definition at line 865 of file igtlMacro.h.
#define IGTL_TEMPLATE_5 | ( | x1, | |
x2, | |||
x3, | |||
x4, | |||
x5 | |||
) | x1,x2,x3,x4,x5 |
Definition at line 866 of file igtlMacro.h.
#define IGTL_TEMPLATE_6 | ( | x1, | |
x2, | |||
x3, | |||
x4, | |||
x5, | |||
x6 | |||
) | x1,x2,x3,x4,x5,x6 |
Definition at line 867 of file igtlMacro.h.
#define IGTL_TEMPLATE_7 | ( | x1, | |
x2, | |||
x3, | |||
x4, | |||
x5, | |||
x6, | |||
x7 | |||
) | x1,x2,x3,x4,x5,x6,x7 |
Definition at line 868 of file igtlMacro.h.
#define IGTL_TEMPLATE_8 | ( | x1, | |
x2, | |||
x3, | |||
x4, | |||
x5, | |||
x6, | |||
x7, | |||
x8 | |||
) | x1,x2,x3,x4,x5,x6,x7,x8 |
Definition at line 869 of file igtlMacro.h.
#define IGTL_TEMPLATE_9 | ( | x1, | |
x2, | |||
x3, | |||
x4, | |||
x5, | |||
x6, | |||
x7, | |||
x8, | |||
x9 | |||
) | x1,x2,x3,x4,x5,x6,x7,x8,x9 |
Definition at line 870 of file igtlMacro.h.
#define IGTL_TEMPLATE_DO_NOT_INSTANTIATE 0 |
Definition at line 754 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXPLICIT 0 |
Definition at line 924 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXPORT | ( | x | ) | IGTL_TEMPLATE_EXPORT_DELAY(x) |
Definition at line 767 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXPORT_DELAY | ( | x | ) | template IGTL_TEMPLATE_##x; |
Definition at line 768 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXTERN 0 |
Definition at line 757 of file igtlMacro.h.
#define IGTL_TEMPLATE_IMPORT | ( | x | ) |
Definition at line 792 of file igtlMacro.h.
#define IGTL_TEMPLATE_IMPORT_WORKS 0 |
Definition at line 793 of file igtlMacro.h.
#define IGTL_TEMPLATE_TXX !(IGTL_TEMPLATE_CXX || IGTL_TEMPLATE_TYPE) |
Definition at line 883 of file igtlMacro.h.
#define igtlBooleanMacro | ( | name | ) |
Create members "name"On() and "name"Off() (e.g., DebugOn() DebugOff()). Set method must be defined to use this macro.
Definition at line 387 of file igtlMacro.h.
#define igtlDebugMacro | ( | x | ) |
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. This macro is used to print debug (or other information). They are also used to catch errors, etc. Example usage looks like: igtlDebugMacro(<< "this is debug info" << this->SomeVariable);
Definition at line 513 of file igtlMacro.h.
#define igtlErrorMacro | ( | x | ) |
Definition at line 618 of file igtlMacro.h.
#define igtlExceptionMacro | ( | x | ) |
Definition at line 609 of file igtlMacro.h.
#define igtlFactorylessNewMacro | ( | x | ) |
Define two object creation methods. The first method, New(), creates an object from a class but does not defer to a factory. The second method, CreateAnother(), creates an object from an instance, again without deferring to a factory. This second method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
These creation methods first try asking the object factory to create an instance, and then default to the standard "new" operator if the factory fails.
These routines assigns the raw pointer to a smart pointer and then call 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 467 of file igtlMacro.h.
#define igtlGenericOutputMacro | ( | x | ) |
Definition at line 631 of file igtlMacro.h.
#define igtlGetConstMacro | ( | name, | |
type | |||
) |
Get built-in type. Creates member Get"name"() (e.g., GetVisibility()); This is the "const" form of the igtlGetMacro. It should be used unless the member can be changed through the "Get" access routine.
Definition at line 233 of file igtlMacro.h.
#define igtlGetConstObjectMacro | ( | name, | |
type | |||
) |
Get a smart const pointer to an object. Creates the member Get"name"() (e.g., GetPoints()).
Definition at line 367 of file igtlMacro.h.
#define igtlGetConstReferenceMacro | ( | name, | |
type | |||
) |
Get built-in type. Creates member Get"name"() (e.g., GetVisibility()); This is the "const" form of the igtlGetMacro. It should be used unless the member can be changed through the "Get" access routine. This versions returns a const reference to the variable.
Definition at line 245 of file igtlMacro.h.
#define igtlGetConstReferenceObjectMacro | ( | name, | |
type | |||
) |
Get a const reference to a smart pointer to an object. Creates the member Get"name"() (e.g., GetPoints()).
Definition at line 377 of file igtlMacro.h.
#define igtlGetEnumMacro | ( | name, | |
type | |||
) |
Get built-in type. Creates member Get"name"() (e.g., GetVisibility()); This should be use when the type is an enum. It is use to avoid warnings on some compilers with non specified enum types passed to igtlDebugMacro.
Definition at line 270 of file igtlMacro.h.
#define igtlGetInputMacro | ( | name, | |
type, | |||
number | |||
) |
Get an input. This defines the Get"name"Input() method
Definition at line 150 of file igtlMacro.h.
#define igtlGetMacro | ( | name, | |
type | |||
) |
Get built-in type. Creates member Get"name"() (e.g., GetVisibility());
Definition at line 222 of file igtlMacro.h.
#define igtlGetObjectMacro | ( | name, | |
type | |||
) |
Get a smart pointer to an object. Creates the member Get"name"() (e.g., GetPoints()).
Definition at line 341 of file igtlMacro.h.
#define igtlGetStaticConstMacro | ( | name | ) | (Self::name) |
Definition at line 122 of file igtlMacro.h.
#define igtlGetStringMacro | ( | name | ) |
Get character string. Creates member Get"name"() (e.g., SetFilename(char *)). The macro assumes that the class member (name) is declared as a type std::string.
Definition at line 304 of file igtlMacro.h.
#define igtlGetVectorMacro | ( | name, | |
type, | |||
count | |||
) |
Get vector macro. Returns pointer to type (i.e., array of type). This is for efficiency.
Definition at line 409 of file igtlMacro.h.
#define igtlLegacyBodyMacro | ( | method, | |
version | |||
) | igtlWarningMacro(#method " was deprecated for IGTL " #version " and will be removed in a future version.") |
Definition at line 724 of file igtlMacro.h.
#define igtlLegacyMacro | ( | method | ) | method |
Definition at line 703 of file igtlMacro.h.
#define igtlLegacyReplaceBodyMacro | ( | method, | |
version, | |||
replace | |||
) | igtlWarningMacro(#method " was deprecated for IGTL " #version " and will be removed in a future version. Use " #replace " instead.") |
Definition at line 726 of file igtlMacro.h.
#define igtlLogMacro | ( | x, | |
y | |||
) |
Definition at line 645 of file igtlMacro.h.
#define igtlLogMacroStatic | ( | obj, | |
x, | |||
y | |||
) |
Definition at line 654 of file igtlMacro.h.
#define igtlNewMacro | ( | x | ) |
Define two object creation methods. The first method, New(), creates an object from a class, potentially deferring to a factory. The second method, CreateAnother(), creates an object from an instance, potentially deferring to a factory. This second method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
These creation methods first try asking the object factory to create an instance, and then default to the standard "new" operator if the factory fails.
These routines assigns the raw pointer to a smart pointer and then call 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 431 of file igtlMacro.h.
#define igtlNotUsed | ( | x | ) |
A convenience macro marks variables as not being used by a method, avoiding compile-time warnings.
Definition at line 71 of file igtlMacro.h.
#define igtlSetClampMacro | ( | name, | |
type, | |||
min, | |||
max | |||
) |
Set built-in type where value is constrained between min/max limits. Create member Set"name"() (e.q., SetRadius()). #defines are convienience for clamping open-ended values.
Definition at line 313 of file igtlMacro.h.
#define igtlSetConstObjectMacro | ( | name, | |
type | |||
) |
Set const pointer to object; uses Object reference counting methodology. Creates method Set"name"() (e.g., SetPoints()). Note that using smart pointers requires using real pointers when setting input, but returning smart pointers on output.
Definition at line 353 of file igtlMacro.h.
#define igtlSetDecoratedInputMacro | ( | name, | |
type, | |||
number | |||
) |
Set a decorated input. This defines the Set"name"() method. It invokes SetInputMacro() and GetInputMacro() for the decorated object
Definition at line 165 of file igtlMacro.h.
#define igtlSetDecoratedObjectInputMacro | ( | name, | |
type, | |||
number | |||
) |
Set a decorated input that derives from igtl::Object, but not from igtl::DataObject. This defines the Set"name"() method. It invokes SetInputMacro() and GetInputMacro() for the decorated object
Definition at line 188 of file igtlMacro.h.
#define igtlSetEnumMacro | ( | name, | |
type | |||
) |
Set built-in type. Creates member Set"name"() (e.g., SetVisibility()); This should be use when the type is an enum. It is use to avoid warnings on some compilers with non specified enum types passed to igtlDebugMacro.
Definition at line 256 of file igtlMacro.h.
#define igtlSetInputMacro | ( | name, | |
type, | |||
number | |||
) |
Set an input. This defines the Set"name"Input() method
Definition at line 126 of file igtlMacro.h.
#define igtlSetMacro | ( | name, | |
type | |||
) |
Set built-in type. Creates member Set"name"() (e.g., SetVisibility());
Definition at line 210 of file igtlMacro.h.
#define igtlSetObjectMacro | ( | name, | |
type | |||
) |
Set pointer to object; uses Object reference counting methodology. Creates method Set"name"() (e.g., SetPoints()). Note that using smart pointers requires using real pointers when setting input, but returning smart pointers on output.
Definition at line 328 of file igtlMacro.h.
#define igtlSetStringMacro | ( | name | ) |
Set character string. Creates member Set"name"() (e.g., SetFilename(char *)). The macro assumes that the class member (name) is declared a type std::string.
Definition at line 281 of file igtlMacro.h.
#define igtlSetVectorMacro | ( | name, | |
type, | |||
count | |||
) |
General set vector macro creates a single method that copies specified number of values into object. Examples: void SetColor(c,3)
Definition at line 395 of file igtlMacro.h.
#define igtlStaticConstMacro | ( | name, | |
type, | |||
value | |||
) | static const type name = 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 116 of file igtlMacro.h.
#define igtlSuperclassTraitMacro | ( | traitnameType | ) | typedef typename Superclass::traitnameType traitnameType; |
Macro used to redefine a type from the superclass.
Definition at line 146 of file igtlMacro.h.
#define igtlTypeMacro | ( | thisClass, | |
superclass | |||
) |
Macro used to add standard methods to all classes, mainly type information.
Definition at line 486 of file igtlMacro.h.
#define igtlWarningMacro | ( | x | ) |
This macro is used to print warning information (i.e., unusual circumstance but not necessarily fatal.) Example usage looks like: igtlWarningMacro(<< "this is warning info" << this->SomeVariable);
Definition at line 531 of file igtlMacro.h.