Panda3D
eggBackPointer.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 eggBackPointer.cxx
10  * @author drose
11  * @date 2001-02-26
12  */
13 
14 #include "eggBackPointer.h"
15 
16 #include "pnotify.h"
17 
18 
19 TypeHandle EggBackPointer::_type_handle;
20 
21 /**
22  *
23  */
24 EggBackPointer::
25 EggBackPointer() {
26 }
27 
28 /**
29  * Returns the stated frame rate of this particular joint, or 0.0 if it
30  * doesn't state.
31  */
32 double EggBackPointer::
33 get_frame_rate() const {
34  return 0.0;
35 }
36 
37 /**
38  * Extends the table to the indicated number of frames.
39  */
41 extend_to(int num_frames) {
42  // Whoops, can't extend this kind of table!
43  nassert_raise("can't extend this kind of table");
44 }
45 
46 /**
47  * Returns true if there are any vertices referenced by the node this points
48  * to, false otherwise. For certain kinds of back pointers (e.g. table
49  * animation entries), this is always false.
50  */
52 has_vertices() const {
53  return false;
54 }
55 
56 /**
57  * Applies the indicated name change to the egg file.
58  */
60 set_name(const std::string &name) {
61 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void set_name(const std::string &name)
Applies the indicated name change to the egg file.
virtual bool has_vertices() const
Returns true if there are any vertices referenced by the node this points to, false otherwise.
virtual double get_frame_rate() const
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
virtual void extend_to(int num_frames)
Extends the table to the indicated number of frames.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81