dune-grid 2.9.0
Public Member Functions | List of all members
Dune::VTK::Corner< Cell > Class Template Reference

simple class representing a corner of a cell More...

#include <dune/grid/io/file/vtk/corner.hh>

Inheritance diagram for Dune::VTK::Corner< Cell >:
Inheritance graph

Public Member Functions

 Corner (const Cell &cell, unsigned duneIndex)
 construct a Corner More...
 
 Corner ()
 construct an invalid Corner More...
 
const Cell & cell () const
 get reference to the cell More...
 
void cell (const Cell &cell__)
 set a new cell More...
 
unsigned duneIndex () const
 get the index of the corner within the cell in Dune-numbering More...
 
void duneIndex (unsigned i)
 set the index of the corner within the cell in Dune-numbering More...
 
unsigned vtkIndex () const
 get the index of the corner within the cell in VTK-numbering More...
 
void vtkIndex (unsigned i)
 set the index of the corner within the cell in VTK-numbering More...
 

Detailed Description

template<typename Cell>
class Dune::VTK::Corner< Cell >

simple class representing a corner of a cell

Template Parameters
CellType of element this is a corner for. This can essentially be anything with a type() method, in particular an Entity or an Intersection.

Constructor & Destructor Documentation

◆ Corner() [1/2]

template<typename Cell >
Dune::VTK::Corner< Cell >::Corner ( const Cell &  cell,
unsigned  duneIndex 
)
inline

construct a Corner

Parameters
cellReference to the cell
duneIndexIndex of the corner within the element in Dune-numbering

◆ Corner() [2/2]

template<typename Cell >
Dune::VTK::Corner< Cell >::Corner ( )
inline

construct an invalid Corner

Member Function Documentation

◆ cell() [1/2]

template<typename Cell >
const Cell & Dune::VTK::Corner< Cell >::cell ( ) const
inline

get reference to the cell

◆ cell() [2/2]

template<typename Cell >
void Dune::VTK::Corner< Cell >::cell ( const Cell &  cell__)
inline

set a new cell

This also resets the index of the element to 0 (Dune-numbering), so if you want to set both element and index, set the cell first.

◆ duneIndex() [1/2]

template<typename Cell >
unsigned Dune::VTK::Corner< Cell >::duneIndex ( ) const
inline

get the index of the corner within the cell in Dune-numbering

◆ duneIndex() [2/2]

template<typename Cell >
void Dune::VTK::Corner< Cell >::duneIndex ( unsigned  i)
inline

set the index of the corner within the cell in Dune-numbering

◆ vtkIndex() [1/2]

template<typename Cell >
unsigned Dune::VTK::Corner< Cell >::vtkIndex ( ) const
inline

get the index of the corner within the cell in VTK-numbering

This requires that the cell is valid

◆ vtkIndex() [2/2]

template<typename Cell >
void Dune::VTK::Corner< Cell >::vtkIndex ( unsigned  i)
inline

set the index of the corner within the cell in VTK-numbering

This requires that the cell is valid


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