ug4
|
provides a grid and access to the coordinates of the vertices More...
#include <geometry.h>
Public Types | |
typedef MathVector< dim > | vector_t |
Public Member Functions | |
virtual vector_t | element_center (Edge *e) const =0 |
virtual vector_t | element_center (Face *e) const =0 |
virtual vector_t | element_center (Vertex *e) const =0 |
virtual vector_t | element_center (Volume *e) const =0 |
Grid & | grid () const |
IGeometry (Grid &g) | |
virtual vector_t | pos (Vertex *vrt) const =0 |
virtual const IAttachment & | position_attachment () const =0 |
virtual int | position_attachment_dim () const =0 |
virtual void | set_pos (Vertex *vrt, const vector_t &p)=0 |
virtual | ~IGeometry () |
Private Attributes | |
Grid & | m_grid |
provides a grid and access to the coordinates of the vertices
The class serves as a base class for wrappers around grid coordinates. It allows for the implementation of fixed-dim classes which can operate on coordinates arbitrary dimension.
Vertex coordinates of the fixed dimension 'dim' can be accessed through the method 'pos' and can be set through the method 'set_pos'.
For code that has to operate on the original position attachment, the following methods are provided: The dimension of the original 'attached' coordinates can be accessed through 'position_attachment_dim'. The attachement for those original coordinates can be accessed through 'position_attachment'.
If 'attachmentDim == position_attachment_dim()', then the return value of 'position_attachment' must always be castable to 'Attachment<MathVector<attachmentDim> >'.
typedef MathVector<dim> ug::IGeometry< dim >::vector_t |
|
inline |
|
inlinevirtual |
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
Referenced by ug::RasterLayersProjector::new_vertex_impl().
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
|
inline |
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
Referenced by ug::bp_newton_start_pos(), and ug::Refine().
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
|
pure virtual |
Implemented in ug::Geometry< dim, attachmentDim >.
|
private |
Referenced by ug::IGeometry< dim >::grid().