Helios++
Helios software for LiDAR simulations
PyNoiseSourceWrapper.h
1 #pragma once
2 
3 #ifdef PYTHON_BINDING
4 
5 #include <NoiseSource.h>
6 
7 namespace pyhelios{
8 
17 public:
18  // *** ATTRIBUTES *** //
19  // ******************** //
21 
22  // *** CONSTRUCTION *** //
23  // ********************** //
25  virtual ~PyNoiseSourceWrapper(){}
26 
27  // *** GETTERS and SETTERS *** //
28  // ***************************** //
29  inline double getClipMin() {return ns.getClipMin();}
30  inline void setClipMin(double clipMin) {ns.setClipMin(clipMin);}
31  inline double getClipMax() {return ns.getClipMax();}
32  inline void setClipMax(double clipMax) {ns.setClipMax(clipMax);}
33  inline bool isEnabled() {return ns.isClipEnabled();}
34  inline void setEnabled(bool enabled) {ns.setClipEnabled(enabled);}
35  inline bool isFixedValueEnabled() {return ns.isFixedValueEnabled();}
36  inline unsigned long getFixedLifespan() {return ns.getFixedLifespan();}
37  inline void setFixedLifespan(unsigned long fixedLifespan)
38  {ns.setFixedLifespan(fixedLifespan);}
39  inline unsigned long getFixedValueRemainingUses()
40  {return ns.getFixedValueRemainingUses();}
41  inline void setFixedValueRemainingUses(unsigned long remainingUses)
42  {ns.setFixedValueRemainingUses(remainingUses);}
43  double next(){return ns.next();}
44 };
45 
46 }
47 
48 #endif
RealType next()
Obtain the next default noise value.
Definition: NoiseSource.h:258
NoiseSource & setFixedLifespan(unsigned long fixedLifespan)
Set the fixed value lifespan.
Definition: NoiseSource.h:168
NoiseSource & setFixedValueRemainingUses(unsigned long remainingUses)
Update remaining uses count for current fixed value.
Definition: NoiseSource.h:186
unsigned long getFixedLifespan()
Obtain the fixed value lifespan.
Definition: NoiseSource.h:158
bool isFixedValueEnabled()
Check if fixed value usage is enabled or not.
Definition: NoiseSource.h:151
unsigned long getFixedValueRemainingUses()
Obtain the remaining uses of current fixed value.
Definition: NoiseSource.h:179
double getClipMax()
Obtain the clip max value.
Definition: NoiseSource.h:109
NoiseSource & setClipMax(RealType clipMax)
Set the clip max value.
Definition: NoiseSource.h:117
NoiseSource & setClipEnabled(bool clipEnabled)
Enable clipping by setting it to true or disable it by setting to false.
Definition: NoiseSource.h:132
double getClipMin()
Obtain the clip min value.
Definition: NoiseSource.h:94
bool isClipEnabled()
Check if clipping is enabled or not.
Definition: NoiseSource.h:124
NoiseSource & setClipMin(RealType clipMin)
Set the clip min value.
Definition: NoiseSource.h:102
Wrapper for NoiseSource abstract class.
Definition: PyNoiseSourceWrapper.h:16