Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
SCameraInternal.h
1
2// This file is part of the 3DReshaper technology software and is a proprietary information of TECHNODIGIT.
3// Do NOT reproduce or disclose this file without TECHNODIGIT written consent.
5
6#pragma once
7
8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshBasePrivate/Unit/RshUnits.h"
10#include "RshDisplay/SComp/DAbstractImage.h"
11#include "RshDisplay/SComp/SImage.h"
12#include "RshPluginScript/SClass/SComp.h"
13#include <QtScript/Array>
14#include <QtScript/QScriptable>
15
16#ifndef FCT_DOC
17namespace rsh::ScriptBinding
18{
19#endif // !FCT_DOC
20
30{
31 //======================================================================================================================
32 // INTERNAL FUNCTION
33 //======================================================================================================================
34 //======================================================================================================================
35 // DOCUMENTED FUNCTION
36 //======================================================================================================================
37public:
38public slots:
39
42 String toString() ;
43
44 //---------------------------------------------------------------------------------------------------------------------
47 Number GetFocalLength() ;
48
49 //---------------------------------------------------------------------------------------------------------------------
52 SetFocalLength(Number iFocalLength);
53
54 //---------------------------------------------------------------------------------------------------------------------
57 Number GetSensorWidth() ;
58
59 //---------------------------------------------------------------------------------------------------------------------
62 Number GetSensorHeight() ;
63
64 //---------------------------------------------------------------------------------------------------------------------
67 SetSensorSize(Number iSensorWidth, Number iSensorHeight);
68
69 //---------------------------------------------------------------------------------------------------------------------
72 Number GetPixelSize() ;
73
74 //---------------------------------------------------------------------------------------------------------------------
77 SetPixelSize(Number iPixelSize);
78
79 //---------------------------------------------------------------------------------------------------------------------
82 Number GetPPAx() ;
83
84 //---------------------------------------------------------------------------------------------------------------------
87 Number GetPPAy() ;
88
89 //---------------------------------------------------------------------------------------------------------------------
92 SetPPA(Number xPPA, Number yPPA);
93
94 //---------------------------------------------------------------------------------------------------------------------
97 Number GetPPSx() ;
98
99 //---------------------------------------------------------------------------------------------------------------------
102 Number GetPPSy() ;
103
104 //---------------------------------------------------------------------------------------------------------------------
107 SetPPS(Number xPPS, Number yPPS);
108
109 //---------------------------------------------------------------------------------------------------------------------
114
115 //---------------------------------------------------------------------------------------------------------------------
118 SetRadialDistortion(Array<Number> iCoefK);
119
120 //---------------------------------------------------------------------------------------------------------------------
125
126 //---------------------------------------------------------------------------------------------------------------------
129 SetTangentialDistortion(Array<Number> iCoefP);
130};
131
132// @brief
133// this class allow to wrap static function to SCameraInternal easily
134// this allow to wrap constructor more easily the constructor will be declared with the function New(...)
135class SCameraInternal
136#ifndef FCT_DOC
137 : public SObjectStatic
138#endif // FCT_DOC
139{
140 //======================================================================================================================
141 // INTERNAL FUNCTION
142 //======================================================================================================================
143
144 //======================================================================================================================
145 // DOCUMENTED FUNCTION
146 //======================================================================================================================
147public slots:
148
152
156
171 static Array FromFile( String iFileName
173 );
174
177 String toString() ;
178};
179Q_DECLARE_METATYPE(SCameraInternal::_SCameraInternalDummy);
180Q_DECLARE_METATYPE(SCameraInternal);
181
182#ifndef FCT_DOC
183} // namespace rsh::ScriptBinding
184#endif // !FCT_DOC
185
186Q_DECLARE_METATYPE(rsh::ScriptBinding::SCameraInternal);
This class is only available if you have the Survey plugin. .
Definition: SCameraInternal.h:30
Number GetFocalLength()
Get the focal length in mm.
Number GetPPAy()
Get Y value of the principal point of autocollimation in mm.
SetPPS(Number xPPS, Number yPPS)
Set the principal point of symmetry in mm.
SetTangentialDistortion(Array< Number > iCoefP)
Set the tangential distortion coefficients. The input table should have 2 elements.
Number GetPPAx()
Get X value of the principal point of autocollimation in mm.
static SCameraInternal New(SCameraInternal iOther)
Constructs a SCameraInternal by copying the SCameraInternal Other.
SetPixelSize(Number iPixelSize)
Set the pixel size in mm.
Number GetSensorWidth()
Get the sensor width in mm.
SetSensorSize(Number iSensorWidth, Number iSensorHeight)
Set the sensor size in mm.
Number GetSensorHeight()
Get the sensor height in mm.
SetPPA(Number xPPA, Number yPPA)
Set the principal point of autocollimation in mm.
Number GetPixelSize()
Get the pixel size in mm.
static Array FromFile(String iFileName)
Function to import an .incam file and create a new SCameraInternal from file.
Number GetPPSy()
Get Y value of the principal point of symmetry in mm.
SetRadialDistortion(Array< Number > iCoefK)
Set the radial distortion coefficients. The input table should have 7 elements.
Array GetRadialDistortion()
Get the radial distortion coefficients.
Number GetPPSx()
Get X value of the principal point of symmetry in mm.
Array GetTangentialDistortion()
Get the tangential distortion coefficients.
SetFocalLength(Number iFocalLength)
Set the focal length in mm.
String toString()
Get the type of the variable.
static SCameraInternal New()
Default constructor.
This class is an abstract class, you can use these function in its derived classes.
Definition: SObject.h:35