Omnidome
Fulldome Mapping Software Toolkit
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
omni
ui
TestInputPreview.h
Go to the documentation of this file.
1
/* Copyright (c) 2014-2016 "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_UI_TESTINPUTPREVIEW_H_
21
#define OMNI_UI_TESTINPUTPREVIEW_H_
22
23
#include <
omni/input/TestImage.h
>
24
#include <
omni/ui/InputPreview.h
>
25
26
namespace
omni {
27
namespace
ui {
28
/// An input preview for display a test image input
29
class
TestInputPreview
:
public
InputPreview
{
30
Q_OBJECT
31
public
:
32
TestInputPreview
(QWidget* =
nullptr
);
33
TestInputPreview
(
input::TestImage
*, QWidget* =
nullptr
);
34
~TestInputPreview
();
35
36
protected
:
37
void
mouseMoveEvent
(QMouseEvent *event);
38
void
mousePressEvent
(QMouseEvent *event);
39
void
mouseReleaseEvent
(QMouseEvent *event);
40
41
private
:
42
/// Set ruler position of input from widget coordinates
43
void
setRulerPos
(QPointF
const
&);
44
};
45
}
46
}
47
48
#endif
/* OMNI_UI_TESTINPUTPREVIEW_H_ */
omni::ui::TestInputPreview::setRulerPos
void setRulerPos(QPointF const &)
Set ruler position of input from widget coordinates.
Definition:
TestInputPreview.cpp:61
omni::ui::TestInputPreview::~TestInputPreview
~TestInputPreview()
Definition:
TestInputPreview.cpp:32
omni::ui::TestInputPreview::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
Definition:
TestInputPreview.cpp:51
TestImage.h
omni::ui::TestInputPreview::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition:
TestInputPreview.cpp:34
omni::ui::InputPreview
GLView for visualizing an input.
Definition:
InputPreview.h:32
omni::ui::TestInputPreview::TestInputPreview
TestInputPreview(QWidget *=nullptr)
Definition:
TestInputPreview.cpp:25
omni::ui::TestInputPreview::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Mouse press event sets mouse position.
Definition:
TestInputPreview.cpp:44
omni::ui::TestInputPreview
An input preview for display a test image input.
Definition:
TestInputPreview.h:29
InputPreview.h
omni::input::TestImage
Abstract class for test images that are generated with a shader.
Definition:
TestImage.h:32
Generated on Fri May 20 2016 13:38:19 for Omnidome by
1.8.6