GPU-Accelerated Coverage  0.1.0
Compute coverage tours for known environment with articulated objects on GPU
CameraPanorama.h
1 /*
2  * Copyright (c) 2018, Stefan Osswald
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright notice, this
9  * list of conditions and the following disclaimer.
10  *
11  * * Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions and the following disclaimer in the documentation
13  * and/or other materials provided with the distribution.
14  *
15  * * Neither the name of the copyright holder nor the names of its
16  * contributors may be used to endorse or promote products derived from
17  * this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30 
31 #ifndef INCLUDE_ARTICULATION_CAMERAPANORAMA_H_
32 #define INCLUDE_ARTICULATION_CAMERAPANORAMA_H_
33 
34 #include <gpu_coverage/CameraPerspective.h>
35 
36 namespace gpu_coverage {
37 
45 public:
51  enum Direction {
52  RIGHT = 0,
53  LEFT = 1,
54  TOP = 2,
55  BOTTOM = 3,
56  BACK = 4,
57  FRONT = 5
58  };
59 
65  CameraPanorama(const size_t& id, Node * const node);
66 
70  virtual ~CameraPanorama();
71 
81  virtual void setViewProjection(const LocationsMVP& locationsMVP, std::vector<glm::mat4>& view) const;
82 
83 };
84 
85 } /* namespace gpu_coverage */
86 
87 #endif /* INCLUDE_ARTICULATION_CAMERAPANORAMA_H_ */
GL_TEXTURE_CUBE_MAP_POSITIVE_X.
Definition: CameraPanorama.h:52
GL_TEXTURE_CUBE_MAP_NEGATIVE_X.
Definition: CameraPanorama.h:53
GL_TEXTURE_CUBE_MAP_POSITIVE_Y.
Definition: CameraPanorama.h:54
Scene graph node, corresponding to Assimp&#39;s aiNode.
Definition: Node.h:52
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z.
Definition: CameraPanorama.h:57
Direction
Cube map side.
Definition: CameraPanorama.h:51
virtual void setViewProjection(const LocationsMVP &locationsMVP, std::vector< glm::mat4 > &view) const
Forward the view and projection matrices to the given locations of a GLSL shader and additionally ret...
Perspective projection camera.
Definition: CameraPerspective.h:45
Locations of model, view, and projection shader variables.
Definition: Programs.h:104
CameraPanorama(const size_t &id, Node *const node)
Constructor.
virtual ~CameraPanorama()
Destructor.
Definition: AbstractCamera.h:41
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y.
Definition: CameraPanorama.h:55
Node *const node
Scene graph node assigned to this camera, see getNode().
Definition: AbstractCamera.h:119
Omnidirectional panorama camera.
Definition: CameraPanorama.h:44
GL_TEXTURE_CUBE_MAP_POSITIVE_Z.
Definition: CameraPanorama.h:56