Panda3D
 All Classes Functions Variables Enumerations
bindAnimRequest.h
1 // Filename: bindAnimRequest.h
2 // Created by: drose (05Aug08)
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 BINDANIMREQUEST
16 #define BINDANIMREQUEST
17 
18 #include "pandabase.h"
19 
20 #include "modelLoadRequest.h"
21 #include "partSubset.h"
22 
23 class AnimControl;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : BindAnimRequest
27 // Description : This class object manages an asynchronous
28 // load-and-bind animation request, as issued through
29 // PartBundle::load_bind_anim().
30 ////////////////////////////////////////////////////////////////////
31 class EXPCL_PANDA_PGRAPH BindAnimRequest : public ModelLoadRequest {
32 public:
33  ALLOC_DELETED_CHAIN(BindAnimRequest);
34 
35 PUBLISHED:
36  BindAnimRequest(const string &name,
37  const Filename &filename,
38  const LoaderOptions &options,
39  Loader *loader,
40  AnimControl *control,
41  int hierarchy_match_flags,
42  const PartSubset &subset);
43 
44 protected:
45  virtual DoneStatus do_task();
46 
47 private:
48  PT(AnimControl) _control;
49  int _hierarchy_match_flags;
50  PartSubset _subset;
51 
52 public:
53  static TypeHandle get_class_type() {
54  return _type_handle;
55  }
56  static void init_type() {
57  ModelLoadRequest::init_type();
58  register_type(_type_handle, "BindAnimRequest",
59  ModelLoadRequest::get_class_type());
60  }
61  virtual TypeHandle get_type() const {
62  return get_class_type();
63  }
64  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
65 
66 private:
67  static TypeHandle _type_handle;
68 };
69 
70 #include "bindAnimRequest.I"
71 
72 #endif
Specifies parameters that may be passed to the loader.
Definition: loaderOptions.h:26
A convenient class for loading models from disk, in bam or egg format (or any of a number of other fo...
Definition: loader.h:47
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
This class is used to define a subset of part names to apply to the PartBundle::bind_anim() operation...
Definition: partSubset.h:28
This class object manages an asynchronous load-and-bind animation request, as issued through PartBund...
Controls the timing of a character animation.
Definition: animControl.h:41
A class object that manages a single asynchronous model load request.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85