Panda3D
qtessInputEntry.I
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 qtessInputEntry.I
10  * @author drose
11  * @date 2003-10-13
12  */
13 
14 /**
15  *
16  */
17 INLINE QtessInputEntry::
18 QtessInputEntry(const QtessInputEntry &copy) {
19  (*this) = copy;
20 }
21 
22 /**
23  *
24  */
25 INLINE void QtessInputEntry::
26 add_node_name(const std::string &name) {
27  _node_names.push_back(GlobPattern(name));
28 }
29 
30 /**
31  *
32  */
33 INLINE void QtessInputEntry::
34 set_importance(double i) {
35  _importance = i;
36  _type = T_importance;
37 }
38 
39 /**
40  *
41  */
42 INLINE void QtessInputEntry::
43 set_match_uu() {
44  _type = T_match_uu;
45  _constrain_u = nullptr;
46 }
47 
48 /**
49  *
50  */
51 INLINE void QtessInputEntry::
52 set_match_vv() {
53  _type = T_match_vv;
54  _constrain_v = nullptr;
55 }
56 
57 /**
58  *
59  */
60 INLINE void QtessInputEntry::
61 set_match_uv() {
62  _type = T_match_uv;
63  _constrain_u = nullptr;
64 }
65 
66 /**
67  *
68  */
69 INLINE void QtessInputEntry::
70 set_match_vu() {
71  _type = T_match_vu;
72  _constrain_v = nullptr;
73 }
74 
75 /**
76  *
77  */
78 INLINE void QtessInputEntry::
79 set_min_u(int min_u) {
80  _type = T_min_u;
81  _num_u = min_u;
82 }
83 
84 /**
85  *
86  */
87 INLINE void QtessInputEntry::
88 set_min_v(int min_v) {
89  _type = T_min_v;
90  _num_v = min_v;
91 }
92 
93 /**
94  *
95  */
96 INLINE void QtessInputEntry::
97 set_undefined() {
98  _type = T_undefined;
99 }
100 
101 /**
102  *
103  */
104 INLINE void QtessInputEntry::
105 set_omit() {
106  _type = T_omit;
107 }
108 
109 /**
110  *
111  */
112 INLINE void QtessInputEntry::
113 set_num_tris(int nt) {
114  _num_tris = nt;
115  _type = T_num_tris;
116 }
117 
118 /**
119  *
120  */
121 INLINE void QtessInputEntry::
122 set_uv(int u, int v) {
123  set_uv(u, v, nullptr, 0);
124 }
125 
126 /**
127  *
128  */
129 INLINE void QtessInputEntry::
130 set_per_isoparam(double pi) {
131  _per_isoparam = pi;
132  _type = T_per_isoparam;
133 }
134 
135 /**
136  *
137  */
138 INLINE void QtessInputEntry::
139 set_per_score(double pi) {
140  _per_isoparam = pi;
141  _type = T_per_score;
142 }
143 
144 /**
145  *
146  */
147 INLINE int QtessInputEntry::
148 get_num_surfaces() const {
149  return _surfaces.size();
150 }
151 
152 
153 INLINE std::ostream &operator << (std::ostream &out, const QtessInputEntry &entry) {
154  entry.output(out);
155  return out;
156 }
Stores one entry in the qtess input file.
This class can be used to test for string matches against standard Unix- shell filename globbing conv...
Definition: globPattern.h:32