Panda3D

clientDialDevice.cxx
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 clientDialDevice.cxx
10 * @author drose
11 * @date 2001-01-26
12 */
13
14 #include "clientDialDevice.h"
15
16 #include "indent.h"
17
18 TypeHandle ClientDialDevice::_type_handle;
19
20
21
22 /**
23 * Guarantees that there is a slot in the array for the indicated index
24 * number, by filling the array up to that index if necessary.
25 */
26 void ClientDialDevice::
27 ensure_dial_index(int index) {
28 nassertv(index >= 0);
29
30 _dials.reserve(index + 1);
31 while ((int)_dials.size() <= index) {
32 _dials.push_back(DialState());
33 }
34 }
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
clientDialDevice.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
indent.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.