FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
QCameraWidget.h
Go to the documentation of this file.
1
#ifndef Q_CAMERA_WIDGET_H_
2
#define Q_CAMERA_WIDGET_H_
3
4
#include "
BasicGlCamera.h
"
5
#include <valarray>
6
#include <set>
7
8
class
QCameraWidget
:
public
BasicGlCamera
9
{
10
Q_OBJECT
11
12
typedef
std::pair<double, double>
Position
;
13
typedef
std::vector<Position>
Positions
;
14
15
//FIXME this variable seems to be deprecated
16
Positions
fGeom
;
17
18
std::vector<bool>
fBold
;
19
std::vector<bool>
fEnable
;
20
21
std::vector<int>
highlightedPatches
;
22
std::vector<int>
highlightedPixels
;
23
24
25
int
lastFace
;
26
bool
fShowPixelMoveOver
;
27
bool
fShowPatchMoveOver
;
28
29
public
:
30
bool
fDrawPatch
;
31
void
highlightPixel
(
int
idx,
bool
highlight=
true
);
32
void
highlightPatch
(
int
idx,
bool
highlight=
true
);
33
void
clearHighlightedPatches
();
34
void
clearHighlightedPixels
();
35
QCameraWidget
(QWidget *pparent = 0);
36
void
paintGL
();
37
void
mousePressEvent
(QMouseEvent *cEvent);
38
void
mouseMoveEvent
(QMouseEvent *event);
39
void
mouseDoubleClickEvent
(QMouseEvent *event);
40
void
Reset
();
41
void
drawCamera
(
bool
alsoWire);
42
void
DrawCameraText
();
43
void
drawPatches
();
44
void
SetEnable
(
int
idx,
bool
b);
45
double
GetData
(
int
idx);
46
const
char
*
GetName
();
47
48
int
GetIdx
(
float
px,
float
py);
49
char
*
GetObjectInfo
(
int
px,
int
py);
50
51
void
SetData
(
const
std::valarray<double> &ddata);
52
void
SetData
(
const
std::valarray<float> &ddata);
53
54
55
void
ShowPixelCursor
(
bool
);
56
void
ShowPatchCursor
(
bool
);
57
58
private
:
59
void
CalculatePixelsColor
();
60
void
CalculatePatchColor
();
61
62
};
63
64
typedef
QCameraWidget
Camera
;
65
#endif
QCameraWidget::GetName
const char * GetName()
Definition:
QCameraWidget.cc:322
QCameraWidget::GetIdx
int GetIdx(float px, float py)
QCameraWidget::SetEnable
void SetEnable(int idx, bool b)
Definition:
QCameraWidget.cc:313
QCameraWidget::highlightedPixels
std::vector< int > highlightedPixels
Definition:
QCameraWidget.h:22
QCameraWidget::mousePressEvent
void mousePressEvent(QMouseEvent *cEvent)
Definition:
QCameraWidget.cc:236
QCameraWidget::highlightPatch
void highlightPatch(int idx, bool highlight=true)
Definition:
QCameraWidget.cc:479
QCameraWidget::CalculatePatchColor
void CalculatePatchColor()
Definition:
QCameraWidget.cc:422
QCameraWidget::ShowPixelCursor
void ShowPixelCursor(bool)
Definition:
QCameraWidget.cc:301
BasicGlCamera.h
QCameraWidget::fShowPatchMoveOver
bool fShowPatchMoveOver
Definition:
QCameraWidget.h:27
QCameraWidget::clearHighlightedPatches
void clearHighlightedPatches()
Definition:
QCameraWidget.cc:503
QCameraWidget::Positions
std::vector< Position > Positions
Definition:
QCameraWidget.h:13
QCameraWidget::GetObjectInfo
char * GetObjectInfo(int px, int py)
Definition:
QCameraWidget.cc:326
QCameraWidget::GetData
double GetData(int idx)
Definition:
QCameraWidget.cc:318
QCameraWidget::ShowPatchCursor
void ShowPatchCursor(bool)
Definition:
QCameraWidget.cc:307
QCameraWidget::DrawCameraText
void DrawCameraText()
Definition:
QCameraWidget.cc:93
QCameraWidget::fDrawPatch
bool fDrawPatch
Definition:
QCameraWidget.h:30
QCameraWidget::fGeom
Positions fGeom
Definition:
QCameraWidget.h:16
QCameraWidget::paintGL
void paintGL()
Definition:
QCameraWidget.cc:23
QCameraWidget::QCameraWidget
QCameraWidget(QWidget *pparent=0)
Definition:
QCameraWidget.cc:10
QCameraWidget::Position
std::pair< double, double > Position
Definition:
QCameraWidget.h:12
QCameraWidget::SetData
void SetData(const std::valarray< double > &ddata)
Definition:
QCameraWidget.cc:435
QCameraWidget::drawPatches
void drawPatches()
Definition:
QCameraWidget.cc:190
QCameraWidget
Definition:
QCameraWidget.h:8
QCameraWidget::fShowPixelMoveOver
bool fShowPixelMoveOver
Definition:
QCameraWidget.h:26
BasicGlCamera
Definition:
BasicGlCamera.h:42
Camera
QCameraWidget Camera
Definition:
QCameraWidget.h:64
QCameraWidget::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *event)
Definition:
QCameraWidget.cc:279
QCameraWidget::highlightedPatches
std::vector< int > highlightedPatches
Definition:
QCameraWidget.h:21
QCameraWidget::highlightPixel
void highlightPixel(int idx, bool highlight=true)
Definition:
QCameraWidget.cc:456
QCameraWidget::drawCamera
void drawCamera(bool alsoWire)
Definition:
QCameraWidget.cc:72
QCameraWidget::fBold
std::vector< bool > fBold
Definition:
QCameraWidget.h:18
QCameraWidget::CalculatePixelsColor
void CalculatePixelsColor()
Definition:
QCameraWidget.cc:339
QCameraWidget::clearHighlightedPixels
void clearHighlightedPixels()
Definition:
QCameraWidget.cc:509
QCameraWidget::lastFace
int lastFace
Definition:
QCameraWidget.h:25
QCameraWidget::Reset
void Reset()
Definition:
QCameraWidget.cc:231
QCameraWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition:
QCameraWidget.cc:258
QCameraWidget::fEnable
std::vector< bool > fEnable
Definition:
QCameraWidget.h:19
gui
QCameraWidget.h
Generated on Sun Sep 18 2016 20:50:23 for FACT++ by
1.8.11