Panda3D
loaderFileTypeDae.h
1 // Filename: loaderFileTypeDae.h
2 // Created by: rdb (23Aug09)
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 LOADERFILETYPEDAE_H
16 #define LOADERFILETYPEDAE_H
17 
18 #include "pandabase.h"
19 
20 #include "loaderFileType.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : LoaderFileTypeDae
24 // Description : This defines the Loader interface to read Dae files.
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_COLLADA LoaderFileTypeDae : public LoaderFileType {
27 public:
29 
30  virtual string get_name() const;
31  virtual string get_extension() const;
32  virtual string get_additional_extensions() const;
33  virtual bool supports_compressed() const;
34 
35  virtual PT(PandaNode) load_file(const Filename &path, const LoaderOptions &options,
36  BamCacheRecord *record) const;
37 
38 public:
39  static TypeHandle get_class_type() {
40  return _type_handle;
41  }
42  static void init_type() {
43  LoaderFileType::init_type();
44  register_type(_type_handle, "LoaderFileTypeDae",
45  LoaderFileType::get_class_type());
46  }
47  virtual TypeHandle get_type() const {
48  return get_class_type();
49  }
50  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
51 
52 private:
53  static TypeHandle _type_handle;
54 };
55 
56 #endif
57 
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72
Specifies parameters that may be passed to the loader.
Definition: loaderOptions.h:26
virtual string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this loader.
This defines the Loader interface to read Dae files.
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension)...
This is the base class for a family of scene-graph file types that the Loader supports.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85