GenGeo  1.1
BoxWithLines2DSubVol Class Reference

#include <BoxWithLines2DSubVol.h>

Inheritance diagram for BoxWithLines2DSubVol:
Collaboration diagram for BoxWithLines2DSubVol:

Public Member Functions

 BoxWithLines2DSubVol ()
 BoxWithLines2DSubVol (const Vector3 &, const Vector3 &, double, double)
virtual ~BoxWithLines2DSubVol ()
virtual Vector3 getAPoint (int) const
virtual int getNumberSubVolumes () const
- Public Member Functions inherited from BoxWithLines2D
 BoxWithLines2D ()
 BoxWithLines2D (const Vector3 &, const Vector3 &)
virtual ~BoxWithLines2D ()
void addLine (const Line2D &)
virtual pair< Vector3, Vector3getBoundingBox ()
virtual bool hasPlane () const
virtual Line2D getClosestPlane (const Vector3 &)
virtual const map< double,
const Line2D * > 
getClosestPlanes (const Vector3 &, int) const
virtual bool isIn (const Vector3 &) const
virtual bool isIn (const Sphere &)
- Public Member Functions inherited from AVolume2D
virtual ~AVolume2D ()
virtual const map< double,
const AGeometricObject * > 
getClosestObjects (const Vector3 &, int) const
- Public Member Functions inherited from AVolume
virtual ~AVolume ()

Private Attributes

double m_svdim_x
double m_svdim_y
int m_nsv_x
int m_nsv_y

Additional Inherited Members

- Protected Member Functions inherited from BoxWithLines2D
double m_random (double, double) const
- Protected Attributes inherited from BoxWithLines2D
Vector3 m_pmin
Vector3 m_pmax
vector< Line2Dm_lines

Detailed Description

A class for the generation of random particles inside a box. An arbitrary number of lines can be added to which the particles are fitted. The class supplies a number of subvolumes for the getAPoint function

Constructor & Destructor Documentation

BoxWithLines2DSubVol::BoxWithLines2DSubVol ( )
BoxWithLines2DSubVol::BoxWithLines2DSubVol ( const Vector3 pmin,
const Vector3 pmax,
double  svdim_x,
double  svdim_y 

construct box

pminminimum point of bounding box
pmaxmaximum point of bounding box

References m_nsv_x, m_nsv_y, m_svdim_x, and m_svdim_y.

virtual BoxWithLines2DSubVol::~BoxWithLines2DSubVol ( )

Member Function Documentation

virtual Vector3 BoxWithLines2DSubVol::getAPoint ( int  ) const

get point inside the box. The Argument is ignored

Reimplemented from BoxWithLines2D.

virtual int BoxWithLines2DSubVol::getNumberSubVolumes ( ) const

Reimplemented from AVolume.

Member Data Documentation

int BoxWithLines2DSubVol::m_nsv_x

Referenced by BoxWithLines2DSubVol().

int BoxWithLines2DSubVol::m_nsv_y

Referenced by BoxWithLines2DSubVol().

double BoxWithLines2DSubVol::m_svdim_x

Referenced by BoxWithLines2DSubVol().

double BoxWithLines2DSubVol::m_svdim_y

Referenced by BoxWithLines2DSubVol().

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