BoundaryVTKWriter Class Referencefinal

#include <BoundaryVTKWriter.h>

+ Inheritance diagram for BoundaryVTKWriter:

Public Member Functions

 BoundaryVTKWriter (BoundaryHandler &boundaryHandler)
 Non-default constructor; sets the handler and fileCounter. More...
 
 BoundaryVTKWriter (const BoundaryVTKWriter &)=default
 Default copy constructor. More...
 
void writeVTK () const override
 writes a vtk file More...
 
std::string getName () const
 the name of the class in the restart file More...
 
- Public Member Functions inherited from BaseVTKWriter< BoundaryHandler >
 BaseVTKWriter (BoundaryHandler &handler)
 
 BaseVTKWriter (const BaseVTKWriter &other)
 
unsigned getFileCounter () const
 
void setFileCounter (unsigned fileCounter)
 
void setOutputDirectory (const std::string &dir)
 
const std::string & getOutputDirectory () const
 
std::string getFileName () const
 

Protected Member Functions

void writeVTKPoints (std::fstream &file) const
 writes the point data to the vtu file (i.e. the vertices of the mesh displayed in paraview) More...
 
void writeVTKPointData (std::fstream &file) const
 writes the point data to the vtu file (i.e. options how to color the boundarys displayed in paraview) More...
 
- Protected Member Functions inherited from BaseVTKWriter< BoundaryHandler >
std::fstream makeVTKFileWithHeader () const
 
void writeVTKFooterAndClose (std::fstream &file) const
 

Additional Inherited Members

- Protected Attributes inherited from BaseVTKWriter< BoundaryHandler >
BoundaryHandlerhandler_
 particle handler from which the particles should be written More...
 
unsigned int fileCounter
 
std::string outputDirectory_
 

Constructor & Destructor Documentation

◆ BoundaryVTKWriter() [1/2]

BoundaryVTKWriter::BoundaryVTKWriter ( BoundaryHandler boundaryHandler)
inlineexplicit

Non-default constructor; sets the handler and fileCounter.

19  : BaseVTKWriter(boundaryHandler)
20  {}
BaseVTKWriter(BoundaryHandler &handler)
Definition: BaseVTKWriter.h:22

◆ BoundaryVTKWriter() [2/2]

BoundaryVTKWriter::BoundaryVTKWriter ( const BoundaryVTKWriter )
default

Default copy constructor.

Member Function Documentation

◆ getName()

std::string BoundaryVTKWriter::getName ( ) const
inline

the name of the class in the restart file

36  {
37  return "BoundaryVTKWriter";
38  }

◆ writeVTK()

void BoundaryVTKWriter::writeVTK ( ) const
overridevirtual

writes a vtk file

Implements BaseVTKWriter< BoundaryHandler >.

9 {
10  std::fstream file = makeVTKFileWithHeader();
11 // file << "<Piece NumberOfPoints=\"" << handler_.getNumberOfObjects() << "\" NumberOfCells=\"" << 0 << "\">\n";
12  for (auto p: handler_) {
13  p->writeVTK(file);
14  }
16 }
float * p
Definition: Tutorial_Map_using.cpp:9
void writeVTKFooterAndClose(std::fstream &file) const
Definition: BaseVTKWriter.h:140
BoundaryHandler & handler_
particle handler from which the particles should be written
Definition: BaseVTKWriter.h:71
std::fstream makeVTKFileWithHeader() const
Definition: BaseVTKWriter.h:112

References BaseVTKWriter< BoundaryHandler >::handler_, BaseVTKWriter< BoundaryHandler >::makeVTKFileWithHeader(), p, and BaseVTKWriter< BoundaryHandler >::writeVTKFooterAndClose().

Referenced by DPMBase::writeVTKFiles().

◆ writeVTKPointData()

void BoundaryVTKWriter::writeVTKPointData ( std::fstream &  file) const
protected

writes the point data to the vtu file (i.e. options how to color the boundarys displayed in paraview)

◆ writeVTKPoints()

void BoundaryVTKWriter::writeVTKPoints ( std::fstream &  file) const
protected

writes the point data to the vtu file (i.e. the vertices of the mesh displayed in paraview)


The documentation for this class was generated from the following files: