#include "vtkExtensionsConfigure.h"
#include <stddef.h>
#include <sys/types.h>
#include <limits.h>
Include dependency graph for vtkExtensionsTypes.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
struct | vtkInt64Type |
The int64 types are known to be 64 bits each. More... | |
struct | vtkMaterial |
struct | vtkPackedMaterial |
Color data types. | |
typedef vtkUint32Type | vtkColorWord |
A color is a 32 bit unsigned integer with four components: R, G, B, and A. | |
typedef vtkUint8Type | vtkColorByte |
The four components (channels) are 8 bit unsigned untegers. | |
typedef vtkColorWord | vtkPackedColor |
A color is a 32 bit unsigned integer with four components: R, G, B, and A. | |
vtkExtensionsTypes | |
Defines portable exact integral types. vtkExtensionsTypes the definitions of portable exact integral type as well as other related types, constants, and macros.
| |
VTK_EXTENSIONS_BEGIN_EXTERN_C typedef unsigned short | vtkXMLChType |
Define our version of the XML character. | |
Defines | |
#define | VTK_EXTENSIONS_TEST_BIT(_map, _bit) ((_map)[(_bit)>>VTK_EXTENSIONS_BITS_PER_LONG_LOG2] & (1L << ((_bit) & (VTK_EXTENSIONS_BITS_PER_LONG-1)))) |
#define | VTK_EXTENSIONS_SET_BIT(_map, _bit) ((_map)[(_bit)>>VTK_EXTENSIONS_BITS_PER_LONG_LOG2] |= (1L << ((_bit) & (VTK_EXTENSIONS_BITS_PER_LONG-1)))) |
#define | VTK_EXTENSIONS_CLEAR_BIT(_map, _bit) ((_map)[(_bit)>>VTK_EXTENSIONS_BITS_PER_LONG_LOG2] &= ~(1L << ((_bit) & (VTK_EXTENSIONS_BITS_PER_LONG-1)))) |
#define | VTK_EXTENSIONS_CEILING_LOG2(_log2, _n) |
Compute the log of the least power of 2 greater than or equal to _n . | |
#define | VTK_EXTENSIONS_FLOOR_LOG2(_log2, _n) |
Compute the log of the greatest power of 2 less than or equal to _n . | |
#define | VTK_EXTENSIONS_RGB_MAX VTK_EXTENSIONS_UINT8_MAX |
Brightest value for R,G,B chars. | |
#define | VTK_EXTENSIONS_MAKE_RGBA(_r, _g, _b, _a) ((vtkColorWord)(((_r) << 24) | ((_g) << 16) | ((_b) << 8) | (_a))) |
Make an RGBA vtkColorWord. | |
#define | VTK_EXTENSIONS_MAKE_RGB(_r, _g, _b) VTK_EXTENSIONS_MAKE_RGBA((_r), (_g), (_b), VTK_EXTENSIONS_RGB_MAX) |
Make an RGB vtkColorWord. | |
#define | VTK_EXTENSIONS_MAKE_ABGR(_a, _b, _g, _r) ((vtkColorWord)(((_a) << 24) | ((_b) << 16) | ((_g) << 8) | (_r))) |
Make an ABGR vtkColorWord. | |
#define | VTK_EXTENSIONS_MAKE_BGR(_b, _g, _r) VTK_EXTENSIONS_MAKE_ABGR(VTK_EXTENSIONS_RGB_MAX, (_b), (_g), (_r)) |
Make a BGR vtkColorWord. | |
#define | VTK_EXTENSIONS_RGBONLY(_rgba) ((_rgba) & 0xffffff00) |
Get value of vtkColorWord's RGB component exclusive of alpha component. | |
#define | VTK_EXTENSIONS_BGRONLY(_abgr) ((_abgr) & 0x00ffffff) |
Get value of vtkColorWord's BGR component exclusive of alpha component. | |
#define | VTK_EXTENSIONS_GET_COLORBYTE(_word, _n) ((vtkColorByte)(((_word) >> ((3-(_n))<<3)) & 0xff)) |
#define | VTK_EXTENSIONS_COLORBYTE_REF(_word, _n) (((vtkColorByte *)(&(_word)))[(_n)]) |
reference a byte within an RGBA vtkColorWord. | |
#define | VTK_EXTENSIONS_COLORBYTE_PTR(_word, _n) (&(VTK_EXTENSIONS_COLORBYTE_REF((_word), (_n)))) |
get a pointer to a vtkColorByte within an RGBA vtkColorWord. | |
#define | VTK_EXTENSIONS_CLAMP_COLORBYTE(_c) |
Typedefs | |
typedef vtkUint8Type | vtkPackedBoolType |
Use vtkPackedBoolType within structs. | |
typedef int | vtkstd_bool |
Define a "vtkstd_bool" type. | |
typedef vtkUint32Type | vtkResultType |
Generic result data type. | |
typedef unsigned long | vtkBitmapType |
A vtkBitmapType is a long integer that can be used for bitmaps. | |
Enumerations | |
enum | vtkStatusType { VTK_EXTENSIONS_FAILURE = -1, VTK_EXTENSIONS_SUCCESS = 0 } |
Used by routines that have single point of failure or special status return. More... |
|
Get value of vtkColorWord's BGR component exclusive of alpha component.
Definition at line 452 of file vtkExtensionsTypes.h. |
|
Bit masking macros (n must be <= 31 to be portable).
Definition at line 317 of file vtkExtensionsTypes.h. |
|
Bit masking macros (n must be <= 31 to be portable).
Definition at line 317 of file vtkExtensionsTypes.h. |
|
Bit masking macros (n must be <= 31 to be portable).
Definition at line 318 of file vtkExtensionsTypes.h. |
|
Bit masking macros (n must be <= 31 to be portable).
Definition at line 318 of file vtkExtensionsTypes.h. |
|
Value: Compute the log of the least power of 2 greater than or equal to _n .
The result is returned in Definition at line 334 of file vtkExtensionsTypes.h. |
|
Value:
Definition at line 466 of file vtkExtensionsTypes.h. |
|
Definition at line 327 of file vtkExtensionsTypes.h. |
|
get a pointer to a vtkColorByte within an RGBA vtkColorWord.
Definition at line 463 of file vtkExtensionsTypes.h. |
|
reference a byte within an RGBA vtkColorWord.
Definition at line 459 of file vtkExtensionsTypes.h. |
|
Macros for checking state and args upon entering interface boundaries.
Definition at line 494 of file vtkExtensionsTypes.h. |
|
Macros for checking state and args upon entering interface boundaries.
Definition at line 503 of file vtkExtensionsTypes.h. |
|
Macros for checking state and args upon entering interface boundaries.
Definition at line 500 of file vtkExtensionsTypes.h. |
|
Macros for checking state and args upon entering interface boundaries.
Definition at line 497 of file vtkExtensionsTypes.h. |
|
Macros for checking state and args upon entering interface boundaries.
Definition at line 506 of file vtkExtensionsTypes.h. |
|
Macros for checking the trueness of an expression passed in within an interface implementation. These need to be compiled regardless of the VTK_EXTENSIONS_BUILD_DEBUG flag. Definition at line 487 of file vtkExtensionsTypes.h. |
|
Macros for checking state and args upon entering interface boundaries.
Definition at line 509 of file vtkExtensionsTypes.h. |
|
Value: Macros for checking the trueness of an expression passed in within an interface implementation. These need to be compiled regardless of the VTK_EXTENSIONS_BUILD_DEBUG flag. Definition at line 479 of file vtkExtensionsTypes.h. |
|
Value: Compute the log of the greatest power of 2 less than or equal to _n .
The result is returned in
Definition at line 358 of file vtkExtensionsTypes.h. |
|
Get one byte value from an ABGR vtkColorWord.
Definition at line 443 of file vtkExtensionsTypes.h. |
|
Get one byte value from an ABGR vtkColorWord.
Definition at line 441 of file vtkExtensionsTypes.h. |
|
Get one byte value from an ABGR vtkColorWord.
Definition at line 439 of file vtkExtensionsTypes.h. |
|
Get one byte value from an ABGR vtkColorWord.
Definition at line 437 of file vtkExtensionsTypes.h. |
|
Definition at line 455 of file vtkExtensionsTypes.h. Referenced by vtkAbstractPaletteMaterial::ConvertColor(), and vtkPalette::InsertColor(). |
|
Get one byte value from an RGBA vtkColorWord.
Definition at line 431 of file vtkExtensionsTypes.h. Referenced by vtkPaletteElement::ConvertColor(). |
|
Get one byte value from an RGBA vtkColorWord.
Definition at line 429 of file vtkExtensionsTypes.h. Referenced by vtkPaletteElement::ConvertColor(). |
|
Get one byte value from an RGBA vtkColorWord.
Definition at line 427 of file vtkExtensionsTypes.h. Referenced by vtkPaletteElement::ConvertColor(). |
|
Get one byte value from an RGBA vtkColorWord.
Definition at line 425 of file vtkExtensionsTypes.h. Referenced by vtkPaletteElement::ConvertColor(). |
|
The maximum and minimum values of a vtkInt16Type or vtkUint16Type.
Definition at line 128 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt16Type or vtkUint16Type.
Definition at line 129 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt32Type or vtkUint32Type.
Definition at line 152 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt32Type or vtkUint32Type.
Definition at line 153 of file vtkExtensionsTypes.h. |
|
Use these macros to do 64bit safe pointer conversions.
Definition at line 377 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt8Type or vtkUint8Type.
Definition at line 111 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt8Type or vtkUint8Type.
Definition at line 112 of file vtkExtensionsTypes.h. |
|
Make an ABGR vtkColorWord.
Definition at line 417 of file vtkExtensionsTypes.h. |
|
Make a BGR vtkColorWord.
Definition at line 420 of file vtkExtensionsTypes.h. |
|
Make an RGB vtkColorWord.
Definition at line 413 of file vtkExtensionsTypes.h. |
|
Make an RGBA vtkColorWord.
Definition at line 410 of file vtkExtensionsTypes.h. Referenced by vtkPaletteElement::ConvertColor(), and vtkPaletteElement::ConvertMaterial(). |
|
Use these macros to do 64bit safe pointer conversions.
Definition at line 376 of file vtkExtensionsTypes.h. |
|
Brightest value for R,G,B chars.
Definition at line 407 of file vtkExtensionsTypes.h. Referenced by vtkPaletteElement::ConvertColor(), vtkPaletteElement::ConvertMaterial(), and vtkPalette::InsertColor(). |
|
Get value of vtkColorWord's RGB component exclusive of alpha component.
Definition at line 448 of file vtkExtensionsTypes.h. |
|
Definition at line 325 of file vtkExtensionsTypes.h. |
|
Definition at line 79 of file vtkExtensionsTypes.h. |
|
Definition at line 80 of file vtkExtensionsTypes.h. |
|
Definition at line 323 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt16Type or vtkUint16Type.
Definition at line 130 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt32Type or vtkUint32Type.
Definition at line 154 of file vtkExtensionsTypes.h. |
|
The maximum and minimum values of a vtkInt8Type or vtkUint8Type.
Definition at line 113 of file vtkExtensionsTypes.h. Referenced by vtkAbstractPaletteMaterial::ConvertColor(), and vtkPalette::InsertColor(). |
|
|
|
A
Definition at line 321 of file vtkExtensionsTypes.h. |
|
Use vtkBoolType for variables and parameter types. Use VTK_FALSE and VTK_TRUE for clarity of target type in assignments and actual arguments. Use 'if (bool)', 'while (!bool)', '(bool) ? x : y', etc. to test booleans just as you would C int-valued conditions. Definition at line 251 of file vtkExtensionsTypes.h. Referenced by vtkStringOps::CanWriteFile(), vtkStringOps::CreateDirectory(), vtkStringOps::FileJoin(), vtkStringOps::IsAbsoluteURI(), vtkTraversal::IsEqual(), and vtkTraversal::IsSame(). |
|
Some general typedefs that are defined for internal flexibility. Note that vtkUTF16ChType is fixed at 16 bits, whereas vtkXMLChType floats in size per platform, to whatever is the native wide char format there. vtkUCS4ChType is fixed at 32 bits. The types we defined them in terms of are defined per compiler, using whatever types are the right ones for them to get these 16/32 bit sizes. The following definitions are compiler-specific. The C standard does not guarantee that wchar_t has at least 16 bits, so wchar_t is no less portable than unsigned short! All should be unsigned values to avoid sign extension during bit mask & shift operations. Definition at line 305 of file vtkExtensionsTypes.h. |
|
The four components (channels) are 8 bit unsigned untegers.
Definition at line 385 of file vtkExtensionsTypes.h. |
|
A color is a 32 bit unsigned integer with four components: R, G, B, and A.
Definition at line 383 of file vtkExtensionsTypes.h. Referenced by vtkPaletteElement::ConvertColor(), and vtkPalette::FindColor(). |
|
Some general typedefs that are defined for internal flexibility. Note that vtkUTF16ChType is fixed at 16 bits, whereas vtkXMLChType floats in size per platform, to whatever is the native wide char format there. vtkUCS4ChType is fixed at 32 bits. The types we defined them in terms of are defined per compiler, using whatever types are the right ones for them to get these 16/32 bit sizes. The following definitions are compiler-specific. The C standard does not guarantee that wchar_t has at least 16 bits, so wchar_t is no less portable than unsigned short! All should be unsigned values to avoid sign extension during bit mask & shift operations. Definition at line 308 of file vtkExtensionsTypes.h. |
|
A type for representing byte offsets from some location.
Definition at line 231 of file vtkExtensionsTypes.h. |
|
A type for representing byte offsets from some location.
Definition at line 232 of file vtkExtensionsTypes.h. |
|
Use vtkPackedBoolType within structs. Use where bitfields are not desireable but minimum and consistant overhead matters. Definition at line 262 of file vtkExtensionsTypes.h. |
|
A color is a 32 bit unsigned integer with four components: R, G, B, and A.
Definition at line 387 of file vtkExtensionsTypes.h. |
|
A type for pointer difference. Variables of this type are suitable for storing a pointer or pointer sutraction. Definition at line 240 of file vtkExtensionsTypes.h. |
|
Generic result data type.
Definition at line 287 of file vtkExtensionsTypes.h. |
|
|
Definition at line 78 of file vtkExtensionsTypes.h. Referenced by vtkStringOps::GetRelativePrefix(), vtkStringOps::HashN(), vtkStringOps::LastIndexNotOf(), and vtkStringOps::LastIndexOf(). |
|
Define a "vtkstd_bool" type. This should be used as the return type of comparison operators to keep STL happy on all platforms. It should not be used elsewhere. Definition at line 272 of file vtkExtensionsTypes.h. |
|
Some general typedefs that are defined for internal flexibility. Note that vtkUTF16ChType is fixed at 16 bits, whereas vtkXMLChType floats in size per platform, to whatever is the native wide char format there. vtkUCS4ChType is fixed at 32 bits. The types we defined them in terms of are defined per compiler, using whatever types are the right ones for them to get these 16/32 bit sizes. The following definitions are compiler-specific. The C standard does not guarantee that wchar_t has at least 16 bits, so wchar_t is no less portable than unsigned short! All should be unsigned values to avoid sign extension during bit mask & shift operations. Definition at line 309 of file vtkExtensionsTypes.h. |
|
Some general typedefs that are defined for internal flexibility. Note that vtkUTF16ChType is fixed at 16 bits, whereas vtkXMLChType floats in size per platform, to whatever is the native wide char format there. vtkUCS4ChType is fixed at 32 bits. The types we defined them in terms of are defined per compiler, using whatever types are the right ones for them to get these 16/32 bit sizes. The following definitions are compiler-specific. The C standard does not guarantee that wchar_t has at least 16 bits, so wchar_t is no less portable than unsigned short! All should be unsigned values to avoid sign extension during bit mask & shift operations. Definition at line 311 of file vtkExtensionsTypes.h. |
|
Definition at line 192 of file vtkExtensionsTypes.h. |
|
A type for pointer difference. Variables of this type are suitable for storing a pointer or pointer sutraction. Definition at line 241 of file vtkExtensionsTypes.h. |
|
Some general typedefs that are defined for internal flexibility. Note that vtkUTF16ChType is fixed at 16 bits, whereas vtkXMLChType floats in size per platform, to whatever is the native wide char format there. vtkUCS4ChType is fixed at 32 bits. The types we defined them in terms of are defined per compiler, using whatever types are the right ones for them to get these 16/32 bit sizes. The following definitions are compiler-specific. The C standard does not guarantee that wchar_t has at least 16 bits, so wchar_t is no less portable than unsigned short! All should be unsigned values to avoid sign extension during bit mask & shift operations. Definition at line 307 of file vtkExtensionsTypes.h. Referenced by vtkStringOps::ToUTF16::data(), vtkStringOps::ToLatin1::ToLatin1(), and vtkStringOps::ToUTF8::ToUTF8(). |
|
Some general typedefs that are defined for internal flexibility. Note that vtkUTF16ChType is fixed at 16 bits, whereas vtkXMLChType floats in size per platform, to whatever is the native wide char format there. vtkUCS4ChType is fixed at 32 bits. The types we defined them in terms of are defined per compiler, using whatever types are the right ones for them to get these 16/32 bit sizes. The following definitions are compiler-specific. The C standard does not guarantee that wchar_t has at least 16 bits, so wchar_t is no less portable than unsigned short! All should be unsigned values to avoid sign extension during bit mask & shift operations. Definition at line 310 of file vtkExtensionsTypes.h. |
|
Some general typedefs that are defined for internal flexibility. Note that vtkUTF16ChType is fixed at 16 bits, whereas vtkXMLChType floats in size per platform, to whatever is the native wide char format there. vtkUCS4ChType is fixed at 32 bits. The types we defined them in terms of are defined per compiler, using whatever types are the right ones for them to get these 16/32 bit sizes. The following definitions are compiler-specific. The C standard does not guarantee that wchar_t has at least 16 bits, so wchar_t is no less portable than unsigned short! All should be unsigned values to avoid sign extension during bit mask & shift operations. Definition at line 306 of file vtkExtensionsTypes.h. Referenced by vtkStringOps::ToUTF8::data(), vtkStringOps::ToLatin1::ToLatin1(), and vtkStringOps::ToUTF16::ToUTF16(). |
|
Used by routines that have single point of failure or special status return.
Definition at line 278 of file vtkExtensionsTypes.h. |
|
Define our version of the XML character.
Definition at line 65 of file vtkExtensionsTypes.h. |