GemaCoreLib
The GeMA Core library
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GmFaceListDiscontinuity Class Reference

Face based 3D representation for a discontinuity. More...

#include <gmFaceListDiscontinuity.h>

Inheritance diagram for GmFaceListDiscontinuity:
Inheritance graph
[legend]
Collaboration diagram for GmFaceListDiscontinuity:
Collaboration graph
[legend]

Public Member Functions

virtual ~GmFaceListDiscontinuity ()
 Destructor.
 
virtual int numSegments () const
 A generic interface to return the number of discontinuity "segments", where a segment depends on the geometric representation type. For 2d meshes it will be either the number of polyline segments or the number of edges. For 3d meshes, the number of triangles or the number of faces.
 
virtual int numIntersections () const
 A generic interface to return the number of intersections between the mesh and the user given geometry. Is the number of line segments or faces (triangles an/or quads) in the intersection set.
 
int numFaces () const
 Returns the number of faces.
 
const int * faces () const
 Returns the faces vector, organized as cell1, face1, cell2, face2, .... Size equal to numFaces() * 2.
 
virtual void clearGeometry ()
 Clears the original discontinuity geometry information, releasing memory.
 
virtual void printGeometry (const GmLogCategory &logger, GmLogLevel level) const
 Prints the discontinuity geometry information.
 
virtual size_t usedGeometryMemory () const
 Returns an estimative of the memory used by the discontinuity geometry in bytes. More...
 
- Public Member Functions inherited from GmDiscontinuity
virtual ~GmDiscontinuity ()
 Virtuald destructor.
 
int index () const
 Returns this discontinuity index in the father set.
 
QString id () const
 Returns the discontinuity id (name)
 
int cellGroupIndex () const
 Returns the cell group index associated with this discontinuity, if any. This is the index of the group in the list returned by GmCellMesh::cellGroupIds() Returns -1 for an unspecified cell group.
 
virtual int propertyIndex (int propertySet) const
 Given a property set number, returns the line of the property set that contains property values for this discontinuity. The returned value can be used to get a property from a property accessor retrieved from the discontinuity set. More...
 
virtual bool findIntersections (const GmLogCategory &logger)
 Builds the element intersection list for this discontinuity.
 
virtual void printIntersections (const GmLogCategory &logger, GmLogLevel level) const
 Prints the discontinuity-mesh intersection information.
 
virtual size_t usedIntersectionMemory () const
 Returns an estimative of the memory used by the intersection data in bytes.
 

Private Member Functions

 GmFaceListDiscontinuity (const GmDiscontinuitySet *ds, int index, QString id, int groupIndex, const QVector< int > &psIndex)
 Constructor.
 
virtual void setGeometry (double *dvec, int nd, int *ivec, int ni)
 Sets the geometry. ivec should be a vector with cell id + face id pairs (size ni * 2), ni the number of faces. dvec should be NULL.
 

Private Attributes

int _numFaces
 The number of faces.
 
int * _faceList
 The (Cell id, face number) pairs vector. Size == _numFaces * 2.
 

Friends

class GmDiscontinuitySet
 

Additional Inherited Members

- Protected Member Functions inherited from GmDiscontinuity
 GmDiscontinuity (const GmDiscontinuitySet *ds, int index, QString id, int groupIndex, const QVector< int > &psIndex)
 Private constructor. Discontinuities are only created by the DiscontinuitySet.
 
- Protected Attributes inherited from GmDiscontinuity
const GmDiscontinuitySet_ds
 Our "father" discontinuity set.
 
int _index
 The discontinuity index in its "father" discontinuity set.
 
QString _id
 The discontinuity id.
 
int _groupIndex
 The index in the mesh for the associated cell group or -1 if there is none.
 
QVector< int > _psIndex
 The property set line index for this discontinuity. One entry per associated property set.
 

Detailed Description

Face based 3D representation for a discontinuity.

Member Function Documentation

◆ usedGeometryMemory()

virtual size_t GmFaceListDiscontinuity::usedGeometryMemory ( ) const
inlinevirtual

Returns an estimative of the memory used by the discontinuity geometry in bytes.

It returns in general the variable memory that depends on the number of lines in a polyline, edges or faces for boundary lists or points & triangles for surfaces, ignoring "constant" sizes.

Implements GmDiscontinuity.


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