VTK
Macros | Functions
vtkSetGet.h File Reference
#include "vtkCommonCoreModule.h"
#include "vtkSystemIncludes.h"
#include <math.h>
Include dependency graph for vtkSetGet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define vtkInternalQuoteMacro(x)   #x
 
#define vtkQuoteMacro(x)   vtkInternalQuoteMacro(x)
 
#define vtkImageScalarTypeNameMacro(type)
 
#define vtkSetMacro(name, type)
 
#define vtkGetMacro(name, type)
 
#define vtkSetStringMacro(name)
 
#define vtkGetStringMacro(name)
 
#define vtkSetClampMacro(name, type, min, max)
 
#define vtkSetObjectBodyMacro(name, type, args)
 
#define vtkSetObjectMacro(name, type)
 
#define vtkSetObjectImplementationMacro(class, name, type)   vtkCxxSetObjectMacro(class,name,type)
 
#define vtkCxxSetObjectMacro(class, name, type)
 
#define vtkGetNewMacro(name, type)
 
#define vtkGetObjectMacro(name, type)
 
#define vtkBooleanMacro(name, type)
 
#define vtkSetVector2Macro(name, type)
 
#define vtkGetVector2Macro(name, type)
 
#define vtkSetVector3Macro(name, type)
 
#define vtkGetVector3Macro(name, type)
 
#define vtkSetVector4Macro(name, type)
 
#define vtkGetVector4Macro(name, type)
 
#define vtkSetVector6Macro(name, type)
 
#define vtkGetVector6Macro(name, type)
 
#define vtkSetVectorMacro(name, type, count)
 
#define vtkGetVectorMacro(name, type, count)
 
#define vtkGenericWarningMacro(x)
 
#define vtkDebugMacro(x)   vtkDebugWithObjectMacro(this,x)
 
#define vtkWarningMacro(x)   vtkWarningWithObjectMacro(this,x)
 
#define vtkErrorMacro(x)   vtkErrorWithObjectMacro(this,x)
 
#define vtkErrorWithObjectMacro(self, x)
 
#define vtkWarningWithObjectMacro(self, x)
 
#define vtkDebugWithObjectMacro(self, x)
 
#define vtkNotUsed(x)
 
#define vtkMaybeUnused(reason)
 
#define vtkWorldCoordinateMacro(name)
 
#define vtkViewportCoordinateMacro(name)
 
#define vtkAbstractTypeMacroWithNewInstanceType(thisClass, superclass, instanceType)
 
#define vtkAbstractTypeMacro(thisClass, superclass)   vtkAbstractTypeMacroWithNewInstanceType(thisClass, superclass, thisClass)
 
#define vtkTypeMacro(thisClass, superclass)
 
#define vtkInstantiatorNewMacro(thisClass)
 
#define vtkTemplateMacroCase(typeN, type, call)   case typeN: { typedef type VTK_TT; call; }; break
 
#define vtkTemplateMacro(call)
 
#define vtkExtendedTemplateMacro(call)
 
#define vtkArrayIteratorTemplateMacroCase(typeN, type, call)   vtkTemplateMacroCase(typeN, vtkArrayIteratorTemplate<type>, call)
 
#define vtkArrayIteratorTemplateMacro(call)
 
#define vtkTemplateMacroCase_ll(typeN, type, call)
 
#define vtkArrayIteratorTemplateMacroCase_ll(typeN, type, call)
 
#define vtkTemplateMacroCase_si64(typeN, type, call)
 
#define vtkArrayIteratorTemplateMacroCase_si64(typeN, type, call)
 
#define vtkTemplateMacroCase_ui64(typeN, type, call)
 
#define vtkArrayIteratorTemplateMacroCase_ui64(typeN, type, call)
 
#define VTK_LEGACY(method)   method
 
#define VTK_LEGACY_BODY(method, version)   vtkGenericWarningMacro(#method " was deprecated for " version " and will be removed in a future version.")
 
#define VTK_LEGACY_REPLACED_BODY(method, version, replace)   vtkGenericWarningMacro(#method " was deprecated for " version " and will be removed in a future version. Use " #replace " instead.")
 
#define VTK_WRAP_EXTERN
 
#define VTK_FALLTHROUGH   ((void)0)
 

Functions

VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayText (const char *)
 
VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayErrorText (const char *)
 
VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayWarningText (const char *)
 
VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayGenericWarningText (const char *)
 
VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayDebugText (const char *)
 

Macro Definition Documentation

§ vtkInternalQuoteMacro

#define vtkInternalQuoteMacro (   x)    #x

Definition at line 47 of file vtkSetGet.h.

§ vtkQuoteMacro

#define vtkQuoteMacro (   x)    vtkInternalQuoteMacro(x)

Definition at line 48 of file vtkSetGet.h.

§ vtkImageScalarTypeNameMacro

#define vtkImageScalarTypeNameMacro (   type)
Value:
(((type) == VTK_VOID) ? "void" : \
(((type) == VTK_BIT) ? "bit" : \
(((type) == VTK_CHAR) ? "char" : \
(((type) == VTK_SIGNED_CHAR) ? "signed char" : \
(((type) == VTK_UNSIGNED_CHAR) ? "unsigned char" : \
(((type) == VTK_SHORT) ? "short" : \
(((type) == VTK_UNSIGNED_SHORT) ? "unsigned short" : \
(((type) == VTK_INT) ? "int" : \
(((type) == VTK_UNSIGNED_INT) ? "unsigned int" : \
(((type) == VTK_LONG) ? "long" : \
(((type) == VTK_UNSIGNED_LONG) ? "unsigned long" : \
(((type) == VTK_LONG_LONG) ? "long long" : \
(((type) == VTK_UNSIGNED_LONG_LONG) ? "unsigned long long" : \
(((type) == VTK___INT64) ? "__int64" : \
(((type) == VTK_UNSIGNED___INT64) ? "unsigned __int64" : \
(((type) == VTK_FLOAT) ? "float" : \
(((type) == VTK_DOUBLE) ? "double" : \
(((type) == VTK_ID_TYPE) ? "idtype" : \
(((type) == VTK_STRING) ? "string" : \
(((type) == VTK_UNICODE_STRING) ? "unicode string" : \
(((type) == VTK_VARIANT) ? "variant" : \
(((type) == VTK_OBJECT) ? "object" : \
"Undefined"))))))))))))))))))))))
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
#define VTK_VARIANT
Definition: vtkType.h:56
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
#define VTK_VOID
Definition: vtkType.h:24
#define VTK_OBJECT
Definition: vtkType.h:57
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
#define VTK_UNICODE_STRING
Definition: vtkType.h:60
#define VTK_LONG_LONG
Definition: vtkType.h:45
#define VTK_UNSIGNED___INT64
Definition: vtkType.h:53
#define VTK_STRING
Definition: vtkType.h:41
#define VTK_DOUBLE
Definition: vtkType.h:36
#define VTK_FLOAT
Definition: vtkType.h:35
#define VTK_SHORT
Definition: vtkType.h:29
#define VTK_CHAR
Definition: vtkType.h:26
#define VTK_LONG
Definition: vtkType.h:33
#define VTK_SIGNED_CHAR
Definition: vtkType.h:27
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
#define VTK_BIT
Definition: vtkType.h:25
#define VTK_ID_TYPE
Definition: vtkType.h:37
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
#define VTK_UNSIGNED_LONG_LONG
Definition: vtkType.h:46
#define VTK_INT
Definition: vtkType.h:31
#define VTK___INT64
Definition: vtkType.h:49

Definition at line 51 of file vtkSetGet.h.

§ vtkSetMacro

#define vtkSetMacro (   name,
  type 
)
Value:
virtual void Set##name (type _arg) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " #name " to " << _arg); \
if (this->name != _arg) \
{ \
this->name = _arg; \
this->Modified(); \
} \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 79 of file vtkSetGet.h.

§ vtkGetMacro

#define vtkGetMacro (   name,
  type 
)
Value:
virtual type Get##name () { \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " of " << this->name ); \
return this->name; \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 93 of file vtkSetGet.h.

§ vtkSetStringMacro

#define vtkSetStringMacro (   name)
Value:
virtual void Set##name (const char* _arg) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " << #name " to " << (_arg?_arg:"(null)") ); \
if ( this->name == NULL && _arg == NULL) { return;} \
if ( this->name && _arg && (!strcmp(this->name,_arg))) { return;} \
delete [] this->name; \
if (_arg) \
{ \
size_t n = strlen(_arg) + 1; \
char *cp1 = new char[n]; \
const char *cp2 = (_arg); \
this->name = cp1; \
do { *cp1++ = *cp2++; } while ( --n ); \
} \
else \
{ \
this->name = NULL; \
} \
this->Modified(); \
}
GLuint const GLchar * name
Definition: vtkgl.h:11983
GLclampd n
Definition: vtkgl.h:14370

Definition at line 104 of file vtkSetGet.h.

§ vtkGetStringMacro

#define vtkGetStringMacro (   name)
Value:
virtual char* Get##name () { \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " of " << (this->name?this->name:"(null)")); \
return this->name; \
}
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 130 of file vtkSetGet.h.

§ vtkSetClampMacro

#define vtkSetClampMacro (   name,
  type,
  min,
  max 
)
Value:
virtual void Set##name (type _arg) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " << #name " to " << _arg ); \
if (this->name != (_arg<min?min:(_arg>max?max:_arg))) \
{ \
this->name = (_arg<min?min:(_arg>max?max:_arg)); \
this->Modified(); \
} \
} \
virtual type Get##name##MinValue () \
{ \
return min; \
} \
virtual type Get##name##MaxValue () \
{ \
return max; \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983
#define max(a, b)

Definition at line 143 of file vtkSetGet.h.

§ vtkSetObjectBodyMacro

#define vtkSetObjectBodyMacro (   name,
  type,
  args 
)
Value:
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this \
<< "): setting " << #name " to " << args ); \
if (this->name != args) \
{ \
type* tempSGMacroVar = this->name; \
this->name = args; \
if (this->name != NULL) { this->name->Register(this); } \
if (tempSGMacroVar != NULL) \
{ \
tempSGMacroVar->UnRegister(this); \
} \
this->Modified(); \
} \
}
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 169 of file vtkSetGet.h.

§ vtkSetObjectMacro

#define vtkSetObjectMacro (   name,
  type 
)
Value:
virtual void Set##name (type* _arg) \
{ \
vtkSetObjectBodyMacro(name,type,_arg); \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 191 of file vtkSetGet.h.

§ vtkSetObjectImplementationMacro

#define vtkSetObjectImplementationMacro (   class,
  name,
  type 
)    vtkCxxSetObjectMacro(class,name,type)

Definition at line 206 of file vtkSetGet.h.

§ vtkCxxSetObjectMacro

#define vtkCxxSetObjectMacro (   class,
  name,
  type 
)
Value:
void class::Set##name (type* _arg) \
{ \
vtkSetObjectBodyMacro(name,type,_arg); \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 209 of file vtkSetGet.h.

§ vtkGetNewMacro

#define vtkGetNewMacro (   name,
  type 
)
Value:
virtual type *Get##name () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this \
<< "): returning " #name " address " \
<< this->name.GetPointer() ); \
return this->name.GetPointer(); \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 219 of file vtkSetGet.h.

§ vtkGetObjectMacro

#define vtkGetObjectMacro (   name,
  type 
)
Value:
virtual type *Get##name () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this \
<< "): returning " #name " address " << this->name ); \
return this->name; \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 232 of file vtkSetGet.h.

§ vtkBooleanMacro

#define vtkBooleanMacro (   name,
  type 
)
Value:
virtual void name##On () { this->Set##name(static_cast<type>(1));} \
virtual void name##Off () { this->Set##name(static_cast<type>(0));}
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 244 of file vtkSetGet.h.

§ vtkSetVector2Macro

#define vtkSetVector2Macro (   name,
  type 
)
Value:
virtual void Set##name (type _arg1, type _arg2) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " << #name " to (" << _arg1 << "," << _arg2 << ")"); \
if ((this->name[0] != _arg1)||(this->name[1] != _arg2)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->Modified(); \
} \
} \
void Set##name (type _arg[2]) \
{ \
this->Set##name (_arg[0], _arg[1]); \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 254 of file vtkSetGet.h.

§ vtkGetVector2Macro

#define vtkGetVector2Macro (   name,
  type 
)
Value:
virtual type *Get##name () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
} \
virtual void Get##name (type &_arg1, type &_arg2) \
{ \
_arg1 = this->name[0]; \
_arg2 = this->name[1]; \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " = (" << _arg1 << "," << _arg2 << ")"); \
} \
virtual void Get##name (type _arg[2]) \
{ \
this->Get##name (_arg[0], _arg[1]);\
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 270 of file vtkSetGet.h.

§ vtkSetVector3Macro

#define vtkSetVector3Macro (   name,
  type 
)
Value:
virtual void Set##name (type _arg1, type _arg2, type _arg3) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " << #name " to (" << _arg1 << "," << _arg2 << "," << _arg3 << ")"); \
if ((this->name[0] != _arg1)||(this->name[1] != _arg2)||(this->name[2] != _arg3)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->name[2] = _arg3; \
this->Modified(); \
} \
} \
virtual void Set##name (type _arg[3]) \
{ \
this->Set##name (_arg[0], _arg[1], _arg[2]);\
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 287 of file vtkSetGet.h.

§ vtkGetVector3Macro

#define vtkGetVector3Macro (   name,
  type 
)
Value:
virtual type *Get##name () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
} \
virtual void Get##name (type &_arg1, type &_arg2, type &_arg3) \
{ \
_arg1 = this->name[0]; \
_arg2 = this->name[1]; \
_arg3 = this->name[2]; \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " = (" << _arg1 << "," << _arg2 << "," << _arg3 << ")"); \
} \
virtual void Get##name (type _arg[3]) \
{ \
this->Get##name (_arg[0], _arg[1], _arg[2]);\
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 304 of file vtkSetGet.h.

§ vtkSetVector4Macro

#define vtkSetVector4Macro (   name,
  type 
)
Value:
virtual void Set##name (type _arg1, type _arg2, type _arg3, type _arg4) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " << #name " to (" << _arg1 << "," << _arg2 << "," << _arg3 << "," << _arg4 << ")"); \
if ((this->name[0] != _arg1)||(this->name[1] != _arg2)||(this->name[2] != _arg3)||(this->name[3] != _arg4)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->name[2] = _arg3; \
this->name[3] = _arg4; \
this->Modified(); \
} \
} \
virtual void Set##name (type _arg[4]) \
{ \
this->Set##name (_arg[0], _arg[1], _arg[2], _arg[3]);\
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 322 of file vtkSetGet.h.

§ vtkGetVector4Macro

#define vtkGetVector4Macro (   name,
  type 
)
Value:
virtual type *Get##name () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
} \
virtual void Get##name (type &_arg1, type &_arg2, type &_arg3, type &_arg4) \
{ \
_arg1 = this->name[0]; \
_arg2 = this->name[1]; \
_arg3 = this->name[2]; \
_arg4 = this->name[3]; \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " = (" << _arg1 << "," << _arg2 << "," << _arg3 << "," << _arg4 << ")"); \
} \
virtual void Get##name (type _arg[4]) \
{ \
this->Get##name (_arg[0], _arg[1], _arg[2], _arg[3]);\
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 341 of file vtkSetGet.h.

§ vtkSetVector6Macro

#define vtkSetVector6Macro (   name,
  type 
)
Value:
virtual void Set##name (type _arg1, type _arg2, type _arg3, type _arg4, type _arg5, type _arg6) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " << #name " to (" << _arg1 << "," << _arg2 << "," << _arg3 << "," << _arg4 << "," << _arg5 << "," << _arg6 << ")"); \
if ((this->name[0] != _arg1)||(this->name[1] != _arg2)||(this->name[2] != _arg3)||(this->name[3] != _arg4)||(this->name[4] != _arg5)||(this->name[5] != _arg6)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->name[2] = _arg3; \
this->name[3] = _arg4; \
this->name[4] = _arg5; \
this->name[5] = _arg6; \
this->Modified(); \
} \
} \
virtual void Set##name (type _arg[6]) \
{ \
this->Set##name (_arg[0], _arg[1], _arg[2], _arg[3], _arg[4], _arg[5]);\
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 360 of file vtkSetGet.h.

§ vtkGetVector6Macro

#define vtkGetVector6Macro (   name,
  type 
)
Value:
virtual type *Get##name () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
} \
virtual void Get##name (type &_arg1, type &_arg2, type &_arg3, type &_arg4, type &_arg5, type &_arg6) \
{ \
_arg1 = this->name[0]; \
_arg2 = this->name[1]; \
_arg3 = this->name[2]; \
_arg4 = this->name[3]; \
_arg5 = this->name[4]; \
_arg6 = this->name[5]; \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " = (" << _arg1 << "," << _arg2 << "," << _arg3 << "," << _arg4 << "," << _arg5 <<"," << _arg6 << ")"); \
} \
virtual void Get##name (type _arg[6]) \
{ \
this->Get##name (_arg[0], _arg[1], _arg[2], _arg[3], _arg[4], _arg[5]);\
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 380 of file vtkSetGet.h.

§ vtkSetVectorMacro

#define vtkSetVectorMacro (   name,
  type,
  count 
)
Value:
virtual void Set##name(type data[]) \
{ \
int i; \
for (i=0; i<count; i++) { if ( data[i] != this->name[i] ) { break; }} \
if ( i < count ) \
{ \
for (i=0; i<count; i++) { this->name[i] = data[i]; }\
this->Modified(); \
} \
}
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint GLuint GLsizei count
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 406 of file vtkSetGet.h.

§ vtkGetVectorMacro

#define vtkGetVectorMacro (   name,
  type,
  count 
)
Value:
virtual type *Get##name () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
} \
virtual void Get##name (type data[count]) \
{ \
for (int i=0; i<count; i++) { data[i] = this->name[i]; }\
}
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
GLuint GLuint GLsizei count
Definition: vtkgl.h:11315
GLuint const GLchar * name
Definition: vtkgl.h:11983

Definition at line 424 of file vtkSetGet.h.

§ vtkGenericWarningMacro

#define vtkGenericWarningMacro (   x)
Value:
vtkOStreamWrapper::EndlType endl; \
vtkOStrStreamWrapper vtkmsg; \
vtkmsg << "Generic Warning: In " __FILE__ ", line " << __LINE__ << "\n" x \
<< "\n\n"; \
vtkOutputWindowDisplayGenericWarningText(vtkmsg.str());\
vtkmsg.rdbuf()->freeze(0);}}
static int GetGlobalWarningDisplay()
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
static void UseEndl(const EndlType &)

Definition at line 450 of file vtkSetGet.h.

§ vtkDebugMacro

#define vtkDebugMacro (   x)    vtkDebugWithObjectMacro(this,x)

Definition at line 464 of file vtkSetGet.h.

§ vtkWarningMacro

#define vtkWarningMacro (   x)    vtkWarningWithObjectMacro(this,x)

Definition at line 471 of file vtkSetGet.h.

§ vtkErrorMacro

#define vtkErrorMacro (   x)    vtkErrorWithObjectMacro(this,x)

Definition at line 478 of file vtkSetGet.h.

§ vtkErrorWithObjectMacro

#define vtkErrorWithObjectMacro (   self,
 
)
Value:
{ \
{ \
vtkOStreamWrapper::EndlType endl; \
vtkOStrStreamWrapper vtkmsg; \
vtkmsg << "ERROR: In " __FILE__ ", line " << __LINE__ \
<< "\n" << self->GetClassName() << " (" << self \
<< "): " x << "\n\n"; \
if ( self->HasObserver("ErrorEvent") ) \
{ \
self->InvokeEvent("ErrorEvent", vtkmsg.str()); \
} \
else \
{ \
vtkOutputWindowDisplayErrorText(vtkmsg.str()); \
} \
vtkmsg.rdbuf()->freeze(0); vtkObject::BreakOnError(); \
} \
}
static int GetGlobalWarningDisplay()
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
static void BreakOnError()
static void UseEndl(const EndlType &)

Definition at line 485 of file vtkSetGet.h.

§ vtkWarningWithObjectMacro

#define vtkWarningWithObjectMacro (   self,
 
)
Value:
{ \
{ \
vtkOStreamWrapper::EndlType endl; \
vtkOStrStreamWrapper vtkmsg; \
vtkmsg << "Warning: In " __FILE__ ", line " << __LINE__ \
<< "\n" << self->GetClassName() << " (" << self \
<< "): " x << "\n\n"; \
if ( self->HasObserver("WarningEvent") ) \
{ \
self->InvokeEvent("WarningEvent", vtkmsg.str()); \
} \
else \
{ \
vtkOutputWindowDisplayWarningText(vtkmsg.str()); \
} \
vtkmsg.rdbuf()->freeze(0); \
} \
}
static int GetGlobalWarningDisplay()
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
static void UseEndl(const EndlType &)

Definition at line 511 of file vtkSetGet.h.

§ vtkDebugWithObjectMacro

#define vtkDebugWithObjectMacro (   self,
 
)
Value:
{ \
if (self->GetDebug() && vtkObject::GetGlobalWarningDisplay()) \
{ \
vtkOStreamWrapper::EndlType endl; \
vtkOStrStreamWrapper vtkmsg; \
vtkmsg << "Debug: In " __FILE__ ", line " << __LINE__ << "\n" \
<< self->GetClassName() << " (" << self << "): " x << "\n\n"; \
vtkOutputWindowDisplayDebugText(vtkmsg.str()); \
vtkmsg.rdbuf()->freeze(0); \
} \
}
static int GetGlobalWarningDisplay()
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
static void UseEndl(const EndlType &)

Definition at line 536 of file vtkSetGet.h.

§ vtkNotUsed

#define vtkNotUsed (   x)

Definition at line 557 of file vtkSetGet.h.

§ vtkMaybeUnused

#define vtkMaybeUnused (   reason)

Definition at line 569 of file vtkSetGet.h.

§ vtkWorldCoordinateMacro

#define vtkWorldCoordinateMacro (   name)
Value:
virtual vtkCoordinate *Get##name##Coordinate () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " #name "Coordinate address " << this->name##Coordinate ); \
return this->name##Coordinate; \
} \
virtual void Set##name(double x[3]) {this->Set##name(x[0],x[1],x[2]);} \
virtual void Set##name(double x, double y, double z) \
{ \
this->name##Coordinate->SetValue(x,y,z); \
} \
virtual double *Get##name() \
{ \
return this->name##Coordinate->GetValue(); \
}
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
GLdouble GLdouble z
Definition: vtkgl.h:11754
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
GLuint const GLchar * name
Definition: vtkgl.h:11983
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
Definition: vtkCoordinate.h:69

Definition at line 572 of file vtkSetGet.h.

§ vtkViewportCoordinateMacro

#define vtkViewportCoordinateMacro (   name)
Value:
virtual vtkCoordinate *Get##name##Coordinate () \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " #name "Coordinate address " << this->name##Coordinate ); \
return this->name##Coordinate; \
} \
virtual void Set##name(double x[2]) {this->Set##name(x[0],x[1]);} \
virtual void Set##name(double x, double y) \
{ \
this->name##Coordinate->SetValue(x,y); \
} \
virtual double *Get##name() \
{ \
return this->name##Coordinate->GetValue(); \
}
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
GLuint const GLchar * name
Definition: vtkgl.h:11983
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
Definition: vtkCoordinate.h:69

Definition at line 588 of file vtkSetGet.h.

§ vtkAbstractTypeMacroWithNewInstanceType

#define vtkAbstractTypeMacroWithNewInstanceType (   thisClass,
  superclass,
  instanceType 
)
Value:
typedef superclass Superclass; \
private: \
virtual const char* GetClassNameInternal() const { return #thisClass; } \
public: \
static int IsTypeOf(const char *type) \
{ \
if ( !strcmp(#thisClass,type) ) \
{ \
return 1; \
} \
return superclass::IsTypeOf(type); \
} \
virtual int IsA(const char *type) \
{ \
return this->thisClass::IsTypeOf(type); \
} \
static thisClass* SafeDownCast(vtkObjectBase *o) \
{ \
if ( o && o->IsA(#thisClass) ) \
{ \
return static_cast<thisClass *>(o); \
} \
return NULL;\
} \
instanceType *NewInstance() const \
{ \
return instanceType::SafeDownCast(this->NewInstanceInternal()); \
}
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59

Definition at line 606 of file vtkSetGet.h.

§ vtkAbstractTypeMacro

#define vtkAbstractTypeMacro (   thisClass,
  superclass 
)    vtkAbstractTypeMacroWithNewInstanceType(thisClass, superclass, thisClass)

Definition at line 637 of file vtkSetGet.h.

§ vtkTypeMacro

#define vtkTypeMacro (   thisClass,
  superclass 
)
Value:
vtkAbstractTypeMacro(thisClass, superclass) \
protected: \
virtual vtkObjectBase *NewInstanceInternal() const \
{ \
return thisClass::New(); \
} \
public:
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
#define vtkAbstractTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:637

Definition at line 642 of file vtkSetGet.h.

§ vtkInstantiatorNewMacro

#define vtkInstantiatorNewMacro (   thisClass)
Value:
extern vtkObject* vtkInstantiator##thisClass##New(); \
vtkObject* vtkInstantiator##thisClass##New() \
{ \
return thisClass::New(); \
}
abstract base class for most VTK objects
Definition: vtkObject.h:61
create an instance of any VTK class from its name.

Definition at line 654 of file vtkSetGet.h.

§ vtkTemplateMacroCase

#define vtkTemplateMacroCase (   typeN,
  type,
  call 
)    case typeN: { typedef type VTK_TT; call; }; break

Definition at line 671 of file vtkSetGet.h.

§ vtkTemplateMacro

#define vtkTemplateMacro (   call)
Value:
vtkTemplateMacroCase(VTK_FLOAT, float, call); \
vtkTemplateMacroCase_ll(VTK_LONG_LONG, long long, call) \
vtkTemplateMacroCase_ll(VTK_UNSIGNED_LONG_LONG, unsigned long long, call) \
vtkTemplateMacroCase_si64(VTK___INT64, __int64, call) \
vtkTemplateMacroCase_ui64(VTK_UNSIGNED___INT64, unsigned __int64, call) \
vtkTemplateMacroCase(VTK_ID_TYPE, vtkIdType, call); \
vtkTemplateMacroCase(VTK_LONG, long, call); \
vtkTemplateMacroCase(VTK_UNSIGNED_LONG, unsigned long, call); \
vtkTemplateMacroCase(VTK_INT, int, call); \
vtkTemplateMacroCase(VTK_UNSIGNED_INT, unsigned int, call); \
vtkTemplateMacroCase(VTK_SHORT, short, call); \
vtkTemplateMacroCase(VTK_UNSIGNED_SHORT, unsigned short, call); \
vtkTemplateMacroCase(VTK_CHAR, char, call); \
vtkTemplateMacroCase(VTK_SIGNED_CHAR, signed char, call); \
vtkTemplateMacroCase(VTK_UNSIGNED_CHAR, unsigned char, call)
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
int vtkIdType
Definition: vtkType.h:275
#define VTK_LONG_LONG
Definition: vtkType.h:45
#define VTK_UNSIGNED___INT64
Definition: vtkType.h:53
#define VTK_DOUBLE
Definition: vtkType.h:36
#define VTK_FLOAT
Definition: vtkType.h:35
#define VTK_SHORT
Definition: vtkType.h:29
#define VTK_CHAR
Definition: vtkType.h:26
#define VTK_LONG
Definition: vtkType.h:33
#define VTK_SIGNED_CHAR
Definition: vtkType.h:27
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
#define VTK_ID_TYPE
Definition: vtkType.h:37
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
#define VTK_UNSIGNED_LONG_LONG
Definition: vtkType.h:46
#define vtkTemplateMacroCase(typeN, type, call)
Definition: vtkSetGet.h:671
#define VTK_INT
Definition: vtkType.h:31
#define VTK___INT64
Definition: vtkType.h:49

Definition at line 673 of file vtkSetGet.h.

§ vtkExtendedTemplateMacro

#define vtkExtendedTemplateMacro (   call)
Value:
vtkTemplateMacroCase(VTK_STRING, vtkStdString, call)
#define vtkTemplateMacro(call)
Definition: vtkSetGet.h:673
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
#define VTK_STRING
Definition: vtkType.h:41

Definition at line 692 of file vtkSetGet.h.

§ vtkArrayIteratorTemplateMacroCase

#define vtkArrayIteratorTemplateMacroCase (   typeN,
  type,
  call 
)    vtkTemplateMacroCase(typeN, vtkArrayIteratorTemplate<type>, call)

Definition at line 716 of file vtkSetGet.h.

§ vtkArrayIteratorTemplateMacro

#define vtkArrayIteratorTemplateMacro (   call)
Value:
vtkArrayIteratorTemplateMacroCase(VTK_FLOAT, float, call); \
vtkArrayIteratorTemplateMacroCase_ll(VTK_LONG_LONG, long long, call); \
vtkArrayIteratorTemplateMacroCase_ll(VTK_UNSIGNED_LONG_LONG, unsigned long long, call);\
vtkArrayIteratorTemplateMacroCase_si64(VTK___INT64, __int64, call); \
vtkArrayIteratorTemplateMacroCase_ui64(VTK_UNSIGNED___INT64, unsigned __int64, call); \
vtkArrayIteratorTemplateMacroCase(VTK_ID_TYPE, vtkIdType, call); \
vtkArrayIteratorTemplateMacroCase(VTK_LONG, long, call); \
vtkArrayIteratorTemplateMacroCase(VTK_UNSIGNED_LONG, unsigned long, call); \
vtkArrayIteratorTemplateMacroCase(VTK_INT, int, call); \
vtkArrayIteratorTemplateMacroCase(VTK_UNSIGNED_INT, unsigned int, call); \
vtkArrayIteratorTemplateMacroCase(VTK_SHORT, short, call); \
vtkArrayIteratorTemplateMacroCase(VTK_UNSIGNED_SHORT, unsigned short, call); \
vtkArrayIteratorTemplateMacroCase(VTK_CHAR, char, call); \
vtkArrayIteratorTemplateMacroCase(VTK_SIGNED_CHAR, signed char, call); \
vtkArrayIteratorTemplateMacroCase(VTK_UNSIGNED_CHAR, unsigned char, call); \
vtkArrayIteratorTemplateMacroCase(VTK_STRING, vtkStdString, call); \
vtkTemplateMacroCase(VTK_BIT, vtkBitArrayIterator, call);
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
Iterator for vtkBitArray. This iterator iterates over a vtkBitArray. It uses the double interface to ...
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
int vtkIdType
Definition: vtkType.h:275
#define VTK_LONG_LONG
Definition: vtkType.h:45
#define VTK_UNSIGNED___INT64
Definition: vtkType.h:53
#define VTK_STRING
Definition: vtkType.h:41
#define VTK_DOUBLE
Definition: vtkType.h:36
#define VTK_FLOAT
Definition: vtkType.h:35
#define vtkArrayIteratorTemplateMacroCase(typeN, type, call)
Definition: vtkSetGet.h:716
#define VTK_SHORT
Definition: vtkType.h:29
#define VTK_CHAR
Definition: vtkType.h:26
#define VTK_LONG
Definition: vtkType.h:33
#define VTK_SIGNED_CHAR
Definition: vtkType.h:27
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
#define VTK_BIT
Definition: vtkType.h:25
#define VTK_ID_TYPE
Definition: vtkType.h:37
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
#define VTK_UNSIGNED_LONG_LONG
Definition: vtkType.h:46
#define VTK_INT
Definition: vtkType.h:31
#define VTK___INT64
Definition: vtkType.h:49

Definition at line 718 of file vtkSetGet.h.

§ vtkTemplateMacroCase_ll

#define vtkTemplateMacroCase_ll (   typeN,
  type,
  call 
)

Definition at line 745 of file vtkSetGet.h.

§ vtkArrayIteratorTemplateMacroCase_ll

#define vtkArrayIteratorTemplateMacroCase_ll (   typeN,
  type,
  call 
)

Definition at line 746 of file vtkSetGet.h.

§ vtkTemplateMacroCase_si64

#define vtkTemplateMacroCase_si64 (   typeN,
  type,
  call 
)

Definition at line 756 of file vtkSetGet.h.

§ vtkArrayIteratorTemplateMacroCase_si64

#define vtkArrayIteratorTemplateMacroCase_si64 (   typeN,
  type,
  call 
)

Definition at line 757 of file vtkSetGet.h.

§ vtkTemplateMacroCase_ui64

#define vtkTemplateMacroCase_ui64 (   typeN,
  type,
  call 
)

Definition at line 768 of file vtkSetGet.h.

§ vtkArrayIteratorTemplateMacroCase_ui64

#define vtkArrayIteratorTemplateMacroCase_ui64 (   typeN,
  type,
  call 
)

Definition at line 769 of file vtkSetGet.h.

§ VTK_LEGACY

#define VTK_LEGACY (   method)    method

Definition at line 801 of file vtkSetGet.h.

§ VTK_LEGACY_BODY

#define VTK_LEGACY_BODY (   method,
  version 
)    vtkGenericWarningMacro(#method " was deprecated for " version " and will be removed in a future version.")

Definition at line 826 of file vtkSetGet.h.

§ VTK_LEGACY_REPLACED_BODY

#define VTK_LEGACY_REPLACED_BODY (   method,
  version,
  replace 
)    vtkGenericWarningMacro(#method " was deprecated for " version " and will be removed in a future version. Use " #replace " instead.")

Definition at line 828 of file vtkSetGet.h.

§ VTK_WRAP_EXTERN

#define VTK_WRAP_EXTERN

Definition at line 834 of file vtkSetGet.h.

§ VTK_FALLTHROUGH

#define VTK_FALLTHROUGH   ((void)0)

Definition at line 848 of file vtkSetGet.h.

Function Documentation

§ vtkOutputWindowDisplayText()

VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayText ( const char *  )

§ vtkOutputWindowDisplayErrorText()

VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayErrorText ( const char *  )

§ vtkOutputWindowDisplayWarningText()

VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayWarningText ( const char *  )

§ vtkOutputWindowDisplayGenericWarningText()

VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayGenericWarningText ( const char *  )

§ vtkOutputWindowDisplayDebugText()

VTKCOMMONCORE_EXPORT void vtkOutputWindowDisplayDebugText ( const char *  )