23#ifndef _MITOPOLOGYIJK_H
24#define _MITOPOLOGYIJK_H
28#include <Inventor/STL/sstream>
77 virtual bool isDead(
size_t SO_UNUSED_PARAM(i),
size_t SO_UNUSED_PARAM(j),
size_t SO_UNUSED_PARAM(k))
const {
return false; }
83 virtual std::ostream&
toStream(std::ostream& s)
const
85 s <<
"#mesh topology Ijk" << std::endl;
86 s <<
"#numCellsI" << std::endl;
87 s << getNumCellsI() << std::endl;
88 s <<
"#numCellsJ" << std::endl;
89 s << getNumCellsJ() << std::endl;
90 s <<
"#numCellsK" << std::endl;
91 s << getNumCellsK() << std::endl;
92 s <<
"#hasDeadCells" << std::endl;
96 s <<
"#deadCells:" << std::endl;
97 for (
size_t i=0; i<getNumCellsI(); i++)
99 for (
size_t j=0; j<getNumCellsJ(); j++)
101 for (
size_t k=0; k<getNumCellsK(); k++)
105 s <<
"#deadCell(" << i <<
"," << j <<
"," << k <<
")" << std::endl;
#define MESHVIZXLM_EXTR_API
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> List of cells interface.
virtual bool hasDeadCells() const
Returns true if the topology contains dead cells.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> List of volume cells int...
virtual std::ostream & toStream(std::ostream &s) const
Performs an output operation on a stream which is returned afterward.
virtual size_t getNumCellsJ() const =0
Returns the number of cells on the second logical axis.
virtual bool isDead(size_t i, size_t j, size_t k) const
Returns true if the cell of index (i,j,k) should be ignored.
virtual size_t getNumCellsI() const =0
Returns the number of cells on the first logical axis.
virtual size_t getNumCellsK() const =0
Returns the number of cells on the third logical axis.