COGS
Computer Graphics Structures library
DynamicScan.h
1 #ifndef COGS_DYNAMIC_SCAN_H
2 #define COGS_DYNAMIC_SCAN_H
3 #include <glm/detail/type_mat4x4.hpp>
4 #include <COGS/Scan.h>
5 
6 namespace cogs
7 {
9  class COGS_API DynamicScan : public cogs::Scan
10  {
11  public:
12 
14  DynamicScan() = default;
16  ~DynamicScan() override = default;
17 
19  DynamicScan(const DynamicScan &source);
21  DynamicScan &operator=(const DynamicScan &source);
23  DynamicScan(DynamicScan &&) = default;
25  DynamicScan &operator=(DynamicScan &&) = default;
26 
32  virtual void Transform(
33  const glm::mat4 &transformation,
34  const std::optional<utils::SpaceDefinition> &resulting_space = std::nullopt) override;
35 
37  const glm::mat4 &GetCurrentTransform() const;
38 
40  void RevertTransformations();
41 
43  void ResetTransform();
44 
45  private:
46  glm::mat4 transformation_{ glm::mat4(1.0f) };
47  };
48 }
49 
50 #endif /* !COGS_DYNAMIC_SCAN_H */
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8
Class used for effective management of transformation matrix by handling translation, rotation and scaling separately.
Definition: Transform.h:26
Scan able to change and remember its current transformation.
Definition: DynamicScan.h:9
Set of 3D data points which are additionally organized over 2D grid.
Definition: Scan.h:22