|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Class to manage targets. More...
#include <TargetManager.h>

Public Member Functions | |
| TargetManager () | |
| Constructor. More... | |
| bool | registerTarget (const vec3 newTarget) |
| Register a new target. More... | |
| bool | registerTargets (std::vector< vec3 > &newTargets) |
| Register a vector of targets. More... | |
| void | finish () |
| Delete the uniqueTargets array. More... | |
| unsigned int | getTargetsAround (const vec3 center, unsigned int nbTargets, decimal distance, std::vector< vec3 > &result) |
| Get the targets in a distance range from a center. More... | |
| std::vector< vec3 > & | getTargets () |
| Return the targets. More... | |
Protected Attributes | |
| std::vector< vec3 > | targets |
| Vector of targets. More... | |
| std::set< vec3 > | uniqueTargets |
| Set of single targets. More... | |
Class to manage targets.
Definition at line 26 of file TargetManager.h.
|
inline |
Constructor.
Definition at line 31 of file TargetManager.h.
| void TargetManager::finish | ( | ) |
Delete the uniqueTargets array.
Definition at line 42 of file TargetManager.cpp.
|
inline |
Return the targets.
Definition at line 42 of file TargetManager.h.
| unsigned int TargetManager::getTargetsAround | ( | const vec3 | center, |
| unsigned int | nbTargets, | ||
| decimal | distance, | ||
| std::vector< vec3 > & | result | ||
| ) |
Get the targets in a distance range from a center.
Definition at line 47 of file TargetManager.cpp.
| bool TargetManager::registerTarget | ( | const vec3 | newTarget | ) |
Register a new target.
Definition at line 18 of file TargetManager.cpp.

| bool TargetManager::registerTargets | ( | std::vector< vec3 > & | newTargets | ) |
Register a vector of targets.
Definition at line 32 of file TargetManager.cpp.

|
protected |
Vector of targets.
Definition at line 48 of file TargetManager.h.
|
protected |
Set of single targets.
Definition at line 49 of file TargetManager.h.