GenGeo  1.1
CylinderVol Class Reference

#include <CylinderVol.h>

Inheritance diagram for CylinderVol:
Collaboration diagram for CylinderVol:

Public Member Functions

 CylinderVol ()
 CylinderVol (const Vector3 &, const Vector3 &, double, double)
virtual ~CylinderVol ()
virtual pair< Vector3, Vector3getBoundingBox ()
virtual Vector3 getAPoint (int) const
virtual const map< double,
const AGeometricObject * > 
getClosestObjects (const Vector3 &, int) const
virtual bool isIn (const Vector3 &) const
virtual bool isIn (const Sphere &)
virtual bool isFullyOutside (const Sphere &)
- Public Member Functions inherited from AVolume3D
virtual ~AVolume3D ()
- Public Member Functions inherited from AVolume
virtual ~AVolume ()
virtual int getNumberSubVolumes () const

Protected Attributes

Cylinder m_cyl
Plane m_bottom
Plane m_top
double m_len
Vector3 m_xd
Vector3 m_yd

Friends

ostream & operator<< (ostream &, const CylinderVol &)

Constructor & Destructor Documentation

CylinderVol::CylinderVol ( )
CylinderVol::CylinderVol ( const Vector3 c,
const Vector3 axis,
double  l,
double  r 
)

References cross(), m_bottom, m_len, m_top, m_xd, m_yd, Vector3::norm(), Vector3::unit(), Vector3::x(), Vector3::y(), and Vector3::z().

Here is the call graph for this function:

virtual CylinderVol::~CylinderVol ( )
inlinevirtual

Member Function Documentation

Vector3 CylinderVol::getAPoint ( int  ) const
virtual

Implements AVolume.

References Cylinder::getAxis(), Cylinder::getBasePoint(), Cylinder::getRadius(), m_cyl, m_len, m_xd, and m_yd.

Here is the call graph for this function:

pair< Vector3, Vector3 > CylinderVol::getBoundingBox ( )
virtual

Implements AVolume.

References Cylinder::getAxis(), Cylinder::getBasePoint(), Cylinder::getRadius(), m_cyl, m_len, Vector3::X(), Vector3::Y(), and Vector3::Z().

Here is the call graph for this function:

const map< double, const AGeometricObject * > CylinderVol::getClosestObjects ( const Vector3 P,
int   
) const
virtual

Implements AVolume3D.

Reimplemented in CylinderWithJointSet, and DogBone.

References Cylinder::getDist(), Plane::getDist(), m_bottom, m_cyl, and m_top.

Here is the call graph for this function:

bool CylinderVol::isFullyOutside ( const Sphere S)
virtual

Implements AVolume3D.

References Sphere::Center(), Cylinder::getDirDist(), Plane::getNormal(), Plane::getOrig(), m_bottom, m_cyl, m_top, and Sphere::Radius().

Here is the call graph for this function:

bool CylinderVol::isIn ( const Vector3 P) const
virtual

Implements AVolume.

Reimplemented in DogBone.

References Cylinder::getDirDist(), Plane::getNormal(), Plane::getOrig(), m_bottom, m_cyl, and m_top.

Here is the call graph for this function:

bool CylinderVol::isIn ( const Sphere S)
virtual

Implements AVolume.

Reimplemented in CylinderWithJointSet, and DogBone.

References Sphere::Center(), Cylinder::getDirDist(), Plane::getNormal(), Plane::getOrig(), m_bottom, m_cyl, m_top, and Sphere::Radius().

Here is the call graph for this function:

Friends And Related Function Documentation

ostream& operator<< ( ostream &  ost,
const CylinderVol T 
)
friend

Member Data Documentation

double CylinderVol::m_len
protected
Vector3 CylinderVol::m_xd
protected

Referenced by CylinderVol(), and getAPoint().

Vector3 CylinderVol::m_yd
protected

Referenced by CylinderVol(), and getAPoint().


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