|
| | Event (const vec3 &position=vec3(0.0, 0.0, 0.0), const vec3 &incomingDirection=vec3(0.0, 0.0, 0.0), Shape *_shape=NULL) |
| | Default constructor. More...
|
| |
| | Event (const Event &other) |
| | Copy constructor. More...
|
| |
| virtual | ~Event () |
| | Destructor. More...
|
| |
| const vec3 & | getPosition () const |
| | Return a reference to the event location point. More...
|
| |
| void | setPosition (const vec3 &_pos) |
| | Set a new point to the event. More...
|
| |
| vec3 | getIncomingDirection () |
| | Return the direction of the incoming vector. More...
|
| |
| void | setIncomingDirection (const vec3 &_from) |
| | Set a new incoming vector. More...
|
| |
| bool | isReponseLeft () |
| | Return true if it remains rays to launch. More...
|
| |
| int | getNbResponseLeft () |
| | Return the number of remaining rays to launch. More...
|
| |
| virtual void | setNbResponseLeft (int _nbResponseLeft) |
| | Set the number of remaining rays to launch. More...
|
| |
| virtual int | getInitialNbResponseLeft () const |
| | Return the number of rays to launch after event. More...
|
| |
| Shape * | getShape () |
| | Return the primitive of the impact. More...
|
| |
| const Shape * | getShape () const |
| |
| void | setShape (Shape *_shape) |
| | Set the impacted primitive of the event. More...
|
| |
| virtual bool | getResponse (vec3 &r, bool force=false) |
| | Return a direction vector for the impact. Ray direction vector in response of the event. More...
|
| |
| virtual bool | isAcceptableResponse (vec3 &test) |
| | Return true if the ray direction vector in response of the event is acceptable. More...
|
| |
| virtual bool | generateTest (std::vector< vec3 > &succededTest, std::vector< vec3 > &failTest, unsigned int nbResponses) |
| |
| virtual bool | generateResponse (std::vector< vec3 > &responses, unsigned int nbResponses) |
| |
| virtual bool | appendTarget (vec3 target, bool force=false) |
| |
| virtual int | getType () const |
| | Return the event type. More...
|
| |
| virtual void | setType (const typeevent &_type) |
| | Added by DTh to make possible simple test of rays. More...
|
| |
| virtual double | getAngle () const |
| | Get incident angle. More...
|
| |
| const decimal | distance (const Event &other) const |
| | Return distance from another event. More...
|
| |
| | Base () |
| | Default constructor. More...
|
| |
| | Base (const Base &other) |
| | Copy constructor. More...
|
| |
| virtual | ~Base () |
| | Destructor. More...
|
| |
| std::string | getName () |
| | Get the name of the object. More...
|
| |
| void | setName (const std::string &_name) |
| | Set the name of the object. More...
|
| |
Class describing an event (reflection, diffraction, ...)
Definition at line 36 of file Event.h.