Panda3D
cLwoClip.h
1 // Filename: cLwoClip.h
2 // Created by: drose (26Apr01)
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 CLWOCLIP_H
16 #define CLWOCLIP_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "lwoClip.h"
21 #include "eggGroup.h"
22 #include "pointerTo.h"
23 
24 class LwoToEggConverter;
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : CLwoClip
28 // Description : This class is a wrapper around LwoClip and stores
29 // additional information useful during the
30 // conversion-to-egg process.
31 ////////////////////////////////////////////////////////////////////
32 class CLwoClip {
33 public:
34  CLwoClip(LwoToEggConverter *converter, const LwoClip *clip);
35 
36  INLINE int get_index() const;
37  INLINE bool is_still_image() const;
38 
39  LwoToEggConverter *_converter;
40  CPT(LwoClip) _clip;
41 
42  Filename _filename;
43  bool _still_image;
44 };
45 
46 #include "cLwoClip.I"
47 
48 #endif
49 
50 
bool is_still_image() const
Returns true if this clip represents a still image, as opposed to an animated image.
Definition: cLwoClip.I:36
A single image file, or a numbered sequence of images (e.g.
Definition: lwoClip.h:27
This class is a wrapper around LwoClip and stores additional information useful during the conversion...
Definition: cLwoClip.h:32
int get_index() const
Returns the index number of this clip.
Definition: cLwoClip.I:24
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
This class supervises the construction of an EggData structure from the data represented by the LwoHe...