00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "cLwoClip.h"
00016 #include "lwoToEggConverter.h"
00017
00018 #include "lwoClip.h"
00019 #include "lwoStillImage.h"
00020 #include "dcast.h"
00021
00022
00023
00024
00025
00026
00027
00028 CLwoClip::
00029 CLwoClip(LwoToEggConverter *converter, const LwoClip *clip) :
00030 _converter(converter),
00031 _clip(clip)
00032 {
00033 _still_image = false;
00034
00035
00036 int num_chunks = _clip->get_num_chunks();
00037 for (int i = 0; i < num_chunks; i++) {
00038 const IffChunk *chunk = _clip->get_chunk(i);
00039
00040 if (chunk->is_of_type(LwoStillImage::get_class_type())) {
00041 const LwoStillImage *image = DCAST(LwoStillImage, chunk);
00042 _filename = image->_filename;
00043 _still_image = true;
00044 }
00045 }
00046 }