#include <edm_object.h>
Public Types | |
typedef edm_types::value_traits | value_traits |
typedef edm_types::math_types | math_types |
typedef edm_types::real_type | real_type |
typedef edm_types::vector3_type | vector3_type |
typedef geometry::BaseShape < math_types > | base_shape |
typedef function::SignedDistanceFunction < math_types > | sdf_type |
Public Member Functions | |
Object () | |
virtual | ~Object () |
template<typename shape_type > | |
shape_type & | create_shape () |
base_shape const * | get_shape () const |
Object & | set_scale (real_type const &scale) |
real_type const & | get_scale () const |
Object & | set_visibility (bool visible) |
bool | get_visibility () const |
real_type | eval (vector3_type const &x) const |
< the object's inside/outside function | |
vector3_type | normal (vector3_type const &x) const |
< the object's gradient vector at a point | |
real_type | dist (vector3_type const &x) const |
< the distace from p to the surface | |
Protected Attributes | |
bool | m_visible |
real_type | m_scale |
base_shape * | m_shape |
sdf_type const * | m_sdf |
An Implicit Impenetrable Object (obstacle)
typedef geometry::BaseShape<math_types> OpenTissue::edm::Object< edm_types >::base_shape |
typedef edm_types::math_types OpenTissue::edm::Object< edm_types >::math_types |
typedef edm_types::real_type OpenTissue::edm::Object< edm_types >::real_type |
typedef function::SignedDistanceFunction<math_types> OpenTissue::edm::Object< edm_types >::sdf_type |
typedef edm_types::value_traits OpenTissue::edm::Object< edm_types >::value_traits |
typedef edm_types::vector3_type OpenTissue::edm::Object< edm_types >::vector3_type |
OpenTissue::edm::Object< edm_types >::Object | ( | ) | [inline] |
virtual OpenTissue::edm::Object< edm_types >::~Object | ( | ) | [inline, virtual] |
shape_type& OpenTissue::edm::Object< edm_types >::create_shape | ( | ) | [inline] |
real_type OpenTissue::edm::Object< edm_types >::dist | ( | vector3_type const & | x | ) | const [inline] |
< the distace from p to the surface
real_type OpenTissue::edm::Object< edm_types >::eval | ( | vector3_type const & | x | ) | const [inline] |
< the object's inside/outside function
real_type const& OpenTissue::edm::Object< edm_types >::get_scale | ( | ) | const [inline] |
base_shape const* OpenTissue::edm::Object< edm_types >::get_shape | ( | ) | const [inline] |
bool OpenTissue::edm::Object< edm_types >::get_visibility | ( | ) | const [inline] |
vector3_type OpenTissue::edm::Object< edm_types >::normal | ( | vector3_type const & | x | ) | const [inline] |
< the object's gradient vector at a point
Object& OpenTissue::edm::Object< edm_types >::set_scale | ( | real_type const & | scale | ) | [inline] |
Object& OpenTissue::edm::Object< edm_types >::set_visibility | ( | bool | visible | ) | [inline] |
real_type OpenTissue::edm::Object< edm_types >::m_scale [protected] |
sdf_type const* OpenTissue::edm::Object< edm_types >::m_sdf [protected] |
base_shape* OpenTissue::edm::Object< edm_types >::m_shape [protected] |
bool OpenTissue::edm::Object< edm_types >::m_visible [protected] |