iso::geom::Ray Class Reference

#include <iso_geom_ray.h>

Inherits iso::geom::Geometry.

Inheritance diagram for iso::geom::Ray:

Inheritance graph
[legend]
Collaboration diagram for iso::geom::Ray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Ray ()
 Ray (unsigned int pDim)
 Ray (const math::Vector< real > &pO, const math::Vector< real > &pD)
 Ray (const Ray &pRay)
 ~Ray ()
virtual void calcMinMaxPos ()
 calculate minimum and maximum positions
math::Vector< real > & origin ()
math::Vector< real > & direction ()
const math::Vector< real > & origin () const
const math::Vector< real > & direction () const
void setOrigin (const math::Vector< real > &pOrigin)
void setDirection (const math::Vector< real > &pDirection)
void set (const math::Vector< real > &pOrigin, const math::Vector< real > &pDirection)
void set (const Ray &pRay)
const Rayoperator= (const Ray &pRay)
virtual void closestPoint (const math::Vector< real > &pRefPoint, math::Vector< real > &pResPoint)
 return closest point
virtual bool intersect (const Ray &pRay, math::Vector< real > &pResPoint)
 return intersection point with ray
virtual bool intersect (const Line &pLine, math::Vector< real > &pResPoint)
 return intersection point with line

Protected Attributes

math::Vector< realmOrigin
math::Vector< realmDirection

Constructor & Destructor Documentation

Ray::Ray (  ) 

Ray::Ray ( unsigned int  pDim  ) 

Ray::Ray ( const math::Vector< real > &  pO,
const math::Vector< real > &  pD 
)

Ray::Ray ( const Ray pRay  ) 

Ray::~Ray (  ) 


Member Function Documentation

void Ray::calcMinMaxPos (  )  [virtual]

calculate minimum and maximum positions

Implements iso::geom::Geometry.

math::Vector< real > & iso::geom::Ray::origin (  )  [inline]

math::Vector< real > & iso::geom::Ray::direction (  )  [inline]

const math::Vector< real > & iso::geom::Ray::origin (  )  const [inline]

const math::Vector< real > & iso::geom::Ray::direction (  )  const [inline]

void Ray::setOrigin ( const math::Vector< real > &  pOrigin  ) 

void Ray::setDirection ( const math::Vector< real > &  pDirection  ) 

void Ray::set ( const math::Vector< real > &  pOrigin,
const math::Vector< real > &  pDirection 
)

void Ray::set ( const Ray pRay  ) 

const Ray & Ray::operator= ( const Ray pRay  ) 

void Ray::closestPoint ( const math::Vector< real > &  pRefPoint,
math::Vector< real > &  pResPoint 
) [virtual]

return closest point

Parameters:
pRefPoint reference points
pResPoint result point
Remarks:
fails if dimension of reference and result points don't match dimension of geometry

Implements iso::geom::Geometry.

bool Ray::intersect ( const Ray pRay,
math::Vector< real > &  pResPoint 
) [virtual]

return intersection point with ray

Parameters:
pRay ray
pResPoint result point
Returns:
true if there is an intersection, false otherwise
Remarks:
fails if dimensions don't match

bool Ray::intersect ( const Line pLine,
math::Vector< real > &  pResPoint 
) [virtual]

return intersection point with line

Parameters:
pLine line
pResPoint result point
Returns:
true if there is an intersection, false otherwise
Remarks:
fails if dimensions don't match


Member Data Documentation

math::Vector<real> iso::geom::Ray::mOrigin [protected]

math::Vector<real> iso::geom::Ray::mDirection [protected]


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 20:43:24 2010 for iso_geom by  doxygen 1.5.1