Panda3D
lwoChunk.h
1 // Filename: lwoChunk.h
2 // Created by: drose (24Apr01)
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 LWOCHUNK_H
16 #define LWOCHUNK_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "iffChunk.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : LwoChunk
24 // Description : A specialization of IffChunk for Lightwave Object
25 // files. Each kind of chunk that is specific to a
26 // Lightwave file should inherit directly or indirectly
27 // from LwoChunk.
28 ////////////////////////////////////////////////////////////////////
29 class LwoChunk : public IffChunk {
30 public:
31  // No particular interface here.
32 
33 public:
34  virtual TypeHandle get_type() const {
35  return get_class_type();
36  }
37  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
38  static TypeHandle get_class_type() {
39  return _type_handle;
40  }
41  static void init_type() {
42  IffChunk::init_type();
43  register_type(_type_handle, "LwoChunk",
44  IffChunk::get_class_type());
45  }
46 
47 private:
48  static TypeHandle _type_handle;
49 };
50 
51 #endif
52 
53 
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on...
Definition: iffChunk.h:32
A specialization of IffChunk for Lightwave Object files.
Definition: lwoChunk.h:29
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85