Helios++
Helios software for LiDAR simulations
PyScenePartWrapper.h
1 #pragma once
2 
3 #ifdef PYTHON_BINDING
4 
5 #include <ScenePart.h>
6 
15 public:
16  // *** ATTRIBUTES *** //
17  // ******************** //
18  ScenePart &sp;
19 
20  // *** CONSTRUCTION / DESTRUCTION *** //
21  // ************************************ //
22  PyScenePartWrapper(ScenePart &sp) : sp(sp) {}
23  virtual ~PyScenePartWrapper() {}
24 
25  // *** GETTERS and SETTERS *** //
26  // ***************************** //
27  std::string getId() {return sp.mId;};
28  void setId(std::string id) {sp.mId = id;}
29  PythonDVec3 * getOrigin() {return new PythonDVec3(sp.mOrigin);}
30  void setOrigin(double x, double y, double z)
31  {sp.mOrigin = glm::dvec3(x, y, z);}
32  Rotation & getRotation() {return sp.mRotation;}
33  void setRotation(double x, double y, double z, double angle)
34  {sp.mRotation = Rotation(glm::dvec3(x, y, z), angle);}
35  double getScale() {return sp.mScale;}
36  void setScale(double scale) {sp.mScale = scale;}
37 };
38 
39 #endif
Definition: Rotation.h:80
Rotation mRotation
Specify the rotation for the scene part.
Definition: ScenePart.h:84
Wrapper for ScenePart class.
Definition: PyScenePartWrapper.h:14
double mScale
Specify the scale for the scene part.
Definition: ScenePart.h:88
Class representing a scene part.
Definition: ScenePart.h:16
glm::dvec3 mOrigin
Specify the origin for the scene part.
Definition: ScenePart.h:80
std::string mId
Identifier for the scene part.
Definition: ScenePart.h:43
Wrapper to communicate glm::dvec3 with python.
Definition: PythonDVec3.h:14