1.1.0
CCC
 
BooleanObject Class Reference

#include <BooleanObject.hpp>

Inheritance diagram for BooleanObject:
AStringable

Public Member Functions

 BooleanObject (const AShape *shape)
 
 BooleanObject (const BooleanObject &r)
 
BooleanObjectoperator= (const BooleanObject &r)
 
virtual ~BooleanObject ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface to AStringable. More...
 
void setMode (int mode)
 
void setOrientation (double orientation)
 
void setCenter (int idim, double value)
 
void setCenter (const VectorDouble &center)
 
void setExtension (int idim, double value)
 
void setValue (int rank, double value)
 
int getMode () const
 
double getCenter (int idim) const
 
double getExtension (int idim) const
 
double getOrientation () const
 
double getValue (int rank) const
 
const AShapegetToken () const
 
bool isCompatiblePore (const Db *db)
 
bool isCompatibleGrainAdd (const Db *db)
 
bool isCompatibleGrainDelete (const Db *db, int iptr_cover)
 
void projectToGrid (DbGrid *dbout, int iptr_simu, int iptr_rank, int facies, int rank)
 
int coverageUpdate (Db *db, int iptr_cover, int val)
 
VectorDouble getValues () const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Static Public Member Functions

static BooleanObjectgenerate (const DbGrid *dbout, const VectorDouble &cdgrain, const ModelBoolean *tokens, const SimuBooleanParam &boolparam, double eps=EPSILON3)
 

Constructor & Destructor Documentation

BooleanObject::BooleanObject ( const AShape shape)
BooleanObject::BooleanObject ( const BooleanObject r)
BooleanObject::~BooleanObject ( )
virtual

Member Function Documentation

int BooleanObject::coverageUpdate ( Db db,
int  iptr_cover,
int  val 
)

Update the covering value of each constraining grain after a deletion or an addition operation

Returns
Count of grains not covered after the operation
Parameters
[in]dbDb structure
[in]iptr_coverUID for the covering variable
[in]valtype of the operation to be tested 1 for addition; -1 for deletion
BooleanObject * BooleanObject::generate ( const DbGrid dbout,
const VectorDouble cdgrain,
const ModelBoolean tokens,
const SimuBooleanParam boolparam,
double  eps = EPSILON3 
)
static

Function used to generate the geometry of an object

double BooleanObject::getCenter ( int  idim) const
inline
double BooleanObject::getExtension ( int  idim) const
inline
int BooleanObject::getMode ( ) const
inline
double BooleanObject::getOrientation ( ) const
inline
const AShape* BooleanObject::getToken ( ) const
inline
double BooleanObject::getValue ( int  rank) const
inline
VectorDouble BooleanObject::getValues ( ) const
bool BooleanObject::isCompatibleGrainAdd ( const Db db)

Check if an object can be added with regards to the constraining grains

Parameters
[in]dbConstraining data set
bool BooleanObject::isCompatibleGrainDelete ( const Db db,
int  iptr_cover 
)

Check if an object can be deleted with regards to the constraining grains

Parameters
[in]dbConstraining data set
[in]iptr_coverUIUD for coverage variable
bool BooleanObject::isCompatiblePore ( const Db db)

Check if the current object is compatible with the constraining pores

Returns
True if it is compatible; False otherwise
Parameters
[in]dbConstraining data set
BooleanObject & BooleanObject::operator= ( const BooleanObject r)
void BooleanObject::projectToGrid ( DbGrid dbout,
int  iptr_simu,
int  iptr_rank,
int  facies,
int  rank 
)
void BooleanObject::setCenter ( int  idim,
double  value 
)
inline
void BooleanObject::setCenter ( const VectorDouble center)
void BooleanObject::setExtension ( int  idim,
double  value 
)
inline
void BooleanObject::setMode ( int  mode)
inline
void BooleanObject::setOrientation ( double  orientation)
inline
void BooleanObject::setValue ( int  rank,
double  value 
)
inline
String BooleanObject::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface to AStringable.

Reimplemented from AStringable.


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