Panda3D
eggVertexPointer.cxx
1 // Filename: eggVertexPointer.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 "eggVertexPointer.h"
16 
17 
18 TypeHandle EggVertexPointer::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: EggVertexPointer::Constructor
22 // Access: Public
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 EggVertexPointer::
26 EggVertexPointer(EggObject *egg_object) {
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: EggVertexPointer::get_num_frames
31 // Access: Public, Virtual
32 // Description: Returns the number of frames of animation for this
33 // particular slider.
34 ////////////////////////////////////////////////////////////////////
36 get_num_frames() const {
37  return 0;
38 }
39 
40 ////////////////////////////////////////////////////////////////////
41 // Function: EggVertexPointer::get_frame
42 // Access: Public, Virtual
43 // Description: Returns the value corresponding to this
44 // slider position in the nth frame.
45 ////////////////////////////////////////////////////////////////////
46 double EggVertexPointer::
47 get_frame(int n) const {
48  nassertr(false, 0.0);
49  return 0.0;
50 }
51 
52 ////////////////////////////////////////////////////////////////////
53 // Function: EggVertexPointer::has_vertices
54 // Access: Public, Virtual
55 // Description: Returns true if there are any vertices referenced by
56 // the node this points to, false otherwise. For
57 // certain kinds of back pointers (e.g. table animation
58 // entries), this is always false.
59 ////////////////////////////////////////////////////////////////////
61 has_vertices() const {
62  return true;
63 }
virtual int get_num_frames() const
Returns the number of frames of animation for this particular slider.
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(int n) const
Returns the value corresponding to this slider position in the nth frame.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
The highest-level base class in the egg directory.
Definition: eggObject.h:31