1 /* === S I N F G =========================================================== */
2 /*! \file valuenode_segcalctangent.h
3 ** \brief Template Header
5 ** $Id: valuenode_segcalctangent.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_VALUENODE_SEGCALCTANGENT_H
25 #define __SINFG_VALUENODE_SEGCALCTANGENT_H
27 /* === H E A D E R S ======================================================= */
29 #include "valuenode.h"
31 /* === M A C R O S ========================================================= */
33 /* === C L A S S E S & S T R U C T S ======================================= */
37 class ValueNode_SegCalcTangent : public LinkableValueNode
39 ValueNode::RHandle segment_;
40 ValueNode::RHandle amount_;
42 ValueNode_SegCalcTangent(const ValueBase::Type &x=ValueBase::TYPE_VECTOR);
46 typedef etl::handle<ValueNode_SegCalcTangent> Handle;
47 typedef etl::handle<const ValueNode_SegCalcTangent> ConstHandle;
49 //static Handle create(const ValueBase::Type &x=ValueBase::TYPE_VECTOR);
52 virtual ValueBase operator()(Time t)const;
54 virtual ~ValueNode_SegCalcTangent();
56 virtual String get_name()const;
57 virtual String get_local_name()const;
60 virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
61 virtual int link_count()const;
62 virtual String link_name(int i)const;
64 virtual String link_local_name(int i)const;
65 virtual int get_link_index_from_name(const String &name)const;
68 virtual bool set_link_vfunc(int i,ValueNode::Handle x);
69 LinkableValueNode* create_new()const;
72 using sinfg::LinkableValueNode::get_link_vfunc;
73 using sinfg::LinkableValueNode::set_link_vfunc;
74 static bool check_type(ValueBase::Type type);
75 static ValueNode_SegCalcTangent* create(const ValueBase &x=ValueBase::TYPE_VECTOR);
76 }; // END of class ValueNode_SegCalcTangent
78 }; // END of namespace sinfg
80 /* === E N D =============================================================== */