Panda3D
 All Classes Functions Variables Enumerations
eggVertexPointer.h
1 // Filename: eggVertexPointer.h
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 #ifndef EGGVERTEXPOINTER_H
16 #define EGGVERTEXPOINTER_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggSliderPointer.h"
21 
22 #include "eggGroup.h"
23 #include "pointerTo.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : EggVertexPointer
27 // Description : This stores a pointer back to a <Vertex>, or to a
28 // particular pritimive like a <Polygon>, representing a
29 // morph offset.
30 ////////////////////////////////////////////////////////////////////
32 public:
33  EggVertexPointer(EggObject *egg_object);
34 
35  virtual int get_num_frames() const;
36  virtual double get_frame(int n) const;
37 
38  virtual bool has_vertices() const;
39 
40 public:
41  static TypeHandle get_class_type() {
42  return _type_handle;
43  }
44  static void init_type() {
45  EggSliderPointer::init_type();
46  register_type(_type_handle, "EggVertexPointer",
47  EggSliderPointer::get_class_type());
48  }
49  virtual TypeHandle get_type() const {
50  return get_class_type();
51  }
52  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
53 
54 private:
55  static TypeHandle _type_handle;
56 };
57 
58 #endif
59 
60 
virtual bool has_vertices() const
Returns true if there are any vertices referenced by the node this points to, false otherwise...
virtual int get_num_frames() const
Returns the number of frames of animation for this particular slider.
virtual double get_frame(int n) const
Returns the value corresponding to this slider position in the nth frame.
This is a base class for EggVertexPointer and EggScalarTablePointer.
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
This stores a pointer back to a &lt;Vertex&gt;, or to a particular pritimive like a &lt;Polygon&gt;, representing a morph offset.