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
A reference to an EggNurbsSurface in the egg file, and its parameters as set by the user input file a...
Definition: qtessSurface.h:32
Stores all the information read from a tesselation input file: a list of QtessInputEntry's.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
QtessInputEntry::Type match(QtessSurface *surface)
Attempts to find a match for the given surface in the user input entries.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int count_tris()
Determines the tesselation u,v amounts of each attached surface, and stores this information in the s...
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
QtessInputEntry & get_default_entry()
Returns a reference to the last entry on the list, which is the "default" entry that will match any s...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Stores one entry in the qtess input file.
bool read(const Filename &filename)
reads the input file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.