Helios++
Helios software for LiDAR simulations
PyRaySceneIntersectionWrapper.h
1 #pragma once
2 
3 #ifdef PYTHON_BINDING
4 
5 #include <PythonDVec3.h>
6 
15 public:
16  // *** ATTRIBUTES *** //
17  // ******************** //
19 
20  // *** CONSTRUCTION / DESTRUCTION *** //
21  // ************************************ //
23  rsi(new RaySceneIntersection(rsi)) {}
24  virtual ~PyRaySceneIntersectionWrapper() {delete rsi;}
25 
26  // *** GETTERS and SETTERS *** //
27  // ***************************** //
28  PyPrimitiveWrapper * getPrimitive()
29  {return new PyPrimitiveWrapper(rsi->prim);}
30  PythonDVec3 * getPoint()
31  {return new PythonDVec3(rsi->point);}
32  double getIncidenceAngle() {return rsi->incidenceAngle;}
33  void setIncidenceAngle(double incidenceAngle)
34  {rsi->incidenceAngle = incidenceAngle;}
35 
36 };
37 
38 #endif
glm::dvec3 point
Intersection point.
Definition: RaySceneIntersection.h:23
Primitive * prim
Primitive intersected by the ray.
Definition: RaySceneIntersection.h:19
Class representing a the intersection of a ray over a scene made of primitives.
Definition: RaySceneIntersection.h:12
Wrapper for RaySceneIntersection.
Definition: PyRaySceneIntersectionWrapper.h:14
Wrapper for Primitive class.
Definition: PyPrimitiveWrapper.h:18
double incidenceAngle
Intersection incidence angle.
Definition: RaySceneIntersection.h:27
Wrapper to communicate glm::dvec3 with python.
Definition: PythonDVec3.h:14