106 mem+=(
mFile.get()==
null)?0:
mFile->getContentsMemorySize();
152 const tFlag& support,
153 const std::vector<tString>& scalarNames,
154 const std::vector<tString>& vectorNames)
override;
167 const tFlag& support,
169 const tReal* f)
override;
266 const std::valarray<tUInt>& neighborsNumber,
267 const std::valarray<tIndex>& neighborIndices,
280 const std::valarray<tUInt>& neighbors,
281 const std::valarray<tIndex>& neighborIndices)
const {
282 return writeConnectivity(file,nVertexCells,nEdgeCells,neighbors,neighborIndices,
"");
300 const tFlag& contentType,
305 const tReal* f)
const;
320 const tFlag& contentType,
324 const tReal* f)
const {
325 return writeField(file,t,contentType,name,
"",n,dim,f);
tUCInt tDimension
Definition: CORE_StdPtrField.h:567
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:94
this class describes a writing file
Definition: CORE_OutputFile.h:16
This class is describes a a network.
Definition: SM_Network.h:18
This class is a beam output interface for VTK / Paraview software.
Definition: SM_VTK.h:22
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_VTK.h:85
This class is a beam interface output for XMF format for paraview visualization software.
Definition: SM_XDMF.h:20
SM_XDMF(void)
create
Definition: SM_XDMF.cpp:6
virtual tBoolean writeConnectivity(CORE_OutputFile &file, const tIndex &nVertexCells, const tIndex &nEdgeCells, const std::valarray< tUInt > &neighbors, const std::valarray< tIndex > &neighborIndices) const
write the connectivity between vertices
Definition: SM_XDMF.h:278
static CORE_UniquePointer< SM_XDMF > New()
create an XDMF class
Definition: SM_XDMF.h:61
virtual ~SM_XDMF(void)
destroy
Definition: SM_XDMF.cpp:20
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_XDMF.h:101
void setFormat(const tString &f)
set the format of the data
Definition: SM_XDMF.h:211
virtual tBoolean writeContentFooter(const tIndex &t, const tFlag &support) override
write a content footer
Definition: SM_XDMF.cpp:130
virtual tBoolean writeGeometryFooter(const tIndex &t) override
write the geometry footer
Definition: SM_XDMF.cpp:110
virtual tBoolean writeGeometryData(const tIndex &t, const SM_Network &network) override
write the geometry data of the network
Definition: SM_XDMF.cpp:90
const tString & getExternalFileName() const
get the external file name to find data
Definition: SM_XDMF.h:231
const tString & getFormat() const
get the format of the data
Definition: SM_XDMF.h:225
tString mExternalFileName
Definition: SM_XDMF.h:30
virtual tBoolean writeGeometryHeader(const tIndex &t, const SM_Network &network) override
write the geometry header corresponding to the network
Definition: SM_XDMF.cpp:64
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_XDMF.h:89
static CORE_UniquePointer< SM_XDMF > New(const tString &format)
create an XDMF class
Definition: SM_XDMF.h:68
tString mName
Definition: SM_XDMF.h:29
virtual tBoolean open() override
open the vtkfile
Definition: SM_XDMF.cpp:26
virtual tBoolean writeField(CORE_OutputFile &file, const tIndex &t, const tFlag &contentType, const tString &name, const tString &tagName, const tIndex &n, const tDimension &dim, const tReal *f) const
write a field with name
Definition: SM_XDMF.cpp:305
virtual tBoolean writeVertices(CORE_OutputFile &file, const SM_Network &mesh)
write the vertices coordinates
Definition: SM_XDMF.h:251
tString mFormat
Definition: SM_XDMF.h:28
virtual tBoolean close(const tIndex &t) override
close the file for the time step t
Definition: SM_XDMF.h:191
virtual tBoolean open(const tIndex &t) override
open the vtk field for writing or appending at the time step
Definition: SM_XDMF.h:124
virtual tBoolean writeConnectivity(CORE_OutputFile &file, const tIndex &nVertexCells, const tIndex &nEdgeCells, const std::valarray< tUInt > &neighborsNumber, const std::valarray< tIndex > &neighborIndices, const tString &tagN) const
write the connectivity between vertices
Definition: SM_XDMF.cpp:223
virtual tBoolean writeContentData(const tIndex &t, const SM_Network &network, const tFlag &support, const tString &name, const tReal *f) override
write a content data
Definition: SM_XDMF.cpp:135
virtual tBoolean writeContentHeader(const tIndex &t, const tFlag &support, const std::vector< tString > &scalarNames, const std::vector< tString > &vectorNames) override
write a content header
Definition: SM_XDMF.cpp:115
void setExternalFileName(const tString &f)
set the external file to find the vector data
Definition: SM_XDMF.h:203
virtual tBoolean writeField(CORE_OutputFile &file, const tIndex &t, const tFlag &contentType, const tString &name, const tIndex &n, const tDimension &dim, const tReal *f) const
write a field with name
Definition: SM_XDMF.h:318
virtual tBoolean close() override
close the file
Definition: SM_XDMF.cpp:49
CORE_UniquePointer< CORE_OutputFile > mFile
Definition: SM_XDMF.h:34
virtual tBoolean writeVertices(CORE_OutputFile &file, const SM_Network &mesh, const tString &tag) const
write the vertices coordinates
Definition: SM_XDMF.cpp:179
typename std::unique_ptr< T, CORE_Object::Delete > CORE_UniquePointer
Definition: sp.h:8
#define tFlag
Definition: types.h:91
#define tIndex
Definition: types.h:157
#define tString
Definition: types.h:147
#define tMemSize
Definition: types.h:166
#define tBoolean
Definition: types.h:151
#define tReal
Definition: types.h:137