Panda3D
 All Classes Functions Variables Enumerations
dataNode.I
1 // Filename: dataNode.I
2 // Created by: drose (11Mar02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: DataNode::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE DataNode::
22 DataNode(const string &name) :
23  PandaNode(name)
24 {
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: DataNode::Copy Constructor
29 // Access: Protected
30 // Description:
31 ////////////////////////////////////////////////////////////////////
32 INLINE DataNode::
33 DataNode(const DataNode &copy) :
34  PandaNode(copy)
35 {
36  // Copying a DataNode doesn't copy its inputs or outputs.
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: DataNode::get_num_inputs
41 // Access: Public
42 // Description: Returns the number of different inputs that have been
43 // defined for this node using define_input(). This
44 // indicates the size of the DataNodeTransmit object
45 // that should be passed to do_transmit_data().
46 ////////////////////////////////////////////////////////////////////
47 INLINE int DataNode::
48 get_num_inputs() const {
49  return _input_wires.size();
50 }
51 
52 ////////////////////////////////////////////////////////////////////
53 // Function: DataNode::get_num_outputs
54 // Access: Public
55 // Description: Returns the number of different outputs that have been
56 // defined for this node using define_output(). This
57 // indicates the size of the DataNodeTransmit object
58 // that should be passed to do_transmit_data().
59 ////////////////////////////////////////////////////////////////////
60 INLINE int DataNode::
61 get_num_outputs() const {
62  return _output_wires.size();
63 }
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72
The fundamental type of node for the data graph.
Definition: dataNode.h:64
int get_num_outputs() const
Returns the number of different outputs that have been defined for this node using define_output()...
Definition: dataNode.I:61
int get_num_inputs() const
Returns the number of different inputs that have been defined for this node using define_input()...
Definition: dataNode.I:48