58 inline static SP::EMM_VTK
New() {
67 IS_32BIT_ENABLED=isEnabled;
77 return getVTKType(CORE_Object::getTypeName<T>());
161 const tFlag& contentType,
162 const vector<tString>& vectorName,
163 const vector<tString>& scalarName)
const;
168 const tFlag& contentType)
const;
194 const T* array)
const {
195 return writeField<T>(file,name,isUniform,n,dim,startIndex,endIndex,inc,array,0,
null);
223 const T* weight)
const;
tBoolean writeContentFooter(ofstream &file, const tFlag &contentType) const
write a cell content footer
Definition: EMM_VTK.cpp:117
tBoolean writeContentHeader(ofstream &file, const tFlag &contentType, const vector< tString > &vectorName, const vector< tString > &scalarName) const
write a content header
Definition: EMM_VTK.cpp:84
tBoolean writeField(ofstream &file, const tString &name, const tBoolean &isUniform, const tUIndex &n, const tUSInt &dim, const tUIndex &startIndex, const tUIndex &endIndex, const tUIndex &inc, const T *array) const
write an array of T type in file
Definition: EMM_VTK.h:186
tBoolean writeHeader(ofstream &file) const
write vtk file header
Definition: EMM_VTK.cpp:52
tBoolean writeGrid3dHeader(ofstream &file, const tReal &Px, const tReal &Py, const tReal &Pz, const tUIndex &Nx, const tUIndex &Ny, const tUIndex &Nz, const tReal &Dx, const tReal &Dy, const tReal &Dz) const
write grid image header
Definition: EMM_VTK.cpp:65
This class is a I/O output class for VTK / Paraviwe file.
Definition: EMM_VTK.h:25
#define tUSInt
Definition: types.h:28
#define tBoolean
Definition: types.h:139
static void setIs32BitEnabled(const tBoolean &isEnabled)
set if the 32 bit is enabled
Definition: EMM_VTK.h:66
#define null
Definition: types.h:144
static tBoolean IS_32BIT_ENABLED
Definition: EMM_VTK.h:32
tBoolean writeGrid3dFooter(ofstream &file) const
write grid image footer
Definition: EMM_VTK.cpp:76
tBoolean writeFooter(ofstream &file) const
write vtk file footer
Definition: EMM_VTK.cpp:59
tString getVTKType() const
return the VTK type of the template Type
Definition: EMM_VTK.h:76
#define tUIndex
Definition: types.h:126
static SP::EMM_VTK New()
create an VTK class
Definition: EMM_VTK.h:58
tBoolean writeGrid3dHeader(ofstream &file, const tUIndex &nx, const tUIndex &ny, const tUIndex &nz, const tReal &dx, const tReal &dy, const tReal &dz) const
write grid image header
Definition: EMM_VTK.h:140
abstract base class for most classes.
Definition: CORE_Object.h:53
#define tString
Definition: types.h:135
virtual ~EMM_VTK(void)
destroy
Definition: EMM_VTK.cpp:13
static T toVTKNumber(const tString &vtkType, const T &value)
turn the value into vtk type
Definition: EMM_VTK.h:231
EMM_VTK(void)
create
Definition: EMM_VTK.cpp:9
#define tReal
Definition: types.h:118
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141
#define tFlag
Definition: types.h:74