gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
gmshRegion Class Reference

#include <gmshRegion.h>

Inheritance diagram for gmshRegion:
Collaboration diagram for gmshRegion:

Public Member Functions

 gmshRegion (GModel *m, ::Volume *v)
 
virtual ~gmshRegion ()
 
virtual GeomType geomType () const
 
ModelType getNativeType () const
 
void * getNativePtr () const
 
virtual void resetMeshAttributes ()
 
void resetNativePtr (::Volume *v)
 
- Public Member Functions inherited from GRegion
 GRegion (GModel *model, int tag)
 
virtual ~GRegion ()
 
virtual void deleteMesh ()
 
virtual int dim () const
 
virtual GEntitygetParentEntity ()
 
virtual void setVisibility (char val, bool recursive=false)
 
virtual void setColor (unsigned int val, bool recursive=false)
 
void addEmbeddedVertex (GVertex *v)
 
void addEmbeddedEdge (GEdge *e)
 
void addEmbeddedFace (GFace *f)
 
int delFace (GFace *face)
 
virtual std::vector< GFace * > faces () const
 
virtual std::vector< int > faceOrientations () const
 
void set (std::vector< GFace * > const &f)
 
void setOrientations (const std::vector< int > &f)
 
void setFace (GFace *const f, int const orientation)
 
void setBoundFaces (const std::set< int > &tagFaces)
 
void setBoundFaces (const std::vector< int > &tagFaces, const std::vector< int > &signFaces)
 
std::vector< GVertex * > & embeddedVertices ()
 
std::vector< GEdge * > & embeddedEdges ()
 
std::vector< GFace * > & embeddedFaces ()
 
std::vector< MVertex * > getEmbeddedMeshVertices () const
 
virtual std::vector< GEdge * > const & edges () const
 
virtual std::vector< GVertex * > vertices () const
 
virtual SBoundingBox3d bounds (bool fast=false)
 
virtual SOrientedBoundingBox getOBB ()
 
bool edgeConnected (GRegion *r) const
 
double computeSolidProperties (std::vector< double > cg, std::vector< double > inertia)
 
virtual std::string getAdditionalInfoString (bool multline=false)
 
virtual void writeGEO (FILE *fp)
 
virtual void writePY (FILE *fp)
 
virtual void getElementTypes (std::vector< int > &types) const
 
std::size_t getNumMeshElements () const
 
std::size_t getNumMeshElementsByType (const int familyType) const
 
std::size_t getNumMeshParentElements ()
 
void getNumMeshElements (unsigned *const c) const
 
MElement *const * getStartElementType (int type) const
 
MElementgetMeshElement (std::size_t index) const
 
MElementgetMeshElementByType (const int familyType, const std::size_t index) const
 
virtual double getMeshSize () const
 
void addTetrahedron (MTetrahedron *t)
 
void addHexahedron (MHexahedron *h)
 
void addPrism (MPrism *p)
 
void addPyramid (MPyramid *p)
 
void addPolyhedron (MPolyhedron *p)
 
void addTrihedron (MTrihedron *t)
 
void addElement (int type, MElement *e)
 
void removeElement (int type, MElement *e)
 
void removeElements (int type)
 
BoundaryLayerColumnsgetColumns ()
 
virtual bool reorder (const int elementType, const std::vector< std::size_t > &ordering)
 
bool setOutwardOrientationMeshConstraint ()
 
virtual bool isFullyDiscrete ()
 
- Public Member Functions inherited from GEntity
void addVerticesInSet (std::set< MVertex * > &, bool closure) const
 
virtual std::string getTypeString ()
 
 GEntity (GModel *m, int t)
 
virtual ~GEntity ()
 
virtual void mesh (bool verbose)
 
void deleteVertexArrays ()
 
virtual std::list< GRegion * > regions () const
 
virtual bool isOrphan ()
 
std::vector< GRegion * > bindingsGetRegions ()
 
std::vector< GFace * > bindingsGetFaces ()
 
std::vector< GEdge * > bindingsGetEdges () const
 
std::vector< GVertex * > bindingsGetVertices ()
 
virtual bool continuous (int dim) const
 
virtual bool periodic (int dim) const
 
virtual double period (int dim) const
 
virtual bool degenerate (int dim) const
 
virtual bool haveParametrization ()
 
virtual Range< double > parBounds (int i) const
 
virtual double tolerance () const
 
virtual bool containsPoint (const SPoint3 &pt) const
 
virtual int getNativeInt () const
 
GModelmodel () const
 
int tag () const
 
void setTag (int tag)
 
virtual void addPhysicalEntity (int physicalTag)
 
virtual std::vector< int > getPhysicalEntities ()
 
GEntitygetMeshMaster () const
 
void setMeshMaster (GEntity *)
 
void setMeshMaster (GEntity *, const std::vector< double > &, bool updateCorrespondingVertices=true)
 
void updateCorrespondingVertices ()
 
void copyMasterCoordinates ()
 
virtual void alignElementsWithMaster ()
 
virtual char getVisibility ()
 
virtual char getSelection ()
 
virtual void setSelection (char val)
 
virtual unsigned int getColor ()
 
virtual void setColor (unsigned color, bool recursive=false)
 
virtual bool useColor ()
 
virtual std::string getInfoString (bool additional=true, bool multiline=false)
 
virtual double getMeshSizeFactor () const
 
bool getAllElementsVisible ()
 
void setAllElementsVisible (bool val)
 
std::size_t getNumMeshVertices ()
 
MVertexgetMeshVertex (std::size_t index)
 
void addMeshVertex (MVertex *v)
 
void removeMeshVertex (MVertex *v)
 
virtual void relocateMeshVertices ()
 
GVertexcast2Vertex ()
 
GEdgecast2Edge ()
 
GFacecast2Face ()
 
GRegioncast2Region ()
 

Private Attributes

::Volume_v
 

Additional Inherited Members

- Public Types inherited from GEntity
enum  ModelType {
  UnknownModel, GmshModel, OpenCascadeModel, AcisModel,
  ParasolidModel
}
 
enum  GeomType {
  Unknown, Point, BoundaryLayerPoint, Line,
  Circle, Ellipse, Conic, Parabola,
  Hyperbola, TrimmedCurve, OffsetCurve, BSpline,
  Bezier, ParametricCurve, BoundaryLayerCurve, DiscreteCurve,
  Plane, Nurb, Cylinder, Sphere,
  Cone, Torus, RuledSurface, ParametricSurface,
  BSplineSurface, BezierSurface, SurfaceOfRevolution, BoundaryLayerSurface,
  DiscreteSurface, DiscreteDiskSurface, Volume, DiscreteVolume,
  PartitionPoint, PartitionCurve, PartitionSurface, PartitionVolume,
  GhostCurve, GhostSurface, GhostVolume
}
 
enum  MeshGenerationStatus { PENDING, DONE, FAILED }
 
- Public Attributes inherited from GRegion
struct {
   int   recombine3D
 
   char   method
 
   ExtrudeParams *   extrude
 
   std::vector< GVertex * >   corners
 
   int   QuadTri
 
   double   meshSize
 
meshAttributes
 
std::vector< std::vector< std::vector< MVertex * > > > transfinite_vertices
 
std::vector< MTetrahedron * > tetrahedra
 
std::vector< MHexahedron * > hexahedra
 
std::vector< MPrism * > prisms
 
std::vector< MPyramid * > pyramids
 
std::vector< MTrihedron * > trihedra
 
std::vector< MPolyhedron * > polyhedra
 
- Public Attributes inherited from GEntity
std::vector< MVertex * > mesh_vertices
 
std::vector< GEntity * > compound
 
std::map< GVertex *, GVertex * > vertexCounterparts
 
std::vector< int > physicals
 
VertexArrayva_lines
 
VertexArrayva_triangles
 
std::set< MElement * > curvedBLElements
 
std::vector< double > affineTransform
 
std::map< MVertex *, MVertex * > correspondingVertices
 
std::map< MVertex *, MVertex * > correspondingHighOrderVertices
 
- Protected Attributes inherited from GRegion
std::vector< GFace * > l_faces
 
std::vector< GVertex * > embedded_vertices
 
std::vector< GFace * > embedded_faces
 
std::vector< GEdge * > embedded_edges
 
std::vector< int > l_dirs
 
BoundaryLayerColumns _columns
 
- Protected Attributes inherited from GEntity
SOrientedBoundingBox_obb
 

Detailed Description

Definition at line 13 of file gmshRegion.h.

Constructor & Destructor Documentation

◆ gmshRegion()

gmshRegion::gmshRegion ( GModel m,
::Volume v 
)

Definition at line 12 of file gmshRegion.cpp.

Here is the call graph for this function:

◆ ~gmshRegion()

virtual gmshRegion::~gmshRegion ( )
inlinevirtual

Definition at line 19 of file gmshRegion.h.

Member Function Documentation

◆ geomType()

GEntity::GeomType gmshRegion::geomType ( ) const
virtual

Reimplemented from GEntity.

Definition at line 71 of file gmshRegion.cpp.

◆ getNativePtr()

void* gmshRegion::getNativePtr ( ) const
inlinevirtual

Reimplemented from GEntity.

Definition at line 22 of file gmshRegion.h.

◆ getNativeType()

ModelType gmshRegion::getNativeType ( ) const
inlinevirtual

Reimplemented from GEntity.

Definition at line 21 of file gmshRegion.h.

◆ resetMeshAttributes()

void gmshRegion::resetMeshAttributes ( )
virtual

Reimplemented from GRegion.

Definition at line 51 of file gmshRegion.cpp.

Referenced by gmshRegion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetNativePtr()

void gmshRegion::resetNativePtr ( ::Volume v)

Definition at line 18 of file gmshRegion.cpp.

Referenced by gmshRegion().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _v

::Volume* gmshRegion::_v
private

Definition at line 15 of file gmshRegion.h.

Referenced by geomType(), getNativePtr(), resetMeshAttributes(), and resetNativePtr().


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