activepoint.h

Go to the documentation of this file.
00001 /* === S Y N F I G ========================================================= */
00021 /* ========================================================================= */
00022 
00023 /* === S T A R T =========================================================== */
00024 
00025 #ifndef __SYNFIG_ACTIVEPOINT_H
00026 #define __SYNFIG_ACTIVEPOINT_H
00027 
00028 /* === H E A D E R S ======================================================= */
00029 
00030 #include "time.h"
00031 #include "uniqueid.h"
00032 #include <ETL/handle>
00033 
00034 /* === M A C R O S ========================================================= */
00035 
00036 /* === T Y P E D E F S ===================================================== */
00037 
00038 /* === C L A S S E S & S T R U C T S ======================================= */
00039 
00040 namespace synfig {
00041 class GUID;
00042 class ValueNode;
00043     
00044 struct Activepoint : public UniqueID
00045 {
00046 private:
00047     etl::loose_handle<ValueNode> parent_;
00048     int index;
00049     
00050 public:
00052     Time time;
00053     
00055     int priority;
00056 
00058     bool state;
00059         
00060     bool operator<(const Activepoint& rhs) { return time<rhs.time; }
00061     bool operator<(const Time& rhs) { return time<rhs; }
00062     
00063     Activepoint(const Time &time, const bool &state, int p=0): time(time), priority(p),state(state) { }
00064     Activepoint() { }
00065     
00066     const Time& get_time()const { return time; }
00067     void set_time(const Time& x) { time=x; }
00068 
00069     bool get_state()const { return state; }
00070     void set_state(bool x) { state=x; }
00071 
00072     int get_priority()const { return priority; }
00073     void set_priority(int x) { priority=x; }
00074 
00075     const etl::loose_handle<ValueNode> &get_parent_value_node()const { return parent_; }
00076     void set_parent_value_node(const etl::loose_handle<ValueNode> &x) { parent_=x; }    
00077     
00078     int get_parent_index()const { return index; }
00079     void set_parent_index(int x) { index=x; }
00080     
00081     GUID get_guid()const;
00082 }; // END of struct ValueNode_BLine::Activepoint
00083 
00084 }; // END of namespace synfig
00085 
00086 /* === E N D =============================================================== */
00087 
00088 #endif

Generated on Fri Jun 23 15:20:49 2006 for synfig by  doxygen 1.4.6