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
19 TypeHandle 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 */
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 */
40 void EggBackPointer::
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 */
51 bool EggBackPointer::
52 has_vertices() const {
53 return false;
54}
55
56/**
57 * Applies the indicated name change to the egg file.
58 */
59 void EggBackPointer::
60 set_name(const std::string &name) {
61}
EggBackPointer::get_frame_rate
virtual double get_frame_rate() const
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
Definition eggBackPointer.cxx:33
EggBackPointer::extend_to
virtual void extend_to(int num_frames)
Extends the table to the indicated number of frames.
Definition eggBackPointer.cxx:41
EggBackPointer::has_vertices
virtual bool has_vertices() const
Returns true if there are any vertices referenced by the node this points to, false otherwise.
Definition eggBackPointer.cxx:52
EggBackPointer::set_name
virtual void set_name(const std::string &name)
Applies the indicated name change to the egg file.
Definition eggBackPointer.cxx:60
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
eggBackPointer.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pnotify.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.