Public Types | Public Member Functions | Protected Attributes

OpenTissue::geometry::Prism< math_types_ > Class Template Reference

#include <geometry_prism.h>

Inheritance diagram for OpenTissue::geometry::Prism< math_types_ >:
OpenTissue::geometry::VolumeShape< math_types_ > OpenTissue::utility::ClassID< Prism< math_types_ > > OpenTissue::geometry::BaseShape< math_types_ > OpenTissue::utility::ClassIDInterface OpenTissue::collision::GeometryInterface< math_types_ > OpenTissue::utility::ClassIDInterface

List of all members.

Public Types

typedef math_types_ math_types
typedef math_types::real_type real_type
typedef math_types::vector3_type vector3_type
typedef math_types::matrix3x3_type matrix3x3_type
typedef math_types::quaternion_type quaternion_type

Public Member Functions

size_t const class_id () const
virtual ~Prism ()
void compute_surface_points (std::vector< vector3_type > &points) const
vector3_type center () const
real_type const & height () const
vector3_type const & p0 () const
vector3_type const & p1 () const
vector3_type const & p2 () const
 Prism ()
 Prism (vector3_type const &p0, vector3_type const &p1, vector3_type const &p2, real_type const &height)
 Prism (Prism const &p)
void set (Prism const &p)
void set (vector3_type const &p0_, vector3_type const &p1_, vector3_type const &p2_, real_type const &height_)
void xform (vector3_type const &T, matrix3x3_type const &R)
real_type diameter () const
real_type area () const
real_type volume () const
void translate (vector3_type const &T)
void rotate (matrix3x3_type const &R)
void scale (real_type const &s)
vector3_type get_support_point (vector3_type const &v) const
void compute_collision_aabb (vector3_type const &r, matrix3x3_type const &R, vector3_type &min_coord, vector3_type &max_coord) const

Protected Attributes

vector3_type m_p0
vector3_type m_p1
vector3_type m_p2
real_type m_height

Detailed Description

template<typename math_types_>
class OpenTissue::geometry::Prism< math_types_ >

A Prism.


Member Typedef Documentation

template<typename math_types_>
typedef math_types_ OpenTissue::geometry::Prism< math_types_ >::math_types
template<typename math_types_>
typedef math_types::matrix3x3_type OpenTissue::geometry::Prism< math_types_ >::matrix3x3_type
template<typename math_types_>
typedef math_types::quaternion_type OpenTissue::geometry::Prism< math_types_ >::quaternion_type
template<typename math_types_>
typedef math_types::real_type OpenTissue::geometry::Prism< math_types_ >::real_type
template<typename math_types_>
typedef math_types::vector3_type OpenTissue::geometry::Prism< math_types_ >::vector3_type

Constructor & Destructor Documentation

template<typename math_types_>
virtual OpenTissue::geometry::Prism< math_types_ >::~Prism (  )  [inline, virtual]
template<typename math_types_>
OpenTissue::geometry::Prism< math_types_ >::Prism (  )  [inline]
template<typename math_types_>
OpenTissue::geometry::Prism< math_types_ >::Prism ( vector3_type const &  p0,
vector3_type const &  p1,
vector3_type const &  p2,
real_type const &  height 
) [inline]

Specialized constructor.

Parameters:
p0 
p1 
p2 
height 
template<typename math_types_>
OpenTissue::geometry::Prism< math_types_ >::Prism ( Prism< math_types_ > const &  p  )  [inline]

Member Function Documentation

template<typename math_types_>
real_type OpenTissue::geometry::Prism< math_types_ >::area (  )  const [inline]

Get Surface Area

Returns:
template<typename math_types_>
vector3_type OpenTissue::geometry::Prism< math_types_ >::center (  )  const [inline]
template<typename math_types_>
size_t const OpenTissue::geometry::Prism< math_types_ >::class_id (  )  const [inline, virtual]

Query the class ID.

Returns:
The object's class ID

Reimplemented from OpenTissue::utility::ClassID< Prism< math_types_ > >.

template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::compute_collision_aabb ( vector3_type const &  r,
matrix3x3_type const &  R,
vector3_type min_coord,
vector3_type max_coord 
) const [inline]

Compute Bounding Box. This method computes an axis aligned bounding box (AABB) that encloses the geometry.

Parameters:
r The position of the model frame (i.e the coordinate frame the geometry lives in).
R The orientation of the model frame (i.e the coordinate frame the geometry lives in).
min_coord Upon return holds the minimum corner of the box.
max_coord Upon return holds the maximum corner of the box.
template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::compute_surface_points ( std::vector< vector3_type > &  points  )  const [inline]
template<typename math_types_>
real_type OpenTissue::geometry::Prism< math_types_ >::diameter (  )  const [inline]

Get Diameter

Returns:
template<typename math_types_>
vector3_type OpenTissue::geometry::Prism< math_types_ >::get_support_point ( vector3_type const &  v  )  const [inline]
template<typename math_types_>
real_type const& OpenTissue::geometry::Prism< math_types_ >::height (  )  const [inline]
template<typename math_types_>
vector3_type const& OpenTissue::geometry::Prism< math_types_ >::p0 (  )  const [inline]
template<typename math_types_>
vector3_type const& OpenTissue::geometry::Prism< math_types_ >::p1 (  )  const [inline]
template<typename math_types_>
vector3_type const& OpenTissue::geometry::Prism< math_types_ >::p2 (  )  const [inline]
template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::rotate ( matrix3x3_type const &  R  )  [inline]
Parameters:
R 
template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::scale ( real_type const &  s  )  [inline]
Parameters:
s 
template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::set ( Prism< math_types_ > const &  p  )  [inline]

Assignment method.

Parameters:
prism 
template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::set ( vector3_type const &  p0_,
vector3_type const &  p1_,
vector3_type const &  p2_,
real_type const &  height_ 
) [inline]

Assignment method.

Parameters:
p0 
p1 
p2 
height 
template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::translate ( vector3_type const &  T  )  [inline]
Parameters:
T 
template<typename math_types_>
real_type OpenTissue::geometry::Prism< math_types_ >::volume (  )  const [inline]

Get Volume

Returns:
template<typename math_types_>
void OpenTissue::geometry::Prism< math_types_ >::xform ( vector3_type const &  T,
matrix3x3_type const &  R 
) [inline]

Apply Transform to Prism First rotate then translate

Parameters:
T 
R 

Member Data Documentation

template<typename math_types_>
real_type OpenTissue::geometry::Prism< math_types_ >::m_height [protected]
template<typename math_types_>
vector3_type OpenTissue::geometry::Prism< math_types_ >::m_p0 [protected]
template<typename math_types_>
vector3_type OpenTissue::geometry::Prism< math_types_ >::m_p1 [protected]
template<typename math_types_>
vector3_type OpenTissue::geometry::Prism< math_types_ >::m_p2 [protected]

The documentation for this class was generated from the following file: