Panda3D
qtessInputFile.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 qtessInputFile.h
10  * @author drose
11  * @date 2003-10-13
12  */
13 
14 #ifndef QTESSINPUTFILE_H
15 #define QTESSINPUTFILE_H
16 
17 #include "pandatoolbase.h"
18 #include "qtessInputEntry.h"
19 #include "filename.h"
20 #include "pvector.h"
21 
22 class QtessSurface;
23 
24 /**
25  * Stores all the information read from a tesselation input file: a list of
26  * QtessInputEntry's.
27  */
29 public:
31  INLINE QtessInputFile(const QtessInputFile &copy);
32  INLINE void operator = (const QtessInputFile &copy);
33 
34  bool read(const Filename &filename);
36 
37  QtessInputEntry::Type match(QtessSurface *surface);
38  int count_tris();
39 
40  void write(std::ostream &out, int indent_level = 0) const;
41 
42 private:
43  void add_default_entry();
44 
45  Filename _filename;
46 
48  Entries _entries;
49 };
50 
51 #include "qtessInputFile.I"
52 
53 #endif
qtessInputFile.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pvector< QtessInputEntry >
pvector.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
QtessSurface
A reference to an EggNurbsSurface in the egg file, and its parameters as set by the user input file a...
Definition: qtessSurface.h:32
QtessInputFile::count_tris
int count_tris()
Determines the tesselation u,v amounts of each attached surface, and stores this information in the s...
Definition: qtessInputFile.cxx:297
filename.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
QtessInputFile::match
QtessInputEntry::Type match(QtessSurface *surface)
Attempts to find a match for the given surface in the user input entries.
Definition: qtessInputFile.cxx:273
QtessInputFile
Stores all the information read from a tesselation input file: a list of QtessInputEntry's.
Definition: qtessInputFile.h:28
QtessInputFile::get_default_entry
QtessInputEntry & get_default_entry()
Returns a reference to the last entry on the list, which is the "default" entry that will match any s...
Definition: qtessInputFile.cxx:254
QtessInputFile::read
bool read(const Filename &filename)
reads the input file.
Definition: qtessInputFile.cxx:31
QtessInputEntry
Stores one entry in the qtess input file.
Definition: qtessInputEntry.h:27
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
qtessInputEntry.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Filename
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39