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

The 3D coordinate class. More...

#include <3d.h>

Inheritance diagram for OCoord3D:
Inheritance graph
[legend]

Public Member Functions

 OCoord3D ()
 Default constructor. More...
 
 OCoord3D (const OCoord3D &coord)
 Copy constructor. More...
 
 OCoord3D (double x, double y, double z)
 Constructor with 3D point coordinates. More...
 
virtual ~OCoord3D ()
 Destructor. More...
 
OCoord3Doperator= (const OCoord3D &coord)
 operator= More...
 
bool operator== (const OCoord3D &coord) const
 operator== More...
 
bool operator!= (const OCoord3D &coord) const
 operator!= More...
 
void setCoords (double x, double y, double z)
 Sets the coordinates as an array of double. More...
 
void setCoords (double coords[3])
 Sets the coordinates as an array of double. More...
 
void getCoords (double coords[3])
 Gets the coordinates as an array of double. More...
 
double * getCoords ()
 Gets the coordinates as an array of double. More...
 
 operator const double * () const
 
 operator double * ()
 
 OCoord3D ()
 Default constructor. More...
 
 OCoord3D (const OCoord3D &coord)
 Copy constructor. More...
 
 OCoord3D (double x, double y, double z)
 Constructor with 3D point coordinates. More...
 
virtual ~OCoord3D ()
 Destructor. More...
 
OCoord3Doperator= (const OCoord3D &coord)
 operator= More...
 
bool operator== (const OCoord3D &coord) const
 operator== More...
 
bool operator!= (const OCoord3D &coord) const
 operator!= More...
 
void setCoords (double x, double y, double z)
 
void setCoords (double coords[3])
 
void getCoords (double coords[3])
 
double * getCoords ()
 
 operator const double * () const
 
 operator double * ()
 

Public Attributes

union {
   struct {
      double   _x
 x coordinate of OCoord3D More...
 
      double   _y
 y coordinate of OCoord3D More...
 
      double   _z
 z coordinate of OCoord3D More...
 
   } 
 
   double   _value [3]
 
}; 
 
union {
   struct {
      double   _x
 x coordinate of OCoord3D More...
 
      double   _y
 y coordinate of OCoord3D More...
 
      double   _z
 z coordinate of OCoord3D More...
 
   } 
 
   double   _value [3]
 
}; 
 

Detailed Description

The 3D coordinate class.

Definition at line 229 of file 3d.h.

Constructor & Destructor Documentation

◆ OCoord3D() [1/6]

OCoord3D::OCoord3D ( )

Default constructor.

Definition at line 33 of file 3d.cpp.

Here is the caller graph for this function:

◆ OCoord3D() [2/6]

OCoord3D::OCoord3D ( const OCoord3D coord)

Copy constructor.

Definition at line 47 of file 3d.cpp.

◆ OCoord3D() [3/6]

OCoord3D::OCoord3D ( double  x,
double  y,
double  z 
)

Constructor with 3D point coordinates.

Definition at line 40 of file 3d.cpp.

◆ ~OCoord3D() [1/2]

OCoord3D::~OCoord3D ( )
virtual

Destructor.

Definition at line 52 of file 3d.cpp.

Here is the caller graph for this function:

◆ OCoord3D() [4/6]

OCoord3D::OCoord3D ( )

Default constructor.

◆ OCoord3D() [5/6]

OCoord3D::OCoord3D ( const OCoord3D coord)

Copy constructor.

◆ OCoord3D() [6/6]

OCoord3D::OCoord3D ( double  x,
double  y,
double  z 
)

Constructor with 3D point coordinates.

◆ ~OCoord3D() [2/2]

virtual OCoord3D::~OCoord3D ( )
virtual

Destructor.

Member Function Documentation

◆ getCoords() [1/4]

void OCoord3D::getCoords ( double  coords[3])

◆ getCoords() [2/4]

void OCoord3D::getCoords ( double  coords[3])

Gets the coordinates as an array of double.

Definition at line 97 of file 3d.cpp.

Here is the caller graph for this function:

◆ getCoords() [3/4]

double* OCoord3D::getCoords ( )

◆ getCoords() [4/4]

double * OCoord3D::getCoords ( )

Gets the coordinates as an array of double.

Definition at line 104 of file 3d.cpp.

Here is the caller graph for this function:

◆ operator const double *() [1/2]

OCoord3D::operator const double * ( ) const
inline

cast operator to get coordinates via a table.

Definition at line 267 of file 3d.h.

◆ operator const double *() [2/2]

OCoord3D::operator const double * ( ) const
inline

cast operator to get coordinates via a table.

Definition at line 269 of file 3d.h.

◆ operator double *() [1/2]

OCoord3D::operator double * ( )
inline

cast operator to get coordinates via a table.

Definition at line 271 of file 3d.h.

Here is the call graph for this function:

◆ operator double *() [2/2]

OCoord3D::operator double * ( )
inline

cast operator to get coordinates via a table.

Definition at line 273 of file 3d.h.

◆ operator!=() [1/2]

bool OCoord3D::operator!= ( const OCoord3D coord) const

operator!=

◆ operator!=() [2/2]

bool OCoord3D::operator!= ( const OCoord3D coord) const

operator!=

Definition at line 78 of file 3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

OCoord3D& OCoord3D::operator= ( const OCoord3D coord)

operator=

◆ operator=() [2/2]

OCoord3D & OCoord3D::operator= ( const OCoord3D coord)

operator=

Definition at line 56 of file 3d.cpp.

Here is the caller graph for this function:

◆ operator==() [1/2]

bool OCoord3D::operator== ( const OCoord3D coord) const

operator==

◆ operator==() [2/2]

bool OCoord3D::operator== ( const OCoord3D coord) const

operator==

Definition at line 67 of file 3d.cpp.

Here is the caller graph for this function:

◆ setCoords() [1/4]

void OCoord3D::setCoords ( double  x,
double  y,
double  z 
)

◆ setCoords() [2/4]

void OCoord3D::setCoords ( double  x,
double  y,
double  z 
)

Sets the coordinates as an array of double.

Definition at line 83 of file 3d.cpp.

Here is the caller graph for this function:

◆ setCoords() [3/4]

void OCoord3D::setCoords ( double  coords[3])

◆ setCoords() [4/4]

void OCoord3D::setCoords ( double  coords[3])

Sets the coordinates as an array of double.

Definition at line 90 of file 3d.cpp.

Member Data Documentation

◆ @23

union { ... }

◆ @8

union { ... }

◆ _value

double OCoord3D::_value[3]

Definition at line 284 of file 3d.h.

◆ _x

double OCoord3D::_x

x coordinate of OCoord3D

Definition at line 280 of file 3d.h.

◆ _y

double OCoord3D::_y

y coordinate of OCoord3D

Definition at line 281 of file 3d.h.

◆ _z

double OCoord3D::_z

z coordinate of OCoord3D

Definition at line 282 of file 3d.h.


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