Base class that allows to evaluate the complement of a LevelSetObjects. More...
Public Member Functions | |
bool | empty () const override |
const SourceLevelSetObject * | getCellReferenceObject (long id) const override |
const SourceLevelSetObject * | getReferenceObject (const std::array< double, 3 > &point) const override |
virtual const SourceLevelSetObject * | getSourceObject () const |
std::vector< const SourceLevelSetObject * > | getSourceObjects () const override |
Public Member Functions inherited from bitpit::LevelSetProxyObject< SourceLevelSetObject, SourceLevelSetObject > | |
int | getCellReferenceObjectId (long id) const override |
virtual const SourceLevelSetObject * | getCellReferencePrimaryObject (long id) const |
int | getCellReferencePrimaryObjectId (long id) const override |
int | getPrimaryObjectId (long) const |
std::vector< int > | getPrimarySourceObjectIds () const override |
virtual std::vector< const SourceLevelSetObject * > | getPrimarySourceObjects () const |
int | getReferenceObjectId (const std::array< double, 3 > &point) const override |
virtual const SourceLevelSetObject * | getReferencePrimaryObject (const std::array< double, 3 > &point) const |
int | getReferencePrimaryObjectId (const std::array< double, 3 > &point) const override |
std::vector< int > | getSourceObjectIds () const override |
bool | isCellInNarrowBand (long id) const override |
bool | isInNarrowBand (const std::array< double, 3 > &point) const override |
bool | isPrimary () const override |
Protected Member Functions | |
LevelSetComplementBaseObject (int id, const SourceLevelSetObject *source) | |
std::array< double, 3 > | _evalCellGradient (long id, bool signedLevelSet) const override |
short | _evalCellSign (long id) const override |
double | _evalCellValue (long id, bool signedLevelSet) const override |
std::array< double, 3 > | _evalGradient (const std::array< double, 3 > &point, bool signedLevelSet) const override |
short | _evalSign (const std::array< double, 3 > &point) const override |
double | _evalValue (const std::array< double, 3 > &point, bool signedLevelSet) const override |
void | fillCellPropagatedSignCache () override |
void | replaceSourceObject (const SourceLevelSetObject *current, const SourceLevelSetObject *updated) override |
Protected Member Functions inherited from bitpit::LevelSetProxyObject< SourceLevelSetObject, SourceLevelSetObject > | |
LevelSetProxyObject (int) | |
void | fillCellLocationCache () override |
void | fillCellLocationCache (const std::vector< adaption::Info > &adaptionData) override |
Base class that allows to evaluate the complement of a LevelSetObjects.
Definition at line 38 of file levelSetComplementObject.hpp.
|
protected |
Constructor.
[in] | id | identifier of object |
[in] | source | pointer to source object |
Definition at line 50 of file levelSetComplementObject.tpp.
|
overrideprotected |
Evaluate levelset gradient at the specified cell.
id | is the id of the cell |
signedLevelSet | controls if signed levelset function will be used |
Definition at line 168 of file levelSetComplementObject.tpp.
|
overrideprotected |
Evaluate levelset sign at the specified cell.
id | is the id of the cell |
Definition at line 137 of file levelSetComplementObject.tpp.
|
overrideprotected |
Evaluate levelset value at the specified cell.
id | is the id of the cell |
signedLevelSet | controls if signed levelset function will be used |
Definition at line 150 of file levelSetComplementObject.tpp.
|
overrideprotected |
Evaluate levelset gradient at the specified point.
point | are the coordinates of the point |
signedLevelSet | controls if signed levelset function will be used |
Definition at line 216 of file levelSetComplementObject.tpp.
|
overrideprotected |
Evaluate levelset sign at the specified point.
point | are the coordinates of the point |
Definition at line 185 of file levelSetComplementObject.tpp.
|
overrideprotected |
Evaluate levelset value at the specified point.
point | are the coordinates of the point |
signedLevelSet | controls if signed levelset function will be used |
Definition at line 198 of file levelSetComplementObject.tpp.
|
override |
Checks if the object is empty.
Definition at line 62 of file levelSetComplementObject.tpp.
|
overrideprotected |
Fill the cache that contains the propagated cell sign.
Definition at line 87 of file levelSetComplementObject.tpp.
|
overridevirtual |
Get the object that defines the levelset information for the specified cell.
[in] | id | cell index |
Implements bitpit::LevelSetProxyObject< SourceLevelSetObject, SourceLevelSetObject >.
Definition at line 234 of file levelSetComplementObject.tpp.
|
overridevirtual |
Get the object that defines the levelset information for the specified point.
[in] | point | are the coordinates of the point |
Implements bitpit::LevelSetProxyObject< SourceLevelSetObject, SourceLevelSetObject >.
Definition at line 249 of file levelSetComplementObject.tpp.
|
virtual |
Get the objects that define
Definition at line 263 of file levelSetComplementObject.tpp.
|
overridevirtual |
Get all objects that compose the boolean object.
Implements bitpit::LevelSetProxyObject< SourceLevelSetObject, SourceLevelSetObject >.
Definition at line 275 of file levelSetComplementObject.tpp.
|
overrideprotectedvirtual |
Replace a source object.
[in] | current | current source object |
[in] | updated | updated source object |
Implements bitpit::LevelSetProxyObject< SourceLevelSetObject, SourceLevelSetObject >.
Definition at line 74 of file levelSetComplementObject.tpp.