Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CGoGN
CGoGN
Commits
24dcc0c7
Commit
24dcc0c7
authored
Mar 26, 2015
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python recording
parent
d3ac24cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
SCHNApps/Plugins/surface_deformation/src/surface_deformation_dockTab.cpp
...s/surface_deformation/src/surface_deformation_dockTab.cpp
+4
-0
SCHNApps/Plugins/surface_radiance/src/surface_radiance.cpp
SCHNApps/Plugins/surface_radiance/src/surface_radiance.cpp
+5
-0
SCHNApps/Plugins/surface_radiance/src/surface_radiance_dockTab.cpp
...Plugins/surface_radiance/src/surface_radiance_dockTab.cpp
+9
-0
SCHNApps/src/schnapps.cpp
SCHNApps/src/schnapps.cpp
+6
-4
No files found.
SCHNApps/Plugins/surface_deformation/src/surface_deformation_dockTab.cpp
View file @
24dcc0c7
...
...
@@ -40,6 +40,7 @@ void Surface_Deformation_DockTab::positionAttributeChanged(int index)
{
MapHandler
<
PFP2
>*
mh
=
static_cast
<
MapHandler
<
PFP2
>*>
(
map
);
m_plugin
->
h_parameterSet
[
map
].
positionAttribute
=
mh
->
getAttribute
<
PFP2
::
VEC3
,
VERTEX
>
(
combo_positionAttribute
->
currentText
());
m_plugin
->
pythonRecording
(
"changePositionVBO"
,
""
,
map
->
getName
(),
combo_positionAttribute
->
currentText
());
}
}
}
...
...
@@ -54,6 +55,8 @@ void Surface_Deformation_DockTab::handleSelectorChanged(int index)
{
MapHandler
<
PFP2
>*
mh
=
static_cast
<
MapHandler
<
PFP2
>*>
(
map
);
m_plugin
->
h_parameterSet
[
map
].
handleSelector
=
mh
->
getCellSelector
<
VERTEX
>
(
combo_handleSelector
->
currentText
());
m_plugin
->
pythonRecording
(
"changeHandleSelector"
,
""
,
map
->
getName
(),
combo_handleSelector
->
currentText
());
}
}
}
...
...
@@ -67,6 +70,7 @@ void Surface_Deformation_DockTab::freeSelectorChanged(int index)
{
MapHandler
<
PFP2
>*
mh
=
static_cast
<
MapHandler
<
PFP2
>*>
(
map
);
m_plugin
->
h_parameterSet
[
map
].
freeSelector
=
mh
->
getCellSelector
<
VERTEX
>
(
combo_freeSelector
->
currentText
());
m_plugin
->
pythonRecording
(
"changeFreeSelector"
,
""
,
map
->
getName
(),
combo_freeSelector
->
currentText
());
}
}
}
...
...
SCHNApps/Plugins/surface_radiance/src/surface_radiance.cpp
View file @
24dcc0c7
...
...
@@ -267,6 +267,9 @@ MapHandlerGen* Surface_Radiance_Plugin::importFromFile(const QString& fileName)
mapParams.radiancePerVertexShader = new Utils::ShaderRadiancePerVertex(Utils::SphericalHarmonics<PFP2::REAL, PFP2::VEC3>::get_resolution());
registerShader(mapParams.radiancePerVertexShader);
}
this->pythonRecording("importFile", mhg->getName(), fi.baseName());
return mhg;
}
else
...
...
@@ -564,6 +567,8 @@ void Surface_Radiance_Plugin::exportPLY(
}
out.close() ;
this->pythonRecording("exportPLY", "", mapName, positionAttributeName, normalAttributeName, filename);
}
...
...
SCHNApps/Plugins/surface_radiance/src/surface_radiance_dockTab.cpp
View file @
24dcc0c7
...
...
@@ -37,6 +37,7 @@ void Surface_Radiance_DockTab::positionVBOChanged(int index)
m_plugin
->
h_mapParameterSet
[
map
].
positionVBO
=
map
->
getVBO
(
combo_positionVBO
->
currentText
());
foreach
(
View
*
v
,
map
->
getLinkedViews
())
v
->
updateGL
();
m_plugin
->
pythonRecording
(
"changePositionVBO"
,
""
,
map
->
getName
(),
combo_positionVBO
->
currentText
());
}
}
}
...
...
@@ -51,6 +52,7 @@ void Surface_Radiance_DockTab::normalVBOChanged(int index)
m_plugin
->
h_mapParameterSet
[
map
].
normalVBO
=
map
->
getVBO
(
combo_normalVBO
->
currentText
());
foreach
(
View
*
v
,
map
->
getLinkedViews
())
v
->
updateGL
();
m_plugin
->
pythonRecording
(
"changeNormalVBO"
,
""
,
map
->
getName
(),
combo_normalVBO
->
currentText
());
}
}
}
...
...
@@ -78,6 +80,13 @@ void Surface_Radiance_DockTab::decimateClicked()
slider_decimationGoal
->
value
()
/
100.0
f
,
checkbox_halfCollapse
->
checkState
()
==
Qt
::
Checked
);
m_plugin
->
pythonRecording
(
"decimate"
,
""
,
m_schnapps
->
getSelectedMap
()
->
getName
(),
combo_positionVBO
->
currentText
(),
combo_normalVBO
->
currentText
(),
slider_decimationGoal
->
value
()
/
100.0
f
,
checkbox_halfCollapse
->
checkState
()
==
Qt
::
Checked
);
}
...
...
SCHNApps/src/schnapps.cpp
View file @
24dcc0c7
...
...
@@ -440,10 +440,6 @@ void SCHNApps::disablePlugin(const QString& pluginName)
{
if
(
m_plugins
.
contains
(
pluginName
))
{
// RECORDING
if
(
m_pyRecording
)
*
m_pyRecording
<<
"schnapps.disablePlugin(
\"
"
<<
pluginName
<<
"
\"
);"
<<
endl
;
Plugin
*
plugin
=
m_plugins
[
pluginName
];
// remove plugin dock tabs
...
...
@@ -473,6 +469,12 @@ void SCHNApps::disablePlugin(const QString& pluginName)
emit
(
pluginDisabled
(
plugin
));
delete
plugin
;
// RECORDING
if
(
m_pyRecording
)
*
m_pyRecording
<<
"schnapps.disablePlugin(
\"
"
<<
pluginName
<<
"
\"
);"
<<
endl
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment