MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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. More...
 
void writeVTKPointData (std::fstream &file) const
 writes the point data to the vtu file (i.e. 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
 

Detailed Description

Definition at line 33 of file BoundaryVTKWriter.h.

Constructor & Destructor Documentation

BoundaryVTKWriter::BoundaryVTKWriter ( BoundaryHandler boundaryHandler)
inlineexplicit

Non-default constructor; sets the handler and fileCounter.

Definition at line 41 of file BoundaryVTKWriter.h.

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

Default copy constructor.

Member Function Documentation

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

the name of the class in the restart file

Definition at line 57 of file BoundaryVTKWriter.h.

58  {
59  return "BoundaryVTKWriter";
60  }
void BoundaryVTKWriter::writeVTK ( ) const
overridevirtual

writes a vtk file

Implements BaseVTKWriter< BoundaryHandler >.

Definition at line 29 of file BoundaryVTKWriter.cc.

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

Referenced by DPMBase::writeVTKFiles().

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 }
BoundaryHandler & handler_
particle handler from which the particles should be written
Definition: BaseVTKWriter.h:72
std::fstream makeVTKFileWithHeader() const
void writeVTKFooterAndClose(std::fstream &file) const
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)

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: