Panda3D
|
00001 // Filename: bindAnimRequest.h 00002 // Created by: drose (05Aug08) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef BINDANIMREQUEST 00016 #define BINDANIMREQUEST 00017 00018 #include "pandabase.h" 00019 00020 #include "modelLoadRequest.h" 00021 #include "partSubset.h" 00022 00023 class AnimControl; 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : BindAnimRequest 00027 // Description : This class object manages an asynchronous 00028 // load-and-bind animation request, as issued through 00029 // PartBundle::load_bind_anim(). 00030 //////////////////////////////////////////////////////////////////// 00031 class EXPCL_PANDA_PGRAPH BindAnimRequest : public ModelLoadRequest { 00032 public: 00033 ALLOC_DELETED_CHAIN(BindAnimRequest); 00034 00035 PUBLISHED: 00036 BindAnimRequest(const string &name, 00037 const Filename &filename, 00038 const LoaderOptions &options, 00039 Loader *loader, 00040 AnimControl *control, 00041 int hierarchy_match_flags, 00042 const PartSubset &subset); 00043 00044 protected: 00045 virtual DoneStatus do_task(); 00046 00047 private: 00048 PT(AnimControl) _control; 00049 int _hierarchy_match_flags; 00050 PartSubset _subset; 00051 00052 public: 00053 static TypeHandle get_class_type() { 00054 return _type_handle; 00055 } 00056 static void init_type() { 00057 ModelLoadRequest::init_type(); 00058 register_type(_type_handle, "BindAnimRequest", 00059 ModelLoadRequest::get_class_type()); 00060 } 00061 virtual TypeHandle get_type() const { 00062 return get_class_type(); 00063 } 00064 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00065 00066 private: 00067 static TypeHandle _type_handle; 00068 }; 00069 00070 #include "bindAnimRequest.I" 00071 00072 #endif