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)
 

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
 

Constructor & Destructor Documentation

◆ BoundaryVTKWriter() [1/2]

BoundaryVTKWriter::BoundaryVTKWriter ( BoundaryHandler boundaryHandler)
inlineexplicit

Non-default constructor; sets the handler and fileCounter.

41  : BaseVTKWriter(boundaryHandler)
42  {}
BaseVTKWriter(BoundaryHandler &handler)
Definition: BaseVTKWriter.h:44

◆ 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

58  {
59  return "BoundaryVTKWriter";
60  }

◆ writeVTK()

void BoundaryVTKWriter::writeVTK ( ) const
overridevirtual

writes a vtk file

Implements BaseVTKWriter< BoundaryHandler >.

30 {
31  std::fstream file = makeVTKFileWithHeader();
32 // file << "<Piece NumberOfPoints=\"" << handler_.getNumberOfObjects() << "\" NumberOfCells=\"" << 0 << "\">\n";
33  for (auto p: handler_) {
34  p->writeVTK(file);
35  }
37 }
void writeVTKFooterAndClose(std::fstream &file) const
Definition: BaseVTKWriter.h:123
BoundaryHandler & handler_
particle handler from which the particles should be written
Definition: BaseVTKWriter.h:72
std::fstream makeVTKFileWithHeader() const
Definition: BaseVTKWriter.h:80

References BaseVTKWriter< BoundaryHandler >::handler_, BaseVTKWriter< BoundaryHandler >::makeVTKFileWithHeader(), 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: