VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkMPIPixelTT.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 #ifndef __vtkMPIPixelTT_h 00016 #define __vtkMPIPixelTT_h 00017 00018 #include "vtkType.h" // for vtk types 00019 #include "vtkMPI.h" 00020 00021 // Description: 00022 // Traits class for converting from vtk data type enum 00023 // to the appropriate C or MPI datatype. 00024 template<typename T> class vtkMPIPixelTT; 00025 00026 //BTX 00027 #define vtkMPIPixelTTMacro1(_ctype) \ 00028 template<> \ 00029 class vtkMPIPixelTT<_ctype> \ 00030 { \ 00031 public: \ 00032 static MPI_Datatype MPIType; \ 00033 static int VTKType; \ 00034 }; 00035 00036 vtkMPIPixelTTMacro1(void) 00037 vtkMPIPixelTTMacro1(char) 00038 vtkMPIPixelTTMacro1(signed char) 00039 vtkMPIPixelTTMacro1(unsigned char) 00040 vtkMPIPixelTTMacro1(short) 00041 vtkMPIPixelTTMacro1(unsigned short) 00042 vtkMPIPixelTTMacro1(int) 00043 vtkMPIPixelTTMacro1(unsigned int) 00044 vtkMPIPixelTTMacro1(long) 00045 vtkMPIPixelTTMacro1(unsigned long) 00046 vtkMPIPixelTTMacro1(float) 00047 vtkMPIPixelTTMacro1(double) 00048 //vtkMPIPixelTTMacro1(vtkIdType) 00049 #ifdef VTK_TYPE_USE_LONG_LONG 00050 vtkMPIPixelTTMacro1(long long) 00051 vtkMPIPixelTTMacro1(unsigned long long) 00052 #endif 00053 #ifdef VTK_TYPE_USE___INT64 00054 vtkMPIPixelTTMacro1(__int64) 00055 # ifdef VTK_TYPE_CONVERT_UI64_TO_DOUBLE 00056 vtkMPIPixelTTMacro1(unsigned __int64) 00057 # endif 00058 #endif 00059 //ETX 00060 #endif 00061 // VTK-HeaderTest-Exclude: vtkMPIPixelTT.h