AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.6.1/src/axom/klee/Shape.hpp>
Public Member Functions | |
Shape (std::string name, std::string material, std::vector< std::string > materialsReplaced, std::vector< std::string > materialsNotReplaced, Geometry geometry) | |
const std::string & | getName () const |
const std::string & | getMaterial () const |
bool | replaces (const std::string &material) const |
const Geometry & | getGeometry () const |
A Shape describes a region of space, a material it is made of, and a list of materials which it does/doesn't replace.
axom::klee::Shape::Shape | ( | std::string | name, |
std::string | material, | ||
std::vector< std::string > | materialsReplaced, | ||
std::vector< std::string > | materialsNotReplaced, | ||
Geometry | geometry | ||
) |
Create a new Shape.
name | the name of the shape |
material | the shape's material. |
materialsReplaced | the materials which can be replaced. If empty, all materials can be replaced unless materialsNotReplaced is set. |
materialsNotReplaced | the materials which cannot be replaced. If empty, all materials can be replaced unless materialsReplaced is set. |
geometry | the geometric properties of this shape |
std::logic_error | if both materialsReplaced and materialsNotReplaced have entries. |
|
inline |
Get the name of this shape.
Referenced by axom::quest::SamplingShaper::applyReplacementRules(), axom::quest::IntersectionShaper::applyReplacementRules(), axom::quest::SamplingShaper::prepareShapeQuery(), axom::quest::SamplingShaper::runShapeQuery(), and axom::quest::IntersectionShaper::setExecPolicy().
|
inline |
Get the material this shape is made of.
References replaces().
Referenced by axom::quest::SamplingShaper::applyReplacementRules(), and axom::quest::IntersectionShaper::applyReplacementRules().
bool axom::klee::Shape::replaces | ( | const std::string & | material | ) | const |
Check whether this shape can replace the given material (within the space defined by this shape).
material | the material to check |
Referenced by axom::quest::SamplingShaper::applyReplacementRules(), and getMaterial().
|
inline |
Get the description fo the geometry for this shape.