Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Envelope.h
Go to the documentation of this file.
1 /* Copyright (c) 2014-2015 "Omnidome" by cr8tr
2  * Dome Mapping Projection Software (http://omnido.me).
3  * Omnidome was created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo)
4  *
5  * This file is part of Omnidome.
6  *
7  * Omnidome is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Affero General Public License for more details.
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef OMNI_CANVAS_ENVELOPE_H_
21 #define OMNI_CANVAS_ENVELOPE_H_
22 
23 #include <omni/canvas/Interface.h>
24 
25 namespace omni {
26  namespace canvas {
27  /// An enveloped canvas can enclose the viewer and can be projected from
28  // inside or outside
29  class Envelope :
30  public Canvas {
31  public:
32  Envelope();
33  ~Envelope();
34 
35  /// Returns copy of cached bounding box
36  Box bounds() const;
37 
38  /// Draw envelope
39  virtual void draw() const;
40 
41  protected:
42  /// Protected bounding box member
43  omni::Box bounds_;
44  };
45  }
46 }
47 
48 #endif /* OMNI_CANVAS_ENVELOPE_H_ */
omni::Box bounds_
Protected bounding box member.
Definition: Envelope.h:43
Envelope()
Definition: Envelope.cpp:28
Abstract interface for a canvas A canvas represents the surface on which the projection is performed...
Definition: Interface.h:46
Box bounds() const
Returns copy of cached bounding box.
Definition: Envelope.cpp:41
An enveloped canvas can enclose the viewer and can be projected from.
Definition: Envelope.h:29
~Envelope()
Definition: Envelope.cpp:32
virtual void draw() const
Draw envelope.
Definition: Envelope.cpp:36