Classe decrivant un rayon acoustique gere par un lancer de rayon. Cette classe doit permettre la modelisation de rayons pour l'affichage de Tympan.
More...
|
| | TYRay () |
| | Constructeur par defaut. More...
|
| |
| | TYRay (const acoustic_path &ap) |
| | Build a TYRay from an acoustic_path. More...
|
| |
| | TYRay (const TYRay &ray) |
| | Constructeur par copie d'un rayon. More...
|
| |
| | ~TYRay () |
| |
| virtual TYRay & | operator= (const TYRay &other) |
| | equal operator More...
|
| |
| bool | deepCopy (TYRay *pOther, bool copyId, bool pUseCopyTag=false) |
| | Deep copy of a ray mainly the events tab. More...
|
| |
| virtual DOM_Element | toXML (DOM_Element &domElement) |
| |
| virtual int | fromXML (DOM_Element domElement) |
| |
| void | setSource (TYSourcePonctuelle *source) |
| | Place la source du rayon. More...
|
| |
| TYSourcePonctuelle * | getSource () |
| | Recuperation de la source du rayon. More...
|
| |
| void | setRecepteur (TYPointCalcul *recep) |
| | Place le recepteur du rayon. Le dernier point de la polyligne est mis a jour. More...
|
| |
| TYPointCalcul * | getRecepteur () |
| | Recuperation du recepteur du rayon. More...
|
| |
| | TYElement () |
| |
| | TYElement (TYElement *pParent, bool PutInInstanceList=true) |
| |
| | TYElement (const TYElement &other, bool PutInInstanceList=true) |
| |
| virtual | ~TYElement () |
| |
| void | setID (TYUUID id) |
| |
| void | setID (const QString &str_id) |
| |
| const TYUUID & | getID () const |
| |
| QString | getStringID () const |
| |
| bool | hasNullID () const |
| |
| void | regenerateID () |
| |
| void | setName (QString name) |
| |
| void | setName (std::string name) |
| |
| virtual QString | getName () const |
| |
| void | setParent (TYElement *pParent) |
| |
| TYElement * | getParent () const |
| |
| virtual void | setIsAcousticModified (bool isModified) |
| |
| bool | getIsAcousticModified () |
| |
| virtual void | setIsGeometryModified (bool isModified) |
| |
| bool | getIsGeometryModified () |
| |
| TYElement & | operator= (const TYElement &other) |
| |
| bool | operator== (const TYElement &other) const |
| |
| bool | operator!= (const TYElement &other) const |
| |
| virtual bool | deepCopy (const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false) |
| |
| virtual std::string | toString () const |
| |
| bool | callFromXMLIfEqual (DOM_Element &domElement, int *pRetVal=NULL) |
| |
| std::string | getMetierName () |
| |
| void * | getAllUses () |
| |
| void | setAllUses (void *allUses) |
| |
| void | cleanAllUses () |
| |
| virtual void | updateCurrentCalcul (TYListID &listID, bool recursif=true) |
| |
| virtual void | getChilds (LPTYElementArray &childs, bool recursif=true) |
| |
| virtual void | setInCurrentCalcul (bool state, bool recurschild=true, bool recursparent=true) |
| |
| virtual bool | isInCurrentCalcul () |
| |
| void | addCopy () |
| | Increment le compteur de nombre de copies. More...
|
| |
| void | setCopyCount (const unsigned int copyCount) |
| | Modifie la vaeur du compteur. More...
|
| |
| | IRefCount () |
| |
| virtual | ~IRefCount () |
| |
| virtual int | incRef () |
| |
| virtual int | decRef () |
| |
| int | getRefCount () const |
| |
| virtual | ~OPrototype () |
| |
| virtual OPrototype * | clone () const =0 |
| |
| virtual const char * | getClassName () const |
| |
| bool | isA (const char *className) const |
| |
| | acoustic_path () |
| | Default constructor. More...
|
| |
| virtual | ~acoustic_path () |
| | Destructor. More...
|
| |
| | acoustic_path (unsigned int source_idx, unsigned int receptor_idx, tab_acoustic_events &_events) |
| | Build the acoustic path with a source id, a receptor id and a list of acoustic events positions (reflection, diffraction, etc...) More...
|
| |
| | acoustic_path (const acoustic_path &ray) |
| | Copy constructor of a acoustic path. More...
|
| |
| virtual void | cleanEventsTab () |
| | clean tab of events More...
|
| |
| virtual acoustic_path & | operator= (const acoustic_path &other) |
| | equal operator More...
|
| |
| virtual bool | deepCopy (acoustic_path *pOther) |
| | Deep copy of a ray mainly the events tab. More...
|
| |
| virtual void | setSource (unsigned int source_idx_, OPoint3D &globalPosition) |
| | Set the ray source. More...
|
| |
| virtual void | setSource (unsigned int source_idx_) |
| | Set the ray source. More...
|
| |
| virtual unsigned int | getSource_idx () |
| | Get the source id. More...
|
| |
| virtual void | setRecepteur (unsigned int receptor_idx_, OPoint3D &globalPosition) |
| | Set the ray receptor. The last polyline point is updated. More...
|
| |
| virtual void | setRecepteur (unsigned int receptor_idx_) |
| | Set the ray receptor. More...
|
| |
| virtual unsigned int | getRecepteur_idx () |
| | Get the receptor id. More...
|
| |
| virtual void | setIdentifiant (unsigned int id) |
| | Set the ray id. More...
|
| |
| virtual unsigned int | getIdentifiant () const |
| | Get the ray id. More...
|
| |
| virtual void | addEvent (acoustic_event *TYEvent) |
| | Add an event to the events list of the ray. More...
|
| |
| virtual tab_acoustic_events & | getEvents () |
| | Get the events list of the ray. More...
|
| |
| virtual const tab_acoustic_events & | getEvents () const |
| |
| virtual void | setEvents (tab_acoustic_events &tabEvents) |
| | Set the events list of the ray. More...
|
| |
| virtual std::vector< int > | getIndexOfEvents (const int &eventType) const |
| | return a tab of indexes of events of the same type in a ray you can merge two types of events (example TYREFLEXION | TYRECEPTEUR) vector returned count all events of the two types More...
|
| |
| virtual size_t | getNbEventType (const ACOUSTIC_EVENT_TYPES &eventType) |
| | return the number of events of a type More...
|
| |
| virtual void | copyEvents (const acoustic_path *tyRay, ACOUSTIC_EVENT_TYPES eventType) |
| | copy only events matching eventType to _events tab More...
|
| |
| virtual void | setNextDistance (ACOUSTIC_EVENT_TYPES eventType) |
| | Compute distance between events of the type "eventType" and set distNextEvent to each event matching enventType. More...
|
| |
| virtual void | setAngles (ACOUSTIC_EVENT_TYPES eventType) |
| | Compute angles of incoming ray segment at event point. More...
|
| |
| virtual double | getLength () |
| | Return total length of the ray taking account of all events. More...
|
| |
| virtual size_t | getnbEvents () |
| | Return the number of events of the ray. More...
|
| |
| virtual void | setPosSourceGlobal (const OPoint3D &pos) |
| | Set the source position in the global frame. More...
|
| |
| virtual OPoint3D & | getPosSourceGlobal () |
| | Get the source position in the global frame. More...
|
| |
| virtual void | setPosReceptGlobal (const OPoint3D &pos) |
| | Set the receptor position in the global frame. More...
|
| |
| virtual OPoint3D & | getPosReceptGlobal () |
| | Get the receptor position in the global frame. More...
|
| |
| void | build_links_between_events () |
| | TYRayEvent has to know is direct neighbourg (before and after him) More...
|
| |
| void | compute_shot_angle () |
| | Compute shot angle from source. More...
|
| |
Classe decrivant un rayon acoustique gere par un lancer de rayon. Cette classe doit permettre la modelisation de rayons pour l'affichage de Tympan.
- Todo:
- : ajout des listes de diffractions/reflexions
- Author
- Projet_Tympan
Definition at line 34 of file TYRay.h.