![]() |
PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Defines null (empty) geom object. More...
#include <geomObjects.h>
Public Member Functions | |
| NullGeomObject (std::string description="") | |
| Constructor. | |
| virtual std::string | printStr (int nt, int lvl) const override |
| Returns the string containing printable information about the object. | |
| void | print (int nt, int lvl) const override |
| Prints the information about the object. | |
| void | print () const override |
| Prints the information about the object. | |
Public Member Functions inherited from util::geometry::GeomObject | |
| GeomObject (std::string name="", std::string description="") | |
| Constructor. | |
| virtual double | volume () const |
| Computes the volume (area in 2d, length in 1d) of object. | |
| virtual util::Point | center () const |
| Computes the center of object. | |
| virtual std::pair< util::Point, util::Point > | box () const |
| Computes the bounding box of object. | |
| virtual std::pair< util::Point, util::Point > | box (const double &tol) const |
| Computes the bounding box of object. | |
| virtual double | inscribedRadius () const |
| Computes the radius of biggest circle/sphere completely within the object. | |
| virtual double | boundingRadius () const |
| Computes the radius of smallest circle/sphere such that object can be fit into it. | |
| virtual bool | isInside (const util::Point &x) const |
| Checks if point is inside this object. | |
| virtual bool | isOutside (const util::Point &x) const |
| Checks if point is outside of this object. | |
| virtual bool | isNear (const util::Point &x, const double &tol) const |
| Checks if point is within given distance of this object. | |
| virtual bool | isNearBoundary (const util::Point &x, const double &tol, const bool &within) const |
| Checks if point is within given distance of this object. | |
| virtual bool | doesIntersect (const util::Point &x) const |
| Checks if point lies exactly on the boundary. | |
| virtual bool | isInside (const std::pair< util::Point, util::Point > &box) const |
| Checks if box is completely inside. | |
| virtual bool | isOutside (const std::pair< util::Point, util::Point > &box) const |
| Checks if box is outside of the object. | |
| virtual bool | isNear (const std::pair< util::Point, util::Point > &box, const double &tol) const |
| Checks if box is within given distance of this object. | |
| virtual bool | doesIntersect (const std::pair< util::Point, util::Point > &box) const |
| Checks if box intersects this object. | |
Additional Inherited Members | |
Data Fields inherited from util::geometry::GeomObject | |
| const std::string | d_name |
| name of object | |
| const std::string | d_description |
| Further description of object. | |
| std::vector< std::string > | d_tags |
| Tags/attributes about the object. | |
Defines null (empty) geom object.
Definition at line 236 of file geomObjects.h.
|
inline |
Constructor.
Definition at line 242 of file geomObjects.h.
|
inlineoverridevirtual |
Prints the information about the object.
Reimplemented from util::geometry::GeomObject.
Definition at line 269 of file geomObjects.h.
References print().
Referenced by print().
|
inlineoverridevirtual |
Prints the information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Reimplemented from util::geometry::GeomObject.
Definition at line 262 of file geomObjects.h.
References printStr().
|
inlineoverridevirtual |
Returns the string containing printable information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Reimplemented from util::geometry::GeomObject.
Definition at line 247 of file geomObjects.h.
References util::geometry::GeomObject::d_name, and util::io::getTabS().
Referenced by print().