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 */
28 class EggSliderData : public EggComponentData {
29 public:
30 EggSliderData(EggCharacterCollection *collection,
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
39 public:
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
53 private:
54 static TypeHandle _type_handle;
55};
56
57#include "eggSliderData.I"
58
59#endif
EggCharacterCollection
Represents a set of characters, as read and collected from possibly several model and/or animation eg...
Definition eggCharacterCollection.h:32
EggCharacterData
Represents a single character, as read and collected from several models and animation files.
Definition eggCharacterData.h:52
EggSliderData::add_back_pointer
virtual void add_back_pointer(int model_index, EggObject *egg_object)
Adds the indicated vertex, primitive, or morph table to the data.
Definition eggSliderData.cxx:57
EggSliderData::get_frame
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.
Definition eggSliderData.cxx:41
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
eggComponentData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
eggSliderData.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition register_type.I:22