#include <BooleanObject.hpp>
◆ BooleanObject() [1/2]
BooleanObject::BooleanObject |
( |
const AShape * |
shape | ) |
|
◆ BooleanObject() [2/2]
◆ ~BooleanObject()
BooleanObject::~BooleanObject |
( |
| ) |
|
|
virtual |
◆ _checkBoundingBox()
bool BooleanObject::_checkBoundingBox |
( |
const VectorDouble & |
coor, |
|
|
int |
ndim |
|
) |
| |
|
private |
Check if the pixel (coor) belongs to the object bounding box
- Parameters
-
[in] | coor | location of the pixel |
[in] | ndim | Space dimension |
◆ _checkIntensity()
Check if an object may be generated according to the value of the Intensity This Intensity can be local or not (if Flag_stat)
- Returns
- Error return code:
-
0 the token is created
-
1 the token may not be created
◆ _checkObject()
bool BooleanObject::_checkObject |
( |
const VectorDouble & |
coor, |
|
|
int |
ndim |
|
) |
| |
|
private |
Check if the pixel (coor) belongs to the grain.
- Returns
- true if the pixel is in the grain, 0false otherwise
- Parameters
-
[in] | coor | location of the pixel |
[in] | ndim | Space dimension |
◆ _defineBoundingBox()
void BooleanObject::_defineBoundingBox |
( |
double |
eps = EPSILON3 | ) |
|
|
private |
◆ _drawCoordinate()
◆ _extensionLinkage()
void BooleanObject::_extensionLinkage |
( |
| ) |
|
|
private |
Function to link the geometries of an object
◆ _getCoverageAtSample()
int BooleanObject::_getCoverageAtSample |
( |
const Db * |
db, |
|
|
int |
iech |
|
) |
| |
|
private |
◆ _isGrain()
bool BooleanObject::_isGrain |
( |
const Db * |
db, |
|
|
int |
iech |
|
) |
| |
|
private |
◆ _isPore()
bool BooleanObject::_isPore |
( |
const Db * |
db, |
|
|
int |
iech |
|
) |
| |
|
private |
◆ _updateCoverageAtSample()
void BooleanObject::_updateCoverageAtSample |
( |
Db * |
db, |
|
|
int |
iech, |
|
|
int |
ival |
|
) |
| |
|
private |
◆ coverageUpdate()
int BooleanObject::coverageUpdate |
( |
Db * |
db, |
|
|
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] | db | Db structure |
[in] | val | type of the operation to be tested 1 for addition; -1 for deletion |
◆ generate()
Function used to generate the geometry of an object
◆ getCenter()
double BooleanObject::getCenter |
( |
int |
idim | ) |
const |
|
inline |
◆ getExtension()
double BooleanObject::getExtension |
( |
int |
idim | ) |
const |
|
inline |
◆ getMode()
int BooleanObject::getMode |
( |
| ) |
const |
|
inline |
◆ getOrientation()
double BooleanObject::getOrientation |
( |
| ) |
const |
|
inline |
◆ getToken()
const AShape* BooleanObject::getToken |
( |
| ) |
const |
|
inline |
◆ getValue()
double BooleanObject::getValue |
( |
int |
rank | ) |
const |
|
inline |
◆ getValues()
◆ isCompatibleGrainAdd()
bool BooleanObject::isCompatibleGrainAdd |
( |
const Db * |
db | ) |
|
Check if an object can be added with regards to the constraining grains
- Parameters
-
[in] | db | Constraining data set |
◆ isCompatibleGrainDelete()
bool BooleanObject::isCompatibleGrainDelete |
( |
const Db * |
db | ) |
|
Check if an object can be deleted with regards to the constraining grains
- Parameters
-
[in] | db | Constraining data set |
◆ isCompatiblePore()
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] | db | Constraining data set |
◆ operator=()
◆ projectToGrid()
void BooleanObject::projectToGrid |
( |
DbGrid * |
dbout, |
|
|
int |
iptr_simu, |
|
|
int |
iptr_rank, |
|
|
int |
facies, |
|
|
int |
rank |
|
) |
| |
◆ setCenter() [1/2]
void BooleanObject::setCenter |
( |
const VectorDouble & |
center | ) |
|
◆ setCenter() [2/2]
void BooleanObject::setCenter |
( |
int |
idim, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ setExtension()
void BooleanObject::setExtension |
( |
int |
idim, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ setMode()
void BooleanObject::setMode |
( |
int |
mode | ) |
|
|
inline |
◆ setOrientation()
void BooleanObject::setOrientation |
( |
double |
orientation | ) |
|
|
inline |
◆ setValue()
void BooleanObject::setValue |
( |
int |
rank, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ toString()
◆ _box
◆ _center
◆ _extension
◆ _mode
◆ _orientation
double BooleanObject::_orientation |
|
private |
◆ _token
const AShape* BooleanObject::_token |
|
private |
◆ _values
The documentation for this class was generated from the following files: