Panda3D
panda
src
pgraphnodes
selectiveChildNode.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 selectiveChildNode.I
10
* @author drose
11
* @date 2002-03-06
12
*/
13
14
/**
15
*
16
*/
17
INLINE SelectiveChildNode::
18
SelectiveChildNode(
const
std::string &name) :
19
PandaNode
(name),
20
_selected_child(0)
21
{
22
}
23
24
/**
25
*
26
*/
27
INLINE SelectiveChildNode::
28
SelectiveChildNode(
const
SelectiveChildNode
©) :
29
PandaNode
(copy),
30
_selected_child(copy._selected_child)
31
{
32
}
33
34
/**
35
* Selects the indicated child for rendering. This is normally called during
36
* the cull_callback() method, but it may be called at any time.
37
*/
38
INLINE
void
SelectiveChildNode::
39
select_child(
int
n) {
40
nassertv(n >= 0);
41
_selected_child = n;
42
}
SelectiveChildNode
A base class for nodes like LODNode and SequenceNode that select only one visible child at a time.
Definition:
selectiveChildNode.h:25
PandaNode
A basic node of the scene graph or data graph.
Definition:
pandaNode.h:65
Generated on Mon Sep 14 2020 15:07:02 for Panda3D by
1.8.20