Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Public Attributes | List of all members
OBox Class Reference

The box class. More...

#include <3d.h>

Inheritance diagram for OBox:
Inheritance graph
[legend]
Collaboration diagram for OBox:
Collaboration graph
[legend]

Public Member Functions

 OBox ()
 Default constructor. More...
 
 OBox (const OBox &box)
 Copy constructor. More...
 
 OBox (const OCoord3D &min, const OCoord3D &max)
 
 OBox (double x1, double y1, double z1, double x2, double y2, double z2)
 
virtual ~OBox ()
 Destructor. More...
 
virtual OBoxoperator= (const OBox &box)
 
virtual bool operator== (const OBox &box) const
 
virtual bool operator!= (const OBox &box) const
 
virtual bool isInside (const OPoint3D &pt) const
 Test whether the point is inside the box or not. More...
 
virtual bool isInside2D (const OPoint3D &pt) const
 Test whether the point is inside the box or not (from upper point of view). More...
 
virtual bool isInContact (const OBox &box) const
 Test whether the boxes are in contact or not. More...
 
virtual void Enlarge (const OPoint3D &pt)
 Enlarge the box with the point if the point is outside the box. More...
 
virtual void Enlarge (float x, float y, float z)
 Enlarge the box with the point (x,y, z) if the point is outside the box. More...
 
virtual void Enlarge (const OBox &box)
 Enlarge this box with the box passed if this box does not contain the box passed. More...
 
virtual void Translate (const OPoint3D &vectorTranslate)
 Translate this box. More...
 
 OBox ()
 Default constructor. More...
 
 OBox (const OBox &box)
 Copy constructor. More...
 
 OBox (const OCoord3D &min, const OCoord3D &max)
 
 OBox (double x1, double y1, double z1, double x2, double y2, double z2)
 
virtual ~OBox ()
 Destructor. More...
 
virtual OBoxoperator= (const OBox &box)
 
virtual bool operator== (const OBox &box) const
 
virtual bool operator!= (const OBox &box) const
 
virtual bool isInside (const OPoint3D &pt) const
 
virtual bool isInside2D (const OPoint3D &pt) const
 
virtual bool isInContact (const OBox &box) const
 
virtual void Enlarge (const OPoint3D &pt)
 
virtual void Enlarge (float x, float y, float z)
 
virtual void Enlarge (const OBox &box)
 
virtual void Translate (const OPoint3D &vectorTranslate)
 

Public Attributes

OPoint3D _min
 Minimal coordinates of the OBox. More...
 
OPoint3D _max
 Maximal coordinates of the OBox. More...
 

Detailed Description

The box class.

Definition at line 1292 of file 3d.h.

Constructor & Destructor Documentation

◆ OBox() [1/8]

OBox::OBox ( )

Default constructor.

Definition at line 1457 of file 3d.cpp.

Here is the caller graph for this function:

◆ OBox() [2/8]

OBox::OBox ( const OBox box)

Copy constructor.

Definition at line 1462 of file 3d.cpp.

◆ OBox() [3/8]

OBox::OBox ( const OCoord3D min,
const OCoord3D max 
)

Definition at line 1468 of file 3d.cpp.

◆ OBox() [4/8]

OBox::OBox ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)

Definition at line 1474 of file 3d.cpp.

◆ ~OBox() [1/2]

virtual OBox::~OBox ( )
inlinevirtual

Destructor.

Definition at line 1302 of file 3d.h.

Here is the call graph for this function:

◆ OBox() [5/8]

OBox::OBox ( )

Default constructor.

◆ OBox() [6/8]

OBox::OBox ( const OBox box)

Copy constructor.

◆ OBox() [7/8]

OBox::OBox ( const OCoord3D min,
const OCoord3D max 
)

◆ OBox() [8/8]

OBox::OBox ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)

◆ ~OBox() [2/2]

virtual OBox::~OBox ( )
inlinevirtual

Destructor.

Definition at line 1300 of file 3d.h.

Here is the call graph for this function:

Member Function Documentation

◆ Enlarge() [1/6]

virtual void OBox::Enlarge ( const OPoint3D pt)
virtual

◆ Enlarge() [2/6]

void OBox::Enlarge ( const OPoint3D pt)
virtual

Enlarge the box with the point if the point is outside the box.

Parameters
ptThe point to test/make it larger.

Definition at line 1531 of file 3d.cpp.

Here is the caller graph for this function:

◆ Enlarge() [3/6]

virtual void OBox::Enlarge ( float  x,
float  y,
float  z 
)
virtual

◆ Enlarge() [4/6]

void OBox::Enlarge ( float  x,
float  y,
float  z 
)
virtual

Enlarge the box with the point (x,y, z) if the point is outside the box.

Parameters
xX coordinate of the point to test
yY coordinate of the point to test
zZ coordinate of the point to test

Definition at line 1554 of file 3d.cpp.

◆ Enlarge() [5/6]

virtual void OBox::Enlarge ( const OBox box)
virtual

◆ Enlarge() [6/6]

void OBox::Enlarge ( const OBox box)
virtual

Enlarge this box with the box passed if this box does not contain the box passed.

Parameters
boxThe box to test.

Definition at line 1560 of file 3d.cpp.

◆ isInContact() [1/2]

virtual bool OBox::isInContact ( const OBox box) const
virtual

◆ isInContact() [2/2]

bool OBox::isInContact ( const OBox box) const
virtual

Test whether the boxes are in contact or not.

Parameters
boxThe box to test.

Definition at line 1520 of file 3d.cpp.

Here is the caller graph for this function:

◆ isInside() [1/2]

virtual bool OBox::isInside ( const OPoint3D pt) const
virtual

Reimplemented in OBox2, and OBox2.

◆ isInside() [2/2]

bool OBox::isInside ( const OPoint3D pt) const
virtual

Test whether the point is inside the box or not.

Parameters
ptThe point to test.

Reimplemented in OBox2, and OBox2.

Definition at line 1500 of file 3d.cpp.

Here is the caller graph for this function:

◆ isInside2D() [1/2]

virtual bool OBox::isInside2D ( const OPoint3D pt) const
virtual

Reimplemented in OBox2, and OBox2.

◆ isInside2D() [2/2]

bool OBox::isInside2D ( const OPoint3D pt) const
virtual

Test whether the point is inside the box or not (from upper point of view).

Parameters
ptThe point to test.

Reimplemented in OBox2, and OBox2.

Definition at line 1511 of file 3d.cpp.

Here is the caller graph for this function:

◆ operator!=() [1/2]

virtual bool OBox::operator!= ( const OBox box) const
inlinevirtual

Definition at line 1304 of file 3d.h.

Here is the call graph for this function:

◆ operator!=() [2/2]

virtual bool OBox::operator!= ( const OBox box) const
inlinevirtual

Definition at line 1306 of file 3d.h.

Here is the call graph for this function:

◆ operator=() [1/2]

virtual OBox& OBox::operator= ( const OBox box)
virtual

◆ operator=() [2/2]

OBox & OBox::operator= ( const OBox box)
virtual

Definition at line 1480 of file 3d.cpp.

Here is the caller graph for this function:

◆ operator==() [1/2]

virtual bool OBox::operator== ( const OBox box) const
virtual

◆ operator==() [2/2]

bool OBox::operator== ( const OBox box) const
virtual

Definition at line 1490 of file 3d.cpp.

Here is the caller graph for this function:

◆ Translate() [1/2]

virtual void OBox::Translate ( const OPoint3D vectorTranslate)
virtual

◆ Translate() [2/2]

void OBox::Translate ( const OPoint3D vectorTranslate)
virtual

Translate this box.

Parameters
vectorTranslateTranslation.

Definition at line 1570 of file 3d.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _max

OPoint3D OBox::_max

Maximal coordinates of the OBox.

Definition at line 1368 of file 3d.h.

◆ _min

OPoint3D OBox::_min

Minimal coordinates of the OBox.

Definition at line 1367 of file 3d.h.


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