Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
SCameraExternal.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
47 Array GetPosition() ;
48
51 SetPosition(SPoint iPosition);
52
59
63 SetOrientation(Number iAngX, Number iAngY, Number iAngZ);
64};
65
66// @brief
67// this class allow to wrap static function to SCameraExternal easily
68// this allow to wrap constructor more easily the constructor will be declared with the function New(...)
70#ifndef FCT_DOC
71 : public SObjectStatic
72#endif // FCT_DOC
73{
74 //======================================================================================================================
75 // INTERNAL FUNCTION
76 //======================================================================================================================
77
78 //======================================================================================================================
79 // DOCUMENTED FUNCTION
80 //======================================================================================================================
81public slots:
82
86
90
105 static Array FromFile( String iFileName
107 );
108
111 String toString() ;
112};
113Q_DECLARE_METATYPE(SCameraExternal::_SCameraExternalDummy);
114Q_DECLARE_METATYPE(SCameraExternal);
115
116#ifndef FCT_DOC
117} // namespace rsh::ScriptBinding
118#endif // !FCT_DOC
119
120Q_DECLARE_METATYPE(rsh::ScriptBinding::SCameraExternal);
This class is only available if you have the Survey plugin. .
Definition: SCameraExternal.h:30
SetPosition(SPoint iPosition)
Set the camera position in the world frame.
String toString()
Get the type of the variable.
static Array FromFile(String iFileName)
Function to import an .excam file and create a new SCameraExternal from file.
Array GetOrientation()
Get the camera orientation in the world coordinate system.
static SCameraExternal New()
Default constructor.
Array GetPosition()
Get the camera position in the world frame.
SetOrientation(Number iAngX, Number iAngY, Number iAngZ)
Set the camera orientation from rotation angles in the world coordinate system. Angles are given in d...
static SCameraExternal New(SCameraExternal iOther)
Constructs a SCameraExternal by copying the SCameraExternal Other.
This class is an abstract class, you can use these function in its derived classes.
Definition: SObject.h:35
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23