1 /* === S I N F G =========================================================== */
2 /*! \file valuenode_bline.h
3 ** \brief Template Header
5 ** $Id: valuenode_bline.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_BLINE_H
25 #define __SINFG_VALUENODE_BLINE_H
27 /* === H E A D E R S ======================================================= */
32 #include "valuenode.h"
35 #include "blinepoint.h"
36 #include "valuenode_dynamiclist.h"
38 /* === M A C R O S ========================================================= */
40 /* === C L A S S E S & S T R U C T S ======================================= */
45 //! Converts a list of bline points into a list of segments
46 ValueBase convert_bline_to_segment_list(const ValueBase &bline);
48 //! Converts a list of bline points into a list of widths
49 ValueBase convert_bline_to_width_list(const ValueBase &bline);
51 /*! \class ValueNode_BLine
54 class ValueNode_BLine : public ValueNode_DynamicList
58 typedef etl::handle<ValueNode_BLine> Handle;
59 typedef etl::handle<const ValueNode_BLine> ConstHandle;
68 virtual ValueBase operator()(Time t)const;
70 virtual ~ValueNode_BLine();
72 virtual String link_local_name(int i)const;
74 virtual String get_name()const;
75 virtual String get_local_name()const;
77 virtual ValueNode* clone(const GUID& deriv_guid=GUID())const;
79 virtual ListEntry create_list_entry(int index, Time time=0, Real origin=0.5);
83 LinkableValueNode* create_new()const;
86 //using sinfg::LinkableValueNode::set_link_vfunc;
87 static bool check_type(ValueBase::Type type);
88 static ValueNode_BLine* create(const ValueBase &x=ValueBase::TYPE_LIST);
89 }; // END of class ValueNode_BLine
91 typedef ValueNode_BLine::ListEntry::ActivepointList ActivepointList;
93 }; // END of namespace sinfg
95 /* === E N D =============================================================== */