valuenode_gradientrotate.h

Go to the documentation of this file.
00001 /* === S Y N F I G ========================================================= */
00022 /* ========================================================================= */
00023 
00024 /* === S T A R T =========================================================== */
00025 
00026 #ifndef __SYNFIG_VALUENODE_GRADIENTROTATE_H
00027 #define __SYNFIG_VALUENODE_GRADIENTROTATE_H
00028 
00029 /* === H E A D E R S ======================================================= */
00030 
00031 #include "valuenode.h"
00032 
00033 /* === M A C R O S ========================================================= */
00034 
00035 /* === C L A S S E S & S T R U C T S ======================================= */
00036 
00037 namespace synfig {
00038 
00039 struct ValueNode_GradientRotate : public LinkableValueNode
00040 {
00041     typedef etl::handle<ValueNode_GradientRotate> Handle;
00042     typedef etl::handle<const ValueNode_GradientRotate> ConstHandle;
00043 
00044 protected:
00045 
00046     ValueNode_GradientRotate(const Gradient& x);
00047 
00048 private:
00049 
00050     ValueNode::RHandle ref_gradient;
00051     ValueNode::RHandle ref_offset;
00052 
00053 public:
00054 
00055     virtual ~ValueNode_GradientRotate();
00056 
00057 //  static Handle create(ValueBase::Type id=ValueBase::TYPE_GRADIENT);
00058 
00060     bool set_gradient(ValueNode::Handle a);
00061 
00063     ValueNode::Handle get_gradient()const { return ref_gradient; }
00064 
00066     bool set_offset(ValueNode::Handle b);
00067 
00069     ValueNode::Handle get_offset()const { return ref_gradient; }
00070 
00071 
00072 
00073     virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
00074 
00075     virtual int link_count()const;
00076 
00077     virtual String link_local_name(int i)const;
00078     virtual String link_name(int i)const;
00079     virtual int get_link_index_from_name(const String &name)const;
00080 
00081     virtual ValueBase operator()(Time t)const;
00082 
00083     virtual String get_name()const;
00084     virtual String get_local_name()const;
00085 
00086 //  static bool check_type(const ValueBase::Type &type);
00087 protected:
00088     virtual bool set_link_vfunc(int i,ValueNode::Handle x);
00089 
00090     LinkableValueNode* create_new()const;
00091 
00092 public:
00093     using synfig::LinkableValueNode::get_link_vfunc;
00094 
00095     using synfig::LinkableValueNode::set_link_vfunc;
00096     static bool check_type(ValueBase::Type type);
00097     static ValueNode_GradientRotate* create(const ValueBase &x=ValueBase::TYPE_GRADIENT);
00098 }; // END of class ValueNode_GradientRotate
00099 
00100 }; // END of namespace synfig
00101 
00102 /* === E N D =============================================================== */
00103 
00104 #endif

Generated on Wed Dec 12 03:11:41 2007 for synfig by  doxygen 1.5.4