Panda3D
Loading...
Searching...
No Matches
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
19TypeHandle EggBackPointer::_type_handle;
20
21/**
22 *
23 */
24EggBackPointer::
25EggBackPointer() {
26}
27
28/**
29 * Returns the stated frame rate of this particular joint, or 0.0 if it
30 * doesn't state.
31 */
33get_frame_rate() const {
34 return 0.0;
35}
36
37/**
38 * Extends the table to the indicated number of frames.
39 */
41extend_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 */
52has_vertices() const {
53 return false;
54}
55
56/**
57 * Applies the indicated name change to the egg file.
58 */
60set_name(const std::string &name) {
61}
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.
virtual void set_name(const std::string &name)
Applies the indicated name change to the egg file.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.