1 /* === S Y N F I G ========================================================= */
2 /*! \file valuenode_bline.h
3 ** \brief Header file for implementation of the "BLine" valuenode conversion.
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_VALUENODE_BLINE_H
26 #define __SYNFIG_VALUENODE_BLINE_H
28 /* === H E A D E R S ======================================================= */
33 #include "valuenode.h"
36 #include "blinepoint.h"
37 #include "valuenode_dynamiclist.h"
39 /* === M A C R O S ========================================================= */
41 /* === C L A S S E S & S T R U C T S ======================================= */
46 //! Converts a list of bline points into a list of segments
47 ValueBase convert_bline_to_segment_list(const ValueBase &bline);
49 //! Converts a list of bline points into a list of widths
50 ValueBase convert_bline_to_width_list(const ValueBase &bline);
52 /*! \class ValueNode_BLine
55 class ValueNode_BLine : public ValueNode_DynamicList
59 typedef etl::handle<ValueNode_BLine> Handle;
60 typedef etl::handle<const ValueNode_BLine> ConstHandle;
69 virtual ValueBase operator()(Time t)const;
71 virtual ~ValueNode_BLine();
73 virtual String link_local_name(int i)const;
75 virtual String get_name()const;
76 virtual String get_local_name()const;
78 virtual ValueNode* clone(const GUID& deriv_guid=GUID())const;
80 virtual ListEntry create_list_entry(int index, Time time=0, Real origin=0.5);
84 LinkableValueNode* create_new()const;
87 //using synfig::LinkableValueNode::set_link_vfunc;
88 static bool check_type(ValueBase::Type type);
89 static ValueNode_BLine* create(const ValueBase &x=ValueBase::TYPE_LIST);
90 }; // END of class ValueNode_BLine
92 typedef ValueNode_BLine::ListEntry::ActivepointList ActivepointList;
94 }; // END of namespace synfig
96 /* === E N D =============================================================== */