Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2022.
 
Loading...
Searching...
No Matches
SViewSet.h
1
2
3
5
6#pragma once
7
8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SComp.h"
10
11#ifndef FCT_DOC
12namespace rsh::ScriptBinding
13{
14#endif // !FCT_DOC
15
24class SViewSet : public SComp
25{
26 //======================================================================================================================
27 // INTERNAL FUNCTION
28 //======================================================================================================================
29
30 //======================================================================================================================
31 // DOCUMENTED FUNCTION
32 //======================================================================================================================
33
34public slots: // these functions (slots) will be available in QtScript
37 Update(Boolean SaveComponentsVisibility
39 );
40
43 String toString() ;
44};
45
46// @brief
47// This class allows to wrap static functions to SViewSet easily.
48// This allow to wrap constructor more easily : the constructor will be declared with the function New(...)
49class SViewSet
50#ifndef FCT_DOC
51 : public SObjectStatic
52#endif // FCT_DOC
53{
54 //======================================================================================================================
55 // INTERNAL FUNCTION
56 //======================================================================================================================
57
58 //======================================================================================================================
59 // DOCUMENTED FUNCTION
60 //======================================================================================================================
61public slots:
64 // TESTED
65 static SViewSet New(
66 Boolean SaveComponentsVisibility
68 );
69
72 // TESTED
73 static SViewSet New(SViewSet Other);
74
78 // TESTED
79 static Array FromName( String Name) { return SComp::GetFromName<SViewSet>(Name); }
80
84 // TESTED
85 static Array FromSel();
86
90 // TESTED
91 static Array All(
92 Number VisCrit
97 )
98 {
99 return SComp::GetAll<SViewSet>(VisCrit);
100 }
101
104 static String toString();
105};
106Q_DECLARE_METATYPE(SViewSet::_SViewSetDummy);
107Q_DECLARE_METATYPE(SViewSet);
108
109#ifndef FCT_DOC
110} // namespace rsh::ScriptBinding
111#endif // !FCT_DOC
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
ViewSet manipulation class. The SViewSet class will save position of the camera and visibility of the...
Definition: SViewSet.h:25
static SViewSet New(Boolean SaveComponentsVisibility)
Default constructor to create a SViewSet with current position.
static String toString()
Get the type of the variable.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SViewSet.h:91
Update(Boolean SaveComponentsVisibility)
Update the SViewSet with the current position of the camera.
static Array FromName(String Name)
Search all the component with the given name.
Definition: SViewSet.h:79
static Array FromSel()
To get all the selected SComp.
static SViewSet New(SViewSet Other)
Constructs an SViewSet by copying Other.
String toString()
Get the type of the variable.