Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JEmitter.hh
Go to the documentation of this file.
1 #ifndef __JACOUSTICS__JEMITTER__
2 #define __JACOUSTICS__JEMITTER__
3 
4 #include "JLang/JObjectID.hh"
6 
7 
8 /**
9  * \file
10  *
11  * Acoustic emitter.
12  * \author mdejong
13  */
14 namespace JACOUSTICS {}
15 namespace JPP { using namespace JACOUSTICS; }
16 
17 namespace JACOUSTICS {
18 
19  using JLANG::JObjectID;
22 
23 
24  /**
25  * Acoustic emitter.
26  */
27  struct JEmitter :
28  public JObjectID,
29  public JPosition3D
30  {
31  /**
32  * Default constructor.
33  */
35  JObjectID (),
36  JPosition3D()
37  {}
38 
39 
40  /**
41  * Constructor.
42  *
43  * \param id identifier
44  * \param pos position
45  */
46  JEmitter(const int id, const JVector3D& pos) :
47  JObjectID (id),
48  JPosition3D(pos)
49  {}
50 
51 
52  /**
53  * Get emitter.
54  *
55  * \return emitter
56  */
57  const JEmitter& getEmitter() const
58  {
59  return static_cast<const JEmitter&>(*this);
60  }
61  };
62 }
63 
64 #endif
JEmitter(const int id, const JVector3D &pos)
Constructor.
Definition: JEmitter.hh:46
Data structure for vector in three dimensions.
Definition: JVector3D.hh:34
Acoustic emitter.
Definition: JEmitter.hh:27
const JEmitter & getEmitter() const
Get emitter.
Definition: JEmitter.hh:57
Auxiliary class for object identification.
Definition: JObjectID.hh:22
Data structure for position in three dimensions.
Definition: JPosition3D.hh:36
JEmitter()
Default constructor.
Definition: JEmitter.hh:34