4 #ifndef FIRE_GEAR_ENTITY_HPP_INCLUDED
5 #define FIRE_GEAR_ENTITY_HPP_INCLUDED
9 #include "fire/export.hpp"
11 #include "fire/gear/event/EntityEvent.hpp"
12 #include "fire/gear/geom/GeometryType.hpp"
13 #include "fire/gear/geom/event/GeometryEventListener.hpp"
76 _entityEvent = entityEvent;
77 }
catch (
const std::exception& exception) {
94 switch (geometryEvent.
getType()) {
95 case geom::event::GeometryEventType::Unknown:
96 case geom::event::GeometryEventType::AfterDestroy: {
97 _entityEvent->
raise(gear::event::EntityEventType::Unknown);
100 case geom::event::GeometryEventType::BeforeUpdate: {
101 _entityEvent->raise(gear::event::EntityEventType::BeforeUpdate);
104 case geom::event::GeometryEventType::AfterUpdate: {
105 _entityEvent->raise(gear::event::EntityEventType::AfterUpdate);
108 case geom::event::GeometryEventType::BeforeDestroy: {
109 _entityEvent->raise(gear::event::EntityEventType::BeforeDestroy);
113 }
catch (
const std::exception& exception) {
120 typedef std::vector< geom::Geometry* > vectorGeomType;
127 typedef std::vector< geom::Geometry* >::iterator
iterator;
157 vectorGeomType _geometriesVector;
171 std::auto_ptr< GeometryEventListener > _geometryEventListener;
178 void clearGeometry();
256 virtual vectorGeomType getGeometries();
Definition: Entity.hpp:44
std::vector< geom::Geometry * >::const_iterator const_iterator
Definition: Entity.hpp:134
Classe per la gestione di un evento di geometria.
Definition: GeometryEvent.hpp:46
Classe per la gestione di un oggetto.
Definition: Object.hpp:29
Definition: Envelope.hpp:31
Classe per la gestione di un eventi di entitÃ
Definition: EntityEvent.hpp:39
GeometryType
Definition: GeometryType.hpp:43
fire::gear::geom::event::GeometryEventType::GeometryEventType getType() const
Restituisce il tipo dell'evento di geometria.
Classe per la gestione di un ascoltare di un evento di geometria.
Definition: GeometryEventListener.hpp:39
Definition: Geometry.hpp:69
std::vector< geom::Geometry * >::const_reverse_iterator const_reverse_iterator
Definition: Entity.hpp:148
std::vector< geom::Geometry * >::iterator iterator
Definition: Entity.hpp:127
std::vector< geom::Geometry * >::reverse_iterator reverse_iterator
Definition: Entity.hpp:141
void raise(fire::gear::event::EntityEventType::EntityEventType type)
Scatena l'evento di entitÃ