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