Panda3D
Loading...
Searching...
No Matches
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
22class QtessSurface;
23
24/**
25 * Stores all the information read from a tesselation input file: a list of
26 * QtessInputEntry's.
27 */
29public:
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
42private:
43 void add_default_entry();
44
45 Filename _filename;
46
48 Entries _entries;
49};
50
51#include "qtessInputFile.I"
52
53#endif
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
Stores one entry in the qtess input file.
Stores all the information read from a tesselation input file: a list of QtessInputEntry's.
QtessInputEntry & get_default_entry()
Returns a reference to the last entry on the list, which is the "default" entry that will match any s...
int count_tris()
Determines the tesselation u,v amounts of each attached surface, and stores this information in the s...
QtessInputEntry::Type match(QtessSurface *surface)
Attempts to find a match for the given surface in the user input entries.
bool read(const Filename &filename)
reads the input file.
A reference to an EggNurbsSurface in the egg file, and its parameters as set by the user input file a...
This is our own Panda specialization on the default STL vector.
Definition pvector.h:42
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.