Go to the source code of this file.
Classes | |
class | igtl::OStringStream |
Namespaces | |
namespace | 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 859 of file igtlMacro.h.
#define IGTL_EXPORT_IGTLCommon | ( | c, | |
x, | |||
n | |||
) | IGTL_EXPORT_TEMPLATE(IGTLCommon_EXPORT, c, x, n) |
Definition at line 906 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 855 of file igtlMacro.h.
#define IGTL_IMPORT_IGTLCommon | ( | c, | |
x, | |||
n | |||
) | IGTL_IMPORT_TEMPLATE(IGTLCommon_EXPORT, c, x, n) |
Definition at line 908 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 857 of file igtlMacro.h.
#define IGTL_LOCATION "unknown" |
Definition at line 609 of file igtlMacro.h.
#define IGTL_NO_RETURN |
Definition at line 943 of file igtlMacro.h.
#define IGTL_TEMPLATE_1 | ( | x1 | ) | x1 |
Definition at line 865 of file igtlMacro.h.
#define IGTL_TEMPLATE_2 | ( | x1, | |
x2 | |||
) | x1,x2 |
Definition at line 866 of file igtlMacro.h.
#define IGTL_TEMPLATE_3 | ( | x1, | |
x2, | |||
x3 | |||
) | x1,x2,x3 |
Definition at line 867 of file igtlMacro.h.
#define IGTL_TEMPLATE_4 | ( | x1, | |
x2, | |||
x3, | |||
x4 | |||
) | x1,x2,x3,x4 |
Definition at line 868 of file igtlMacro.h.
#define IGTL_TEMPLATE_5 | ( | x1, | |
x2, | |||
x3, | |||
x4, | |||
x5 | |||
) | x1,x2,x3,x4,x5 |
Definition at line 869 of file igtlMacro.h.
#define IGTL_TEMPLATE_6 | ( | x1, | |
x2, | |||
x3, | |||
x4, | |||
x5, | |||
x6 | |||
) | x1,x2,x3,x4,x5,x6 |
Definition at line 870 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 871 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 872 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 873 of file igtlMacro.h.
#define IGTL_TEMPLATE_DO_NOT_INSTANTIATE 0 |
Definition at line 757 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXPLICIT 0 |
Definition at line 927 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXPORT | ( | x | ) | IGTL_TEMPLATE_EXPORT_DELAY(x) |
Definition at line 770 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXPORT_DELAY | ( | x | ) | template IGTL_TEMPLATE_##x; |
Definition at line 771 of file igtlMacro.h.
#define IGTL_TEMPLATE_EXTERN 0 |
Definition at line 760 of file igtlMacro.h.
#define IGTL_TEMPLATE_IMPORT | ( | x | ) |
Definition at line 795 of file igtlMacro.h.
#define IGTL_TEMPLATE_IMPORT_WORKS 0 |
Definition at line 796 of file igtlMacro.h.
#define IGTL_TEMPLATE_TXX !(IGTL_TEMPLATE_CXX || IGTL_TEMPLATE_TYPE) |
Definition at line 886 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 390 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 516 of file igtlMacro.h.
#define igtlErrorMacro | ( | x | ) |
Definition at line 621 of file igtlMacro.h.
#define igtlExceptionMacro | ( | x | ) |
Definition at line 612 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 470 of file igtlMacro.h.
#define igtlGenericOutputMacro | ( | x | ) |
Definition at line 634 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 236 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 370 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 248 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 380 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 273 of file igtlMacro.h.
#define igtlGetInputMacro | ( | name, | |
type, | |||
number | |||
) |
Get an input. This defines the Get"name"Input() method
Definition at line 153 of file igtlMacro.h.
#define igtlGetMacro | ( | name, | |
type | |||
) |
Get built-in type. Creates member Get"name"() (e.g., GetVisibility());
Definition at line 225 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 344 of file igtlMacro.h.
#define igtlGetStaticConstMacro | ( | name | ) | (Self::name) |
Definition at line 125 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 307 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 412 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 727 of file igtlMacro.h.
#define igtlLegacyMacro | ( | method | ) | method |
Definition at line 706 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 729 of file igtlMacro.h.
#define igtlLogMacro | ( | x, | |
y | |||
) |
Definition at line 648 of file igtlMacro.h.
#define igtlLogMacroStatic | ( | obj, | |
x, | |||
y | |||
) |
Definition at line 657 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 434 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 74 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 316 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 356 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 168 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 191 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 259 of file igtlMacro.h.
#define igtlSetInputMacro | ( | name, | |
type, | |||
number | |||
) |
Set an input. This defines the Set"name"Input() method
Definition at line 129 of file igtlMacro.h.
#define igtlSetMacro | ( | name, | |
type | |||
) |
Set built-in type. Creates member Set"name"() (e.g., SetVisibility());
Definition at line 213 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 331 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 284 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 398 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 119 of file igtlMacro.h.
#define igtlSuperclassTraitMacro | ( | traitnameType | ) | typedef typename Superclass::traitnameType traitnameType; |
Macro used to redefine a type from the superclass.
Definition at line 149 of file igtlMacro.h.
#define igtlTypeMacro | ( | thisClass, | |
superclass | |||
) |
Macro used to add standard methods to all classes, mainly type information.
Definition at line 489 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 534 of file igtlMacro.h.