Panda3D
panda
src
chan
animChannelScalarDynamic.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file animChannelScalarDynamic.I
10
* @author drose
11
* @date 2003-10-20
12
*/
13
14
/**
15
* Gets the value of the channel. This will return the value explicitly
16
* specified by set_value() unless a value node was specified using
17
* set_value_node().
18
*/
19
INLINE PN_stdfloat AnimChannelScalarDynamic::
20
get_value()
const
{
21
if
(_value_node !=
nullptr
) {
22
return
_value->get_pos()[0];
23
}
else
{
24
return
_float_value;
25
}
26
}
27
28
/**
29
* Returns the node that was set via set_value_node(), if any.
30
*/
31
INLINE
PandaNode
*AnimChannelScalarDynamic::
32
get_value_node()
const
{
33
return
_value_node;
34
}
PandaNode
A basic node of the scene graph or data graph.
Definition:
pandaNode.h:64
Generated on Wed Jan 23 2019 21:39:52 for Panda3D by
1.8.15