CycloPos Header version 1.0.0
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
cyDisplay.h
Go to the documentation of this file.
1//*****************************************************************************
2// File : cyDisplay.h
3// Module : CycloPos
4// Description : Definition of a positioned display
5// Author : Anders Modén
6// Product : CycloPos 1.0.0
7//
8// Copyright © 2011- ToolTech Software, Sweden
9//
10// NOTE: CycloPos is a generic VR and Tool positioning library for a mono camera
11//
12//
13// Revision History...
14//
15// Who Date Description
16//
17// AMO 110901 Created file
18//
19//******************************************************************************
20#ifndef __CY_DISPLAY_H__
21#define __CY_DISPLAY_H__
22
23#include "cyBase.h" // CycloPos generic include
24#include "cyMath.h"
25
26class cyCamera; // Forward declaration
27class cyMatch; // Forward declaration
28
29class cyDisplay : public gzReference , public gzNameInterface
30{
31public:
32
33 CY_EXPORT cyDisplay(const gzString &name="Display");
34
36
37 // ----- Utils --------------------
38
39 CY_EXPORT gzBool addSpaceMapping(gzFloat pixel_x,gzFloat pixel_y,gzFloat X,gzFloat Y);
40
41 CY_EXPORT gzFloat calcBestPosition(cyCamera *camera,cyMatch *matches,gzBool camera_matched_with_display,gzFloat requiredMaxError=CY_DEFAULT_MIN_PIXEL_DIST,gzUInt32 iterations=CY_DEFAULT_RANSAC_MAX_ITERATIONS);
42
43 // ----- Properties ---------------
44
46 GZ_PROPERTY_EXPORT(gzMatrixf, H, CY_EXPORT);
47
49 GZ_PROPERTY_EXPORT(gzMatrixf, Transform, CY_EXPORT);
50
51
52private:
53
54 gzMatrixf m_mapping;
55
56};
57
58GZ_DECLARE_REFPTR(cyDisplay);
59
60
61#endif // __CY_DISPLAY_H__
62
63
64
65
66
67
virtual ~cyDisplay()
gzFloat calcBestPosition(cyCamera *camera, cyMatch *matches, gzBool camera_matched_with_display, gzFloat requiredMaxError=CY_DEFAULT_MIN_PIXEL_DIST, gzUInt32 iterations=CY_DEFAULT_RANSAC_MAX_ITERATIONS)
cyDisplay(const gzString &name="Display")
gzBool addSpaceMapping(gzFloat pixel_x, gzFloat pixel_y, gzFloat X, gzFloat Y)
Basic include for all CycloPos files. Defines export structures and basic flags and builtin compiled ...
#define CY_EXPORT
Export control of dll functions.
Definition cyBase.h:50
#define CY_DEFAULT_MIN_PIXEL_DIST
Definition cyBase.h:94
#define CY_DEFAULT_RANSAC_MAX_ITERATIONS
Definition cyBase.h:93