|
OOFEM 3.0
|
#include <geotoolbox.h>
Classes | |
| class | PolygonEdgeIterator |
| class | PolygonVertexIterator |
Public Member Functions | |
| Polygon () | |
| void | addVertex (Vertex v) |
| double | computeVolume () const |
| int | testPoint (double x, double y) const |
| double | pointDistance (double x, double y) const |
| void | clear () |
| GraphicObj * | draw (oofegGraphicContext &, bool filled, int layer=OOFEG_DEBUG_LAYER) |
Private Attributes | |
| std ::list< Vertex > | vertices |
Class representing 2D polygon. Polygon is represented as a sequence of vertices. THe services for adding vertices, computing volume, testing if point is inside polygon are provided. Also iterators over polygon vertices and edges are provided. This class is a part of geometry toolbox.
Definition at line 91 of file geotoolbox.h.
|
inline |
Definition at line 95 of file geotoolbox.h.
Referenced by oofem::Polygon::PolygonVertexIterator::init(), oofem::Polygon::PolygonEdgeIterator::PolygonEdgeIterator(), and oofem::Polygon::PolygonVertexIterator::PolygonVertexIterator().
|
inline |
Definition at line 96 of file geotoolbox.h.
References vertices.
Referenced by oofem::Graph::clip(), oofem::TR1_2D_CBS::formMaterialVolumePoly(), oofem::TR1_2D_SUPG2::formMaterialVolumePoly(), oofem::TR1_2D_SUPG2_AXI::formMaterialVolumePoly(), oofem::TR1_2D_SUPG::formMaterialVolumePoly(), oofem::TR1_2D_CBS::formMyVolumePoly(), oofem::TR1_2D_SUPG2::formMyVolumePoly(), oofem::TR1_2D_SUPG2_AXI::formMyVolumePoly(), oofem::TR1_2D_SUPG::formMyVolumePoly(), oofem::TR1_2D_CBS::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG2::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG2_AXI::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG2::updateVolumePolygons(), and oofem::TR1_2D_SUPG2_AXI::updateVolumePolygons().
|
inline |
Definition at line 100 of file geotoolbox.h.
References vertices.
Referenced by oofem::Graph::clip(), oofem::TR1_2D_CBS::formMaterialVolumePoly(), oofem::TR1_2D_SUPG2::formMaterialVolumePoly(), oofem::TR1_2D_SUPG2_AXI::formMaterialVolumePoly(), oofem::TR1_2D_SUPG::formMaterialVolumePoly(), oofem::TR1_2D_CBS::formMyVolumePoly(), oofem::TR1_2D_SUPG2::formMyVolumePoly(), oofem::TR1_2D_SUPG2_AXI::formMyVolumePoly(), oofem::TR1_2D_SUPG::formMyVolumePoly(), oofem::TR1_2D_CBS::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG2::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG2_AXI::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG::formVolumeInterfacePoly(), oofem::TR1_2D_SUPG2::updateVolumePolygons(), and oofem::TR1_2D_SUPG2_AXI::updateVolumePolygons().
| double Polygon::computeVolume | ( | ) | const |
Definition at line 72 of file geotoolbox.C.
References oofem::Vertex::coords.
Referenced by oofem::TR1_2D_CBS::computeLEPLICVolumeFraction(), oofem::TR1_2D_SUPG2::computeLEPLICVolumeFraction(), oofem::TR1_2D_SUPG2_AXI::computeLEPLICVolumeFraction(), oofem::TR1_2D_SUPG::computeLEPLICVolumeFraction(), oofem::LEPlic::doInterfaceRemapping(), oofem::TR1_2D_CBS::truncateMatVolume(), oofem::TR1_2D_SUPG2::truncateMatVolume(), oofem::TR1_2D_SUPG2_AXI::truncateMatVolume(), and oofem::TR1_2D_SUPG::truncateMatVolume().
| GraphicObj * Polygon::draw | ( | oofegGraphicContext & | gc, |
| bool | filled, | ||
| int | layer = OOFEG_DEBUG_LAYER ) |
Definition at line 152 of file geotoolbox.C.
References oofem::Vertex::coords, and gc.
Referenced by oofem::LEPlic::doInterfaceRemapping(), oofem::Quad10_2D_SUPG::drawScalar(), oofem::TR1_2D_SUPG2::drawScalar(), oofem::TR1_2D_SUPG2_AXI::drawScalar(), oofem::TR1_2D_SUPG::drawScalar(), oofem::TR21_2D_SUPG::drawScalar(), oofem::TR1_2D_CBS::truncateMatVolume(), oofem::TR1_2D_SUPG2::truncateMatVolume(), oofem::TR1_2D_SUPG2_AXI::truncateMatVolume(), and oofem::TR1_2D_SUPG::truncateMatVolume().
| double Polygon::pointDistance | ( | double | x, |
| double | y ) const |
Definition at line 98 of file geotoolbox.C.
References oofem::Vertex::coords, oofem::min(), and testPoint().
| int Polygon::testPoint | ( | double | x, |
| double | y ) const |
Definition at line 47 of file geotoolbox.C.
References oofem::Vertex::coords.
Referenced by oofem::LEPlic::giveMaterialMixtureAt(), and pointDistance().
|
private |
Definition at line 93 of file geotoolbox.h.
Referenced by addVertex(), clear(), oofem::Polygon::PolygonVertexIterator::init(), oofem::Polygon::PolygonEdgeIterator::PolygonEdgeIterator(), and oofem::Polygon::PolygonVertexIterator::PolygonVertexIterator().