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

#include <gmshLevelset.h>

Inheritance diagram for gLevelset:
Collaboration diagram for gLevelset:

Public Member Functions

 gLevelset (int tag=0)
 
 gLevelset (const gLevelset &)
 
virtual ~gLevelset ()
 
virtual gLevelsetclone () const
 
virtual double operator() (double x, double y, double z) const
 
bool isInsideDomain (const double &x, const double &y, const double &z) const
 
bool isOutsideDomain (const double &x, const double &y, const double &z) const
 
bool isOnBorder (const double &x, const double &y, const double &z) const
 
virtual std::vector< gLevelset * > getChildren () const
 
virtual double choose (double d1, double d2) const
 
virtual int type () const
 
virtual bool isPrimitive () const
 
void setTag (int t)
 
virtual int getTag () const
 
void getPrimitives (std::vector< gLevelset * > &primitives)
 
void getPrimitivesPO (std::vector< gLevelset * > &primitives)
 
void getRPN (std::vector< gLevelset * > &gLsRPN)
 
double H (const double &x, const double &y, const double &z) const
 
void print () const
 
- Public Member Functions inherited from simpleFunction< double >
 simpleFunction (double val=0.0)
 
virtual ~simpleFunction ()
 
virtual bool hasDerivatives ()
 
virtual void setElement (MElement *e) const
 
virtual void gradient (double x, double y, double z, double &dfdx, double &dfdy, double &dfdz) const
 
virtual void hessian (double x, double y, double z, double &dfdxx, double &dfdxy, double &dfdxz, double &dfdyx, double &dfdyy, double &dfdyz, double &dfdzx, double &dfdzy, double &dfdzz) const
 

Static Public Member Functions

static gLevelsetfind (int tag)
 
static void add (gLevelset *l)
 

Protected Attributes

int tag_
 
- Protected Attributes inherited from simpleFunction< double >
double _val
 
bool _hasDerivatives
 

Static Protected Attributes

static const short insideDomain = -1
 
static int maxTag_ = 0
 
static std::set< gLevelset *, gLevelsetLessThanall_
 

Detailed Description

Definition at line 64 of file gmshLevelset.h.

Constructor & Destructor Documentation

◆ gLevelset() [1/2]

gLevelset::gLevelset ( int  tag = 0)
inline

Definition at line 76 of file gmshLevelset.h.

◆ gLevelset() [2/2]

gLevelset::gLevelset ( const gLevelset lv)

Definition at line 351 of file gmshLevelset.cpp.

◆ ~gLevelset()

virtual gLevelset::~gLevelset ( )
inlinevirtual

Definition at line 84 of file gmshLevelset.h.

Member Function Documentation

◆ add()

void gLevelset::add ( gLevelset l)
static

Definition at line 44 of file gmshLevelset.cpp.

◆ choose()

virtual double gLevelset::choose ( double  d1,
double  d2 
) const
inlinevirtual

Reimplemented in gLevelsetTools, gLevelsetImproved, gLevelsetCrack, gLevelsetIntersection, gLevelsetUnion, gLevelsetCut, gLevelsetReverse, and gLevelsetPrimitive.

Definition at line 105 of file gmshLevelset.h.

Referenced by gLevelsetReverse::choose(), and gLevelsetImproved::choose().

Here is the caller graph for this function:

◆ clone()

virtual gLevelset* gLevelset::clone ( ) const
inlinevirtual

◆ find()

gLevelset * gLevelset::find ( int  tag)
static

Definition at line 36 of file gmshLevelset.cpp.

◆ getChildren()

virtual std::vector<gLevelset *> gLevelset::getChildren ( ) const
inlinevirtual

Reimplemented in gLevelsetImproved, gLevelsetReverse, gLevelsetTools, and gLevelsetPrimitive.

Definition at line 101 of file gmshLevelset.h.

Referenced by gLevelsetReverse::getChildren(), gLevelsetImproved::getChildren(), getPrimitives(), getPrimitivesPO(), and getRPN().

Here is the caller graph for this function:

◆ getPrimitives()

void gLevelset::getPrimitives ( std::vector< gLevelset * > &  primitives)

Definition at line 273 of file gmshLevelset.cpp.

Here is the call graph for this function:

◆ getPrimitivesPO()

void gLevelset::getPrimitivesPO ( std::vector< gLevelset * > &  primitives)

Definition at line 291 of file gmshLevelset.cpp.

Referenced by buildCutMesh().

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

◆ getRPN()

void gLevelset::getRPN ( std::vector< gLevelset * > &  gLsRPN)

Definition at line 321 of file gmshLevelset.cpp.

Referenced by buildCutMesh().

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

◆ getTag()

virtual int gLevelset::getTag ( ) const
inlinevirtual

Reimplemented in gLevelsetReverse, and gLevelsetTools.

Definition at line 109 of file gmshLevelset.h.

Referenced by gLevelsetReverse::getTag(), gLevelsetLessThan::operator()(), and print().

Here is the caller graph for this function:

◆ H()

double gLevelset::H ( const double &  x,
const double &  y,
const double &  z 
) const
inline

Definition at line 113 of file gmshLevelset.h.

Referenced by gLevelsetCylinder::gLevelsetCylinder().

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

◆ isInsideDomain()

bool gLevelset::isInsideDomain ( const double &  x,
const double &  y,
const double &  z 
) const
inline

Definition at line 89 of file gmshLevelset.h.

Referenced by H(), and FuncHeaviside::operator()().

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

◆ isOnBorder()

bool gLevelset::isOnBorder ( const double &  x,
const double &  y,
const double &  z 
) const
inline

Definition at line 97 of file gmshLevelset.h.

Referenced by H().

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

◆ isOutsideDomain()

bool gLevelset::isOutsideDomain ( const double &  x,
const double &  y,
const double &  z 
) const
inline

Definition at line 93 of file gmshLevelset.h.

Here is the call graph for this function:

◆ isPrimitive()

virtual bool gLevelset::isPrimitive ( ) const
inlinevirtual

Reimplemented in gLevelsetImproved, gLevelsetReverse, gLevelsetTools, and gLevelsetPrimitive.

Definition at line 107 of file gmshLevelset.h.

Referenced by gLevelsetReverse::isPrimitive(), and gLevelsetImproved::isPrimitive().

Here is the caller graph for this function:

◆ operator()()

virtual double gLevelset::operator() ( double  x,
double  y,
double  z 
) const
inlinevirtual

◆ print()

void gLevelset::print ( ) const
inline

Definition at line 118 of file gmshLevelset.h.

Here is the call graph for this function:

◆ setTag()

void gLevelset::setTag ( int  t)
inline

Definition at line 108 of file gmshLevelset.h.

◆ type()

Member Data Documentation

◆ all_

std::set< gLevelset *, gLevelsetLessThan > gLevelset::all_
staticprotected

Definition at line 73 of file gmshLevelset.h.

Referenced by add(), and find().

◆ insideDomain

const short gLevelset::insideDomain = -1
staticprotected

Definition at line 67 of file gmshLevelset.h.

Referenced by isInsideDomain(), and isOutsideDomain().

◆ maxTag_

int gLevelset::maxTag_ = 0
staticprotected

Definition at line 71 of file gmshLevelset.h.

Referenced by gLevelset().

◆ tag_

int gLevelset::tag_
protected

Definition at line 69 of file gmshLevelset.h.

Referenced by getTag(), gLevelsetTools::getTag(), gLevelset(), and setTag().


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