valuenode_segcalcvertex.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_VALUENODE_SEGCALCVERTEX_H
00026 #define __SYNFIG_VALUENODE_SEGCALCVERTEX_H
00027 
00028 /* === H E A D E R S ======================================================= */
00029 
00030 #include "valuenode.h"
00031 
00032 /* === M A C R O S ========================================================= */
00033 
00034 /* === C L A S S E S & S T R U C T S ======================================= */
00035 
00036 namespace synfig {
00037 
00038 class ValueNode_SegCalcVertex : public LinkableValueNode
00039 {
00040     ValueNode::RHandle segment_;
00041     ValueNode::RHandle amount_;
00042 
00043     ValueNode_SegCalcVertex(const ValueBase::Type &x=ValueBase::TYPE_VECTOR);
00044 
00045 public:
00046 
00047     typedef etl::handle<ValueNode_SegCalcVertex> Handle;
00048     typedef etl::handle<const ValueNode_SegCalcVertex> ConstHandle;
00049 
00050 //  static Handle create(const ValueBase::Type &x=ValueBase::TYPE_VECTOR);
00051 
00052 
00053     virtual ValueBase operator()(Time t)const;
00054 
00055     virtual ~ValueNode_SegCalcVertex();
00056 
00057     virtual String get_name()const;
00058     virtual String get_local_name()const;
00059 //  static bool check_type(const ValueBase::Type &type);
00060 
00061 
00062     virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
00063     virtual int link_count()const;
00064     virtual String link_name(int i)const;
00065 
00066     virtual String link_local_name(int i)const;
00067     virtual int get_link_index_from_name(const String &name)const;
00068 
00069 protected:
00070     LinkableValueNode* create_new()const;
00071     virtual bool set_link_vfunc(int i,ValueNode::Handle x);
00072 
00073 public:
00074     using synfig::LinkableValueNode::get_link_vfunc;
00075     using synfig::LinkableValueNode::set_link_vfunc;
00076     static bool check_type(ValueBase::Type type);
00077     static ValueNode_SegCalcVertex* create(const ValueBase &x=ValueBase::TYPE_VECTOR);
00078 }; // END of class ValueNode_SegCalcVertex
00079 
00080 }; // END of namespace synfig
00081 
00082 /* === E N D =============================================================== */
00083 
00084 #endif

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