Panda3D
Loading...
Searching...
No Matches
eggSliderData.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 eggSliderData.h
10 * @author drose
11 * @date 2001-02-26
12 */
13
14#ifndef EGGSLIDERDATA_H
15#define EGGSLIDERDATA_H
16
17#include "pandatoolbase.h"
18
19#include "eggComponentData.h"
20
21
22/**
23 * This corresponds to a single morph slider control. It contains back
24 * pointers to all the vertices and primitives that reference this slider
25 * across all models, as well as all the tables in which it appears in all
26 * animation files.
27 */
29public:
31 EggCharacterData *char_data);
32
33 double get_frame(int model_index, int n) const;
34
35 virtual void add_back_pointer(int model_index, EggObject *egg_object);
36 virtual void write(std::ostream &out, int indent_level = 0) const;
37
38
39public:
40 static TypeHandle get_class_type() {
41 return _type_handle;
42 }
43 static void init_type() {
44 EggComponentData::init_type();
45 register_type(_type_handle, "EggSliderData",
46 EggComponentData::get_class_type());
47 }
48 virtual TypeHandle get_type() const {
49 return get_class_type();
50 }
51 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
52
53private:
54 static TypeHandle _type_handle;
55};
56
57#include "eggSliderData.I"
58
59#endif
Represents a set of characters, as read and collected from possibly several model and/or animation eg...
Represents a single character, as read and collected from several models and animation files.
This is the base class of both EggJointData and EggSliderData.
The highest-level base class in the egg directory.
Definition eggObject.h:29
This corresponds to a single morph slider control.
virtual void add_back_pointer(int model_index, EggObject *egg_object)
Adds the indicated vertex, primitive, or morph table to the data.
double get_frame(int model_index, int n) const
Returns the value corresponding to this slider position in the nth frame in the indicated model.
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...