Panda3D
Loading...
Searching...
No Matches
eggVertexPointer.h
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 eggVertexPointer.h
10 * @author drose
11 * @date 2001-02-26
12 */
13
14#ifndef EGGVERTEXPOINTER_H
15#define EGGVERTEXPOINTER_H
16
17#include "pandatoolbase.h"
18
19#include "eggSliderPointer.h"
20
21#include "eggGroup.h"
22#include "pointerTo.h"
23
24/**
25 * This stores a pointer back to a <Vertex>, or to a particular pritimive like
26 * a <Polygon>, representing a morph offset.
27 */
29public:
30 EggVertexPointer(EggObject *egg_object);
31
32 virtual int get_num_frames() const;
33 virtual double get_frame(int n) const;
34
35 virtual bool has_vertices() const;
36
37public:
38 static TypeHandle get_class_type() {
39 return _type_handle;
40 }
41 static void init_type() {
42 EggSliderPointer::init_type();
43 register_type(_type_handle, "EggVertexPointer",
44 EggSliderPointer::get_class_type());
45 }
46 virtual TypeHandle get_type() const {
47 return get_class_type();
48 }
49 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
50
51private:
52 static TypeHandle _type_handle;
53};
54
55#endif
The highest-level base class in the egg directory.
Definition eggObject.h:29
This is a base class for EggVertexPointer and EggScalarTablePointer.
This stores a pointer back to a <Vertex>, or to a particular pritimive like a <Polygon>,...
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:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...