GenGeo  1.1
TriBox Class Reference

#include <TriBox.h>

Inheritance diagram for TriBox:
Collaboration diagram for TriBox:

Public Member Functions

 TriBox ()
 TriBox (const Vector3 &, const Vector3 &, bool inverted=false)
virtual ~TriBox ()
void addPlane (const Plane &)
virtual pair< Vector3, Vector3getBoundingBox ()
virtual Vector3 getAPoint (int) const
virtual bool hasPlane () const
virtual Plane getClosestPlane (const Vector3 &)
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 Member Functions

double m_random (double, double) const

Protected Attributes

vector< Planem_planes
Vector3 m_pmin
Vector3 m_pmax
bool m_inverted

Friends

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

Constructor & Destructor Documentation

TriBox::TriBox ( )
TriBox::TriBox ( const Vector3 pmin,
const Vector3 pmax,
bool  inverted = false 
)

References m_inverted.

virtual TriBox::~TriBox ( )
inlinevirtual

Member Function Documentation

void TriBox::addPlane ( const Plane P)

add a plane to the box

Parameters
Pthe plane

References m_planes.

Referenced by exportTriBox(), generate_lower_tri_rough_block(), generate_upper_tri_rough_block(), and main().

Vector3 TriBox::getAPoint ( int  ) const
virtual

Implements AVolume.

References m_inverted, m_pmax, m_pmin, m_random(), Vector3::x(), Vector3::y(), and Vector3::z().

Here is the call graph for this function:

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

Implements AVolume.

References m_pmax, and m_pmin.

const map< double, const AGeometricObject * > TriBox::getClosestObjects ( const Vector3 p,
int  nmax 
) const
virtual

Implements AVolume3D.

References m_planes.

Plane TriBox::getClosestPlane ( const Vector3 p)
virtual

References m_planes.

virtual bool TriBox::hasPlane ( ) const
inlinevirtual

References m_planes.

bool TriBox::isFullyOutside ( const Sphere S)
virtual

Check if sphere is fully outside volume

Parameters
Sthe sphere
Warning
DUMMY IMPLEMENTATION

Implements AVolume3D.

bool TriBox::isIn ( const Vector3 V) const
virtual

Implements AVolume.

References m_inverted, m_pmax, m_pmin, Vector3::x(), Vector3::y(), and Vector3::z().

Referenced by isIn().

Here is the call graph for this function:

bool TriBox::isIn ( const Sphere S)
virtual

Implements AVolume.

References Sphere::Center(), isIn(), m_planes, and Sphere::Radius().

Here is the call graph for this function:

double TriBox::m_random ( double  imin,
double  imax 
) const
protected

Referenced by getAPoint().

Friends And Related Function Documentation

ostream& operator<< ( ostream &  ost,
const TriBox L 
)
friend

Member Data Documentation

bool TriBox::m_inverted
protected

Referenced by getAPoint(), isIn(), and TriBox().

vector<Plane> TriBox::m_planes
protected
Vector3 TriBox::m_pmax
protected
Vector3 TriBox::m_pmin
protected

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