Panda3D
Loading...
Searching...
No Matches
dataNode.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 dataNode.I
10 * @author drose
11 * @date 2002-03-11
12 */
13
14/**
15 *
16 */
17INLINE DataNode::
18DataNode(const std::string &name) :
19 PandaNode(name)
20{
21}
22
23/**
24 *
25 */
26INLINE DataNode::
27DataNode(const DataNode &copy) :
28 PandaNode(copy)
29{
30 // Copying a DataNode doesn't copy its inputs or outputs.
31}
32
33/**
34 * Returns the number of different inputs that have been defined for this node
35 * using define_input(). This indicates the size of the DataNodeTransmit
36 * object that should be passed to do_transmit_data().
37 */
38INLINE int DataNode::
39get_num_inputs() const {
40 return _input_wires.size();
41}
42
43/**
44 * Returns the number of different outputs that have been defined for this
45 * node using define_output(). This indicates the size of the
46 * DataNodeTransmit object that should be passed to do_transmit_data().
47 */
48INLINE int DataNode::
49get_num_outputs() const {
50 return _output_wires.size();
51}
The fundamental type of node for the data graph.
Definition dataNode.h:52
int get_num_inputs() const
Returns the number of different inputs that have been defined for this node using define_input().
Definition dataNode.I:39
int get_num_outputs() const
Returns the number of different outputs that have been defined for this node using define_output().
Definition dataNode.I:49
A basic node of the scene graph or data graph.
Definition pandaNode.h:65