00001 #ifndef PROPERTYEVENT_H 00002 #define PROPERTYEVENT_H 00003 00004 #include "Types.h" 00005 00006 namespace RenderTools { 00007 00008 class PropertyEvent { 00009 public: 00010 enum Type{ 00011 CHANGED, 00012 CONNECT, 00013 DISCONNECT 00014 }; 00015 00016 PropertyEvent( Type type, const PropertyPtr p, const vector<float> & values = vector<float>() ); 00017 00018 Type getType( void ) const; 00019 const PropertyPtr getProperty( void ) const; 00020 const vector<float> & getValues( void ) const; 00021 00022 private: 00023 Type m_type; 00024 PropertyPtr m_property; 00025 vector<float> m_values; 00026 }; 00027 00028 }; 00029 00030 #endif