1 /* === S Y N F I G ========================================================= */
2 /*! \file valuenode_const.cpp
3 ** \brief Template File
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 /* === H E A D E R S ======================================================= */
32 #include "valuenode_const.h"
37 /* === U S I N G =========================================================== */
41 using namespace synfig;
43 /* === M A C R O S ========================================================= */
45 /* === G L O B A L S ======================================================= */
47 /* === P R O C E D U R E S ================================================= */
49 /* === M E T H O D S ======================================================= */
51 ValueNode_Const::ValueNode_Const()
57 ValueNode_Const::ValueNode_Const(const ValueBase &x):
58 ValueNode (x.get_type()),
66 ValueNode_Const::create(const ValueBase &x)
68 return new ValueNode_Const(x);
73 ValueNode_Const::clone(const GUID& deriv_guid)const
75 { ValueNode* x(find_value_node(get_guid()^deriv_guid).get()); if(x)return x; }
76 ValueNode* ret(new ValueNode_Const(value));
77 ret->set_guid(get_guid()^deriv_guid);
82 ValueNode_Const::~ValueNode_Const()
88 ValueNode_Const::operator()(Time t)const
95 ValueNode_Const::get_value()const
101 ValueNode_Const::get_value()
107 ValueNode_Const::set_value(const ValueBase &data)
118 ValueNode_Const::get_name()const
124 ValueNode_Const::get_local_name()const
126 return _("Constant");
129 void ValueNode_Const::get_times_vfunc(Node::time_set &set) const