1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
//-*-C++-*-
/*
**************************************************************************
description
--------------------
copyright : (C) 2003 by Leon Pennington
email : [email protected]
**************************************************************************
**************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
**************************************************************************/
#ifndef PMRADIOSITY_H
#define PMRADIOSITY_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "pmobject.h"
/**
* Class for radiosity settings.
*/
class PMRadiosity : public PMObject
{
typedef PMObject Base;
public:
/**
* Creates a PMRadiosity
*/
PMRadiosity( PMPart* part );
/**
* Copy constructor
*/
PMRadiosity( const PMRadiosity& r );
/**
* deletes the PMRadiosity
*/
virtual ~PMRadiosity( );
/** */
virtual PMObject* copy( ) const { return new PMRadiosity( *this ); }
/** */
virtual TQString description( ) const;
/** */
virtual PMMetaObject* tqmetaObject( ) const;
/** */
virtual void cleanUp( ) const;
/** */
virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMRadiosityEdit
*/
virtual PMDialogEditBase* editWidget( TQWidget* tqparent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
virtual TQString pixmap( ) const { return TQString( "pmradiosity" ); }
/**
* Returns the adc bailout
*/
double adcBailout( ) const { return m_adcBailout; }
/**
* Sets the adc bailout
*/
void setAdcBailout( double ab );
/**
* Returns the always sample flag
*/
bool alwaysSample( ) const { return m_alwaysSample; }
/**
* Sets the always sample flag
*/
void setAlwaysSample( bool as );
/**
* Returns brightness
*/
double brightness( ) const { return m_brightness; }
/**
* Sets the brightness
*/
void setBrightness( double b );
/**
* Returns count
*/
int count( ) const { return m_count; }
/**
* Sets the count
*/
void setCount( int c );
/**
* Returns error boundary
*/
double errorBound( ) const { return m_errorBound; }
/**
* Sets the error boundary
*/
void setErrorBound( double eb );
/**
* Returns gray threshold
*/
double grayThreshold( ) const { return m_grayThreshold; }
/**
* Sets the gray threshold
*/
void setGrayThreshold( double gt );
/**
* Returns low error factor
*/
double lowErrorFactor( ) const { return m_lowErrorFactor; }
/**
* Sets the low error factor
*/
void setLowErrorFactor( double lew );
/**
* Returns the maximum sample
*/
double maxSample( ) const { return m_maxSample; }
/**
* Sets the maximum sample
*/
void setMaxSample( double ms );
/**
* Returns the media flag
*/
bool media( ) const { return m_media; }
/**
* Sets the media flag
*/
void setMedia( bool m );
/**
* Returns minimum reuse
*/
double minimumReuse( ) const { return m_minimumReuse; }
/**
* Sets the minimum reuse
*/
void setMinimumReuse( double mr );
/**
* Returns nearest count
*/
int nearestCount( ) const { return m_nearestCount; }
/**
* Sets the nearest count
*/
void setNearestCount( int nc );
/**
* Returns the normal flag
*/
bool normal( ) const { return m_normal; }
/**
* Sets the normal flag
*/
void setNormal( bool n );
/**
* Returns the pretrace start
*/
double pretraceStart( ) const { return m_pretraceStart; }
/**
* Sets the pretrace start
*/
void setPretraceStart( double ps );
/**
* Returns the pretrace end
*/
double pretraceEnd( ) const { return m_pretraceEnd; }
/**
* Sets the pretrace end
*/
void setPretraceEnd( double pe );
/**
* Returns recursion limit
*/
int recursionLimit( ) const { return m_recursionLimit; }
/**
* Sets the recursion limit
*/
void setRecursionLimit( int rl );
/** */
virtual void restoreMemento( PMMemento* s );
private:
/**
* IDs for @ref PMMementoData
*/
enum PMRadiosityMementoID { PMAdcBailoutID, PMAlwaysSampleID, PMBrightnessID,
PMCountID, PMErrorBoundID, PMGrayThresholdID,
PMLowErrorFactorID, PMMaxSampleID, PMMediaID,
PMMinimumReuseID, PMNearestCountID, PMNormalID,
PMPretraceStartID, PMPretraceEndID, PMRecursionLimitID };
double m_adcBailout;
bool m_alwaysSample;
double m_brightness;
int m_count;
double m_errorBound;
double m_grayThreshold;
double m_lowErrorFactor;
double m_maxSample;
bool m_media;
double m_minimumReuse;
int m_nearestCount;
bool m_normal;
double m_pretraceStart;
double m_pretraceEnd;
int m_recursionLimit;
static PMMetaObject* s_pMetaObject;
};
#endif
|