1 /* === S I N F G =========================================================== */
2 /*! \file valuenode_stripes.h
3 ** \brief Template Header
5 ** $Id: valuenode_stripes.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_STRIPES_H
25 #define __SINFG_VALUENODE_STRIPES_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 struct ValueNode_Stripes : public LinkableValueNode
39 typedef etl::handle<ValueNode_Stripes> Handle;
40 typedef etl::handle<const ValueNode_Stripes> ConstHandle;
48 ValueNode::RHandle color1_;
49 ValueNode::RHandle color2_;
50 ValueNode::RHandle stripes_;
51 ValueNode::RHandle width_;
55 virtual ~ValueNode_Stripes();
57 // static Handle create(ValueBase::Type id=ValueBase::TYPE_GRADIENT);
59 bool set_color1(ValueNode::Handle a);
60 ValueNode::Handle get_color1()const { return color1_; }
62 bool set_color2(ValueNode::Handle a);
63 ValueNode::Handle get_color2()const { return color2_; }
65 bool set_stripes(ValueNode::Handle b);
66 ValueNode::Handle get_stripes()const { return stripes_; }
68 bool set_width(ValueNode::Handle x);
71 virtual bool set_link_vfunc(int i,ValueNode::Handle x);
73 virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
75 virtual int link_count()const;
77 virtual String link_local_name(int i)const;
78 virtual String link_name(int i)const;
79 virtual int get_link_index_from_name(const String &name)const;
81 virtual ValueBase operator()(Time t)const;
83 virtual String get_name()const;
84 virtual String get_local_name()const;
86 // static bool check_type(const ValueBase::Type &type);
88 LinkableValueNode* create_new()const;
91 using sinfg::LinkableValueNode::get_link_vfunc;
92 using sinfg::LinkableValueNode::set_link_vfunc;
93 static bool check_type(ValueBase::Type type);
94 static ValueNode_Stripes* create(const ValueBase &x=ValueBase::TYPE_GRADIENT);
95 }; // END of class ValueNode_Stripes
97 }; // END of namespace sinfg
99 /* === E N D =============================================================== */