Panda3D
 All Classes Functions Variables Enumerations
eggBackPointer.cxx
1 // Filename: eggBackPointer.cxx
2 // Created by: drose (26Feb01)
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 #include "eggBackPointer.h"
16 
17 
18 TypeHandle EggBackPointer::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: EggBackPointer::Constructor
22 // Access: Public
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 EggBackPointer::
26 EggBackPointer() {
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: EggBackPointer::get_frame_rate
31 // Access: Public, Virtual
32 // Description: Returns the stated frame rate of this particular
33 // joint, or 0.0 if it doesn't state.
34 ////////////////////////////////////////////////////////////////////
35 double EggBackPointer::
36 get_frame_rate() const {
37  return 0.0;
38 }
39 
40 ////////////////////////////////////////////////////////////////////
41 // Function: EggBackPointer::extend_to
42 // Access: Public, Virtual
43 // Description: Extends the table to the indicated number of frames.
44 ////////////////////////////////////////////////////////////////////
46 extend_to(int num_frames) {
47  // Whoops, can't extend this kind of table!
48  nassertv(false);
49 }
50 
51 ////////////////////////////////////////////////////////////////////
52 // Function: EggBackPointer::has_vertices
53 // Access: Public, Virtual
54 // Description: Returns true if there are any vertices referenced by
55 // the node this points to, false otherwise. For
56 // certain kinds of back pointers (e.g. table animation
57 // entries), this is always false.
58 ////////////////////////////////////////////////////////////////////
60 has_vertices() const {
61  return false;
62 }
63 
64 ////////////////////////////////////////////////////////////////////
65 // Function: EggBackPointer::set_name
66 // Access: Public, Virtual
67 // Description: Applies the indicated name change to the egg file.
68 ////////////////////////////////////////////////////////////////////
70 set_name(const string &name) {
71 }
virtual void set_name(const string &name)
Applies the indicated name change to the egg file.
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.
virtual bool has_vertices() const
Returns true if there are any vertices referenced by the node this points to, false otherwise...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85