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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
|
//-*-C++-*-
/*
**************************************************************************
description
--------------------
copyright : (C) 2003 by Leon Pennington
email : leon@leonscape.co.uk
**************************************************************************
**************************************************************************
* *
* 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 PMGLOBALPHOTONS_H
#define PMGLOBALPHOTONS_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "pmobject.h"
/**
* Class for GlobalPhotons settings.
*/
class PMGlobalPhotons : public PMObject
{
typedef PMObject Base;
public:
enum PMNumberType { Spacing=0, Count=1 };
/**
* Creates a PMGlobalPhotons
*/
PMGlobalPhotons( PMPart* part );
/**
* Copy constructor
*/
PMGlobalPhotons( const PMGlobalPhotons& p );
/**
* deletes the PMGlobalPhotons
*/
virtual ~PMGlobalPhotons( );
/** */
virtual PMObject* copy( ) const { return new PMGlobalPhotons( *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 PMGlobalPhotonsEdit
*/
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( "pmglobalphotons" ); }
/**
* Returns the number type
*/
PMNumberType numberType( ) const { return m_numberType; }
/**
* Sets the number type
*/
void setNumberType( PMNumberType nt );
/**
* Returns the photons spacing value
*/
double spacing( ) const { return m_spacing; }
/**
* Sets the photons spacing value
*/
void setSpacing( double s );
/**
* Returns the number of photons to shoot
*/
int count( ) const { return m_count; }
/**
* Sets the number of photons to shoot
*/
void setCount( int c );
/**
* Returns the minimum gather
*/
int gatherMin( ) const { return m_gatherMin; }
/**
* Sets the minimum gather
*/
void setGatherMin( int gm );
/**
* Returns the maximum gather
*/
int gatherMax( ) const { return m_gatherMax; }
/**
* Sets the maximum gather
*/
void setGatherMax( int gm );
/**
* Returns the media maximum steps
*/
int mediaMaxSteps( ) const { return m_mediaMaxSteps; }
/**
* Sets the media maximum steps
*/
void setMediaMaxSteps( int mms );
/**
* Returns the media factor
*/
double mediaFactor( ) const { return m_mediaFactor; }
/**
* Sets the media factor
*/
void setMediaFactor( double mf );
/**
* Returns jitter amount
*/
double jitter( ) const { return m_jitter; }
/**
* Sets the jitter amount
*/
void setJitter( double j );
/**
* Returns the maximum trace level global flag
*/
bool maxTraceLevelGlobal( ) const { return m_maxTraceLevelGlobal; }
/**
* Sets the maximum trace level global flag
*/
void setMaxTraceLevelGlobal( bool mtlg );
/**
* Returns the maximum trace level
*/
int maxTraceLevel( ) const { return m_maxTraceLevel; }
/**
* Sets the maximum trace level
*/
void setMaxTraceLevel( int mtl );
/**
* Returns the adc bailout global flag
*/
bool adcBailoutGlobal( ) const { return m_adcBailoutGlobal; }
/**
* Sets the adc bailout global flag
*/
void setAdcBailoutGlobal( bool abg );
/**
* Returns the adc bailout
*/
double adcBailout( ) const { return m_adcBailout; }
/**
* Sets the adc bailout
*/
void setAdcBailout( double ab );
/**
* Returns the autostop fraction
*/
double autostop( ) const { return m_autostop; }
/**
* Sets the autostop fraction
*/
void setAutostop( double a );
/**
* Returns the expand threshold percent increase
*/
double expandIncrease( ) const { return m_expandIncrease; }
/**
* Sets the expand threshold percent increase
*/
void setExpandIncrease( double ei );
/**
* Returns the expand threshold minimum
*/
int expandMin( ) const { return m_expandMin; }
/**
* Sets the expand threshold minimum
*/
void setExpandMin( int em );
/**
* Retuens the gather radius
*/
double radiusGather( ) const { return m_radiusGather; }
/**
* Sets the gather radius
*/
void setRadiusGather( double rg );
/**
* Returns the gather radius multiplier
*/
double radiusGatherMulti( ) const { return m_radiusGatherMulti; }
/**
* Sets the radius gather multiplier
*/
void setRadiusGatherMulti( double rgm );
/**
* Returns the media gather radius
*/
double radiusMedia( ) const { return m_radiusMedia; }
/**
* Sets the media gather radius
*/
void setRadiusMedia( double rm );
/**
* Returns the media gather radius multiplier
*/
double radiusMediaMulti( ) const { return m_radiusMediaMulti; }
/**
* Sets the media gather radius multiplier
*/
void setRadiusMediaMulti( double rmm );
/** */
virtual void restoreMemento( PMMemento* s );
private:
/**
* IDs for @ref PMMementoData
*/
enum PMGlobalPhotonsMementoID
{ PMNumberTypeID, PMSpacingID, PMCountID, PMGatherMinID, PMGatherMaxID,
PMMediaMaxStepsID, PMMediaFactorID, PMJitterID, PMMaxTraceLevelGlobalID,
PMMaxTraceLevelID, PMAdcBailoutGlobalID, PMAdcBailoutID, PMAutostopID,
PMExpandIncreaseID, PMExpandMinID, PMRadiusGatherID, PMRadiusGatherMultiID,
PMRadiusMediaID, PMRadiusMediaMultiID };
PMNumberType m_numberType;
double m_spacing;
int m_count;
int m_gatherMin;
int m_gatherMax;
int m_mediaMaxSteps;
double m_mediaFactor;
double m_jitter;
bool m_maxTraceLevelGlobal;
int m_maxTraceLevel;
bool m_adcBailoutGlobal;
double m_adcBailout;
double m_autostop;
double m_expandIncrease;
int m_expandMin;
double m_radiusGather;
double m_radiusGatherMulti;
double m_radiusMedia;
double m_radiusMediaMulti;
static PMMetaObject* s_pMetaObject;
};
#endif
|