8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshDisplay/SComp/SImage.h"
10#include "RshPluginScript/SClass/SCameraInternal.h"
11#include "RshPluginScript/SClass/SComp.h"
12#include <QtScript/Array>
13#include <QtScript/QScriptable>
16namespace rsh::ScriptBinding
70 Array<SPoint> iCrdModel3D,
71 Array<SPoint> iCrdUVImage,
216 :
public SObjectStatic
275 Number iPixelPerTriangle,
277 Boolean iIsUpdateOnlyTriWithoutTexture
292 return SComp::GetFromName<SImage>(iName);
302 static Array
All(Number iVisCrit = 2)
304 return SComp::GetAll<SImage>(iVisCrit);
311Q_DECLARE_METATYPE(SImage::_SImageDummy);
312Q_DECLARE_METATYPE(
SImage);
318Q_DECLARE_METATYPE(rsh::ScriptBinding::SImage);
This class is only available if you have the Survey plugin. .
Definition: SCameraExternal.h:30
This class is only available if you have the Survey plugin. .
Definition: SCameraInternal.h:30
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
This class is only available if you have the Survey plugin. .
Definition: SImage.h:29
Array SetMaskFromFile(String iMaskFilePath)
Set the texture mask of the SImage from a file. File extensions authorized: .bmp, ....
Boolean HasMask()
Return if the SImage has a mask or not.
Array GoToCameraViewpoint()
Go to the camera viewpoint.
Array GetCameraInternalParameters()
Get internal camera parameters of a perspective image.
Array EstimatePose(Array< SPoint > iCrdModel3D, Array< SPoint > iCrdUVImage, EstimatePoseConstraintEnum iContraints=CONSTRAINT_NONE)
Estimate the pose of an image using reference points.
static Array ConvertColorToTexture(SPoly ioPoly, Number iPixelPerTriangle, Boolean iIsUpdateOnlyTriWithoutTexture)
Converts colors/inspections of a mesh into texture.
Array SetCameraExternalParameters(SCameraExternal iExternalParams)
Set external camera parameters for perspective and spherical images.
Array EstimatePoseFromFile(String iPath, EstimatePoseConstraintEnum iContraints=CONSTRAINT_NONE)
Estimate the pose of an image using reference points stored in a file.
Array SetOrthoParameters(SPoint iPosition, Number iRotation, Number iPixelSize)
Set ortho image parameters.
static Array FromSel()
Function to get selected images.
static Array All(Number iVisCrit=2)
Get all the SImage in the document.
Definition: SImage.h:302
Array GetImageType()
Get image type.
EstimatePoseConstraintEnum
Bitmask to know which parameters are fixed and should not be estimated.
Definition: SImage.h:40
@ CONSTRAINT_POSITION
Definition: SImage.h:42
@ CONSTRAINT_NONE
Definition: SImage.h:41
@ CONSTRAINT_ORIENTATION
Definition: SImage.h:43
Array ClearMask()
Clear the link between and image and its texture mask.
static SImage New(SImage iOther, SImageType iImageType={})
Constructs a SImage by copying the SImage Other and setting the SImageType in input....
Array SetCameraInternalParameters(SCameraInternal iInternalParams)
Set internal camera parameters for a perspective image.
Array GetOrthoParameters()
Get ortho image parameters.
SImageType
Image Type.
Definition: SImage.h:230
@ SPHERICAL
Definition: SImage.h:233
@ ABSTRACT
Definition: SImage.h:231
@ PERSPECTIVE
Definition: SImage.h:232
Array CreateMaskAuto()
Create an automatic mask from the SImage.
Array EstimatePose(String iPath)
Estimate the pose of an image using reference points stored in a file.
Array GetCameraExternalParameters()
Get external camera parameters of perspective and spherical images.
static Array FromName(String iName)
Search all the component with the given name.
Definition: SImage.h:290
static Array ConvertTextureMapsToAtlas(SPoly ioPoly)
Converts all the texture maps of a mesh into one (or several) texture atlas.
String toString()
Get the type of the variable.
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
The SPoly class provides triangular mesh(es) manipulation. The SPoly creation can be done by calling ...
Definition: SPoly.h:39