1 /**
2 
3 
4 Copyright:
5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.  
6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)  
7 Copyright (c) 2017-2018 Godot-D contributors  
8 
9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
10 
11 
12 */
13 module godot.giprobedata;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.traits;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.globalenums;
22 import godot.object;
23 import godot.classdb;
24 import godot.resource;
25 /**
26 
27 */
28 @GodotBaseClass struct GIProbeData
29 {
30 	package(godot) enum string _GODOT_internal_name = "GIProbeData";
31 public:
32 @nogc nothrow:
33 	union { /** */ godot_object _godot_object; /** */ Resource _GODOT_base; }
34 	alias _GODOT_base this;
35 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
36 	package(godot) __gshared bool _classBindingInitialized = false;
37 	package(godot) static struct GDNativeClassBinding
38 	{
39 		__gshared:
40 		@GodotName("get_bias") GodotMethod!(double) getBias;
41 		@GodotName("get_bounds") GodotMethod!(AABB) getBounds;
42 		@GodotName("get_cell_size") GodotMethod!(double) getCellSize;
43 		@GodotName("get_dynamic_data") GodotMethod!(PoolIntArray) getDynamicData;
44 		@GodotName("get_dynamic_range") GodotMethod!(long) getDynamicRange;
45 		@GodotName("get_energy") GodotMethod!(double) getEnergy;
46 		@GodotName("get_normal_bias") GodotMethod!(double) getNormalBias;
47 		@GodotName("get_propagation") GodotMethod!(double) getPropagation;
48 		@GodotName("get_to_cell_xform") GodotMethod!(Transform) getToCellXform;
49 		@GodotName("is_compressed") GodotMethod!(bool) isCompressed;
50 		@GodotName("is_interior") GodotMethod!(bool) isInterior;
51 		@GodotName("set_bias") GodotMethod!(void, double) setBias;
52 		@GodotName("set_bounds") GodotMethod!(void, AABB) setBounds;
53 		@GodotName("set_cell_size") GodotMethod!(void, double) setCellSize;
54 		@GodotName("set_compress") GodotMethod!(void, bool) setCompress;
55 		@GodotName("set_dynamic_data") GodotMethod!(void, PoolIntArray) setDynamicData;
56 		@GodotName("set_dynamic_range") GodotMethod!(void, long) setDynamicRange;
57 		@GodotName("set_energy") GodotMethod!(void, double) setEnergy;
58 		@GodotName("set_interior") GodotMethod!(void, bool) setInterior;
59 		@GodotName("set_normal_bias") GodotMethod!(void, double) setNormalBias;
60 		@GodotName("set_propagation") GodotMethod!(void, double) setPropagation;
61 		@GodotName("set_to_cell_xform") GodotMethod!(void, Transform) setToCellXform;
62 	}
63 	/// 
64 	pragma(inline, true) bool opEquals(in GIProbeData other) const
65 	{ return _godot_object.ptr is other._godot_object.ptr; }
66 	/// 
67 	pragma(inline, true) typeof(null) opAssign(typeof(null) n)
68 	{ _godot_object.ptr = n; return null; }
69 	/// 
70 	pragma(inline, true) bool opEquals(typeof(null) n) const
71 	{ return _godot_object.ptr is n; }
72 	/// 
73 	size_t toHash() const @trusted { return cast(size_t)_godot_object.ptr; }
74 	mixin baseCasts;
75 	/// Construct a new instance of GIProbeData.
76 	/// Note: use `memnew!GIProbeData` instead.
77 	static GIProbeData _new()
78 	{
79 		static godot_class_constructor constructor;
80 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("GIProbeData");
81 		if(constructor is null) return typeof(this).init;
82 		return cast(GIProbeData)(constructor());
83 	}
84 	@disable new(size_t s);
85 	/**
86 	
87 	*/
88 	double getBias() const
89 	{
90 		checkClassBinding!(typeof(this))();
91 		return ptrcall!(double)(GDNativeClassBinding.getBias, _godot_object);
92 	}
93 	/**
94 	
95 	*/
96 	AABB getBounds() const
97 	{
98 		checkClassBinding!(typeof(this))();
99 		return ptrcall!(AABB)(GDNativeClassBinding.getBounds, _godot_object);
100 	}
101 	/**
102 	
103 	*/
104 	double getCellSize() const
105 	{
106 		checkClassBinding!(typeof(this))();
107 		return ptrcall!(double)(GDNativeClassBinding.getCellSize, _godot_object);
108 	}
109 	/**
110 	
111 	*/
112 	PoolIntArray getDynamicData() const
113 	{
114 		checkClassBinding!(typeof(this))();
115 		return ptrcall!(PoolIntArray)(GDNativeClassBinding.getDynamicData, _godot_object);
116 	}
117 	/**
118 	
119 	*/
120 	long getDynamicRange() const
121 	{
122 		checkClassBinding!(typeof(this))();
123 		return ptrcall!(long)(GDNativeClassBinding.getDynamicRange, _godot_object);
124 	}
125 	/**
126 	
127 	*/
128 	double getEnergy() const
129 	{
130 		checkClassBinding!(typeof(this))();
131 		return ptrcall!(double)(GDNativeClassBinding.getEnergy, _godot_object);
132 	}
133 	/**
134 	
135 	*/
136 	double getNormalBias() const
137 	{
138 		checkClassBinding!(typeof(this))();
139 		return ptrcall!(double)(GDNativeClassBinding.getNormalBias, _godot_object);
140 	}
141 	/**
142 	
143 	*/
144 	double getPropagation() const
145 	{
146 		checkClassBinding!(typeof(this))();
147 		return ptrcall!(double)(GDNativeClassBinding.getPropagation, _godot_object);
148 	}
149 	/**
150 	
151 	*/
152 	Transform getToCellXform() const
153 	{
154 		checkClassBinding!(typeof(this))();
155 		return ptrcall!(Transform)(GDNativeClassBinding.getToCellXform, _godot_object);
156 	}
157 	/**
158 	
159 	*/
160 	bool isCompressed() const
161 	{
162 		checkClassBinding!(typeof(this))();
163 		return ptrcall!(bool)(GDNativeClassBinding.isCompressed, _godot_object);
164 	}
165 	/**
166 	
167 	*/
168 	bool isInterior() const
169 	{
170 		checkClassBinding!(typeof(this))();
171 		return ptrcall!(bool)(GDNativeClassBinding.isInterior, _godot_object);
172 	}
173 	/**
174 	
175 	*/
176 	void setBias(in double bias)
177 	{
178 		checkClassBinding!(typeof(this))();
179 		ptrcall!(void)(GDNativeClassBinding.setBias, _godot_object, bias);
180 	}
181 	/**
182 	
183 	*/
184 	void setBounds(in AABB bounds)
185 	{
186 		checkClassBinding!(typeof(this))();
187 		ptrcall!(void)(GDNativeClassBinding.setBounds, _godot_object, bounds);
188 	}
189 	/**
190 	
191 	*/
192 	void setCellSize(in double cell_size)
193 	{
194 		checkClassBinding!(typeof(this))();
195 		ptrcall!(void)(GDNativeClassBinding.setCellSize, _godot_object, cell_size);
196 	}
197 	/**
198 	
199 	*/
200 	void setCompress(in bool compress)
201 	{
202 		checkClassBinding!(typeof(this))();
203 		ptrcall!(void)(GDNativeClassBinding.setCompress, _godot_object, compress);
204 	}
205 	/**
206 	
207 	*/
208 	void setDynamicData(in PoolIntArray dynamic_data)
209 	{
210 		checkClassBinding!(typeof(this))();
211 		ptrcall!(void)(GDNativeClassBinding.setDynamicData, _godot_object, dynamic_data);
212 	}
213 	/**
214 	
215 	*/
216 	void setDynamicRange(in long dynamic_range)
217 	{
218 		checkClassBinding!(typeof(this))();
219 		ptrcall!(void)(GDNativeClassBinding.setDynamicRange, _godot_object, dynamic_range);
220 	}
221 	/**
222 	
223 	*/
224 	void setEnergy(in double energy)
225 	{
226 		checkClassBinding!(typeof(this))();
227 		ptrcall!(void)(GDNativeClassBinding.setEnergy, _godot_object, energy);
228 	}
229 	/**
230 	
231 	*/
232 	void setInterior(in bool interior)
233 	{
234 		checkClassBinding!(typeof(this))();
235 		ptrcall!(void)(GDNativeClassBinding.setInterior, _godot_object, interior);
236 	}
237 	/**
238 	
239 	*/
240 	void setNormalBias(in double bias)
241 	{
242 		checkClassBinding!(typeof(this))();
243 		ptrcall!(void)(GDNativeClassBinding.setNormalBias, _godot_object, bias);
244 	}
245 	/**
246 	
247 	*/
248 	void setPropagation(in double propagation)
249 	{
250 		checkClassBinding!(typeof(this))();
251 		ptrcall!(void)(GDNativeClassBinding.setPropagation, _godot_object, propagation);
252 	}
253 	/**
254 	
255 	*/
256 	void setToCellXform(in Transform to_cell_xform)
257 	{
258 		checkClassBinding!(typeof(this))();
259 		ptrcall!(void)(GDNativeClassBinding.setToCellXform, _godot_object, to_cell_xform);
260 	}
261 	/**
262 	
263 	*/
264 	@property double bias()
265 	{
266 		return getBias();
267 	}
268 	/// ditto
269 	@property void bias(double v)
270 	{
271 		setBias(v);
272 	}
273 	/**
274 	
275 	*/
276 	@property AABB bounds()
277 	{
278 		return getBounds();
279 	}
280 	/// ditto
281 	@property void bounds(AABB v)
282 	{
283 		setBounds(v);
284 	}
285 	/**
286 	
287 	*/
288 	@property double cellSize()
289 	{
290 		return getCellSize();
291 	}
292 	/// ditto
293 	@property void cellSize(double v)
294 	{
295 		setCellSize(v);
296 	}
297 	/**
298 	
299 	*/
300 	@property bool compress()
301 	{
302 		return isCompressed();
303 	}
304 	/// ditto
305 	@property void compress(bool v)
306 	{
307 		setCompress(v);
308 	}
309 	/**
310 	
311 	*/
312 	@property PoolIntArray dynamicData()
313 	{
314 		return getDynamicData();
315 	}
316 	/// ditto
317 	@property void dynamicData(PoolIntArray v)
318 	{
319 		setDynamicData(v);
320 	}
321 	/**
322 	
323 	*/
324 	@property long dynamicRange()
325 	{
326 		return getDynamicRange();
327 	}
328 	/// ditto
329 	@property void dynamicRange(long v)
330 	{
331 		setDynamicRange(v);
332 	}
333 	/**
334 	
335 	*/
336 	@property double energy()
337 	{
338 		return getEnergy();
339 	}
340 	/// ditto
341 	@property void energy(double v)
342 	{
343 		setEnergy(v);
344 	}
345 	/**
346 	
347 	*/
348 	@property bool interior()
349 	{
350 		return isInterior();
351 	}
352 	/// ditto
353 	@property void interior(bool v)
354 	{
355 		setInterior(v);
356 	}
357 	/**
358 	
359 	*/
360 	@property double normalBias()
361 	{
362 		return getNormalBias();
363 	}
364 	/// ditto
365 	@property void normalBias(double v)
366 	{
367 		setNormalBias(v);
368 	}
369 	/**
370 	
371 	*/
372 	@property double propagation()
373 	{
374 		return getPropagation();
375 	}
376 	/// ditto
377 	@property void propagation(double v)
378 	{
379 		setPropagation(v);
380 	}
381 	/**
382 	
383 	*/
384 	@property Transform toCellXform()
385 	{
386 		return getToCellXform();
387 	}
388 	/// ditto
389 	@property void toCellXform(Transform v)
390 	{
391 		setToCellXform(v);
392 	}
393 }