Panda3D
pandatool
src
fltprogs
fltCopy.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file fltCopy.h
10
* @author drose
11
* @date 2000-11-01
12
*/
13
14
#ifndef FLTCOPY_H
15
#define FLTCOPY_H
16
17
#include "
pandatoolbase.h
"
18
19
#include "
cvsCopy.h
"
20
21
#include "
dSearchPath.h
"
22
#include "
pointerTo.h
"
23
24
#include "
pset.h
"
25
26
class
FltRecord
;
27
class
FltTexture
;
28
class
FltExternalReference
;
29
30
/**
31
* A program to copy Multigen .flt files into the cvs tree. It copies the
32
* base file plus all externally referenced files as well as all textures.
33
*/
34
class
FltCopy
:
public
CVSCopy
{
35
public
:
36
FltCopy
();
37
38
void
run();
39
40
protected
:
41
virtual
bool
copy_file(
const
Filename
&source,
const
Filename
&dest,
42
CVSSourceDirectory
*dir,
void
*extra_data,
43
bool
new_file);
44
45
private
:
46
enum
FileType {
47
FT_flt,
48
FT_texture
49
};
50
51
class
ExtraData {
52
public
:
53
FileType _type;
54
FltTexture
*_texture;
55
};
56
57
bool
copy_flt_file(
const
Filename
&source,
const
Filename
&dest,
58
CVSSourceDirectory
*dir);
59
bool
copy_texture(
const
Filename
&source,
const
Filename
&dest,
60
CVSSourceDirectory
*dir,
FltTexture
*tex,
61
bool
new_file);
62
63
64
typedef
pset
< PT(
FltExternalReference
) >
Refs
;
65
typedef
pset
< PT(
FltTexture
) >
Textures
;
66
67
void
scan_flt(
FltRecord
*record,
Refs
&refs,
Textures
&textures);
68
};
69
70
#endif
CVSCopy
This is the base class for a family of programs that copy files, typically model files like ....
Definition:
cvsCopy.h:30
CVSSourceDirectory
This represents one particular directory in the hierarchy of source directory files.
Definition:
cvsSourceDirectory.h:35
Filename
The name of a file, such as a texture file or an Egg file.
Definition:
filename.h:39
FltCopy
A program to copy Multigen .flt files into the cvs tree.
Definition:
fltCopy.h:34
FltExternalReference
An external reference to another flt file (possibly to a specific bead within the flt file).
Definition:
fltExternalReference.h:27
FltRecord
The base class for all kinds of records in a MultiGen OpenFlight file.
Definition:
fltRecord.h:36
FltTexture
Represents a single texture in the texture palette.
Definition:
fltTexture.h:27
pset
This is our own Panda specialization on the default STL set.
Definition:
pset.h:49
cvsCopy.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dSearchPath.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pointerTo.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pset.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Tue Aug 31 2021 11:10:29 for Panda3D by
1.9.1