CycloPos
Header version 1.0.0
ToolTech Software · C++ library reference
ToolTech
Class reference
Change history
CorTeX ↗
Toggle main menu visibility
Loading...
Searching...
No Matches
include
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
26
class
cyCamera
;
// Forward declaration
27
class
cyMatch
;
// Forward declaration
28
29
class
cyDisplay
:
public
gzReference ,
public
gzNameInterface
30
{
31
public
:
32
33
CY_EXPORT
cyDisplay
(
const
gzString &name=
"Display"
);
34
35
CY_EXPORT
virtual
~cyDisplay
();
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
52
private
:
53
54
gzMatrixf m_mapping;
55
56
};
57
58
GZ_DECLARE_REFPTR(
cyDisplay
);
59
60
61
#endif
// __CY_DISPLAY_H__
62
63
64
65
66
67
cyCamera
Definition
cyCamera.h:28
cyDisplay
Definition
cyDisplay.h:30
cyDisplay::~cyDisplay
virtual ~cyDisplay()
cyDisplay::calcBestPosition
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::cyDisplay
cyDisplay(const gzString &name="Display")
cyDisplay::addSpaceMapping
gzBool addSpaceMapping(gzFloat pixel_x, gzFloat pixel_y, gzFloat X, gzFloat Y)
cyMatch
Definition
cyMatch.h:67
cyBase.h
Basic include for all CycloPos files. Defines export structures and basic flags and builtin compiled ...
CY_EXPORT
#define CY_EXPORT
Export control of dll functions.
Definition
cyBase.h:50
CY_DEFAULT_MIN_PIXEL_DIST
#define CY_DEFAULT_MIN_PIXEL_DIST
Definition
cyBase.h:94
CY_DEFAULT_RANSAC_MAX_ITERATIONS
#define CY_DEFAULT_RANSAC_MAX_ITERATIONS
Definition
cyBase.h:93
cyMath.h
Generated by
1.18.0