Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
d75c2a27
Commit
d75c2a27
authored
Nov 04, 2014
by
Hossain Mahmud
Browse files
all properties of volExp except TransferFunc and xyzProps::abc
parent
bb7ea319
Changes
3
Hide whitespace changes
Inline
Side-by-side
application/gui/mainwindow.cpp
View file @
d75c2a27
...
...
@@ -332,12 +332,14 @@ namespace campvis {
PropertyCollectionLua
*
_pcLua
=
new
PropertyCollectionLua
();
std
::
string
pipeScript
=
"pipeline = pipelines[
\"
"
+
_selectedPipeline
->
getName
()
+
"
\"
]
\n\n
"
;
for
(
int
i
=
0
;
i
<
_selectedPipeline
->
getProcessors
().
size
();
i
++
)
{
for
(
int
i
=
1
;
i
<
_selectedPipeline
->
getProcessors
().
size
();
i
++
)
{
pipeScript
+=
"proc = pipeline:getProcessor("
+
StringUtils
::
toString
(
i
)
+
")
\n
"
;
AbstractProcessor
*
proc
=
_selectedPipeline
->
getProcessor
(
i
);
_pcLua
->
updatePropCollection
(
proc
,
&
_selectedPipeline
->
getDataContainer
());
pipeScript
+=
_pcLua
->
getLuaScript
(
""
);
std
::
string
res
=
_pcLua
->
getLuaScript
(
""
);
pipeScript
+=
res
;
std
::
cout
<<
"
\n\n
"
+
pipeScript
+
"
\n\n
"
;
}
if
(
pipeScript
!=
"pipeline = pipelines[
\"
"
+
_selectedPipeline
->
getName
()
+
"
\"
]
\n\n
"
)
{
std
::
ofstream
file
;
...
...
scripting/luagen/properties/boolpropertylua.cpp
View file @
d75c2a27
...
...
@@ -37,7 +37,7 @@ namespace campvis {
std
::
string
BoolPropertyLua
::
getLuaScript
(
std
::
string
prefix
)
{
std
::
string
ret
=
""
;
ret
+=
"getNestedProperty(
\"
"
+
prefix
+
_property
->
getName
()
+
"
\"
):setValue("
+
StringUtils
::
toString
(
static_cast
<
BoolProperty
*>
(
_property
)
->
getValue
()
)
+
")"
;
+
(
static_cast
<
BoolProperty
*>
(
_property
)
->
getValue
()
==
1
?
"true"
:
"false"
)
+
")"
;
return
ret
;
}
}
\ No newline at end of file
scripting/luagen/properties/propertycollectionlua.cpp
View file @
d75c2a27
...
...
@@ -59,6 +59,7 @@ namespace campvis {
// create widgets for the new PropertyCollection
if
(
propertyCollection
!=
0
)
{
_luaMap
.
clear
();
for
(
std
::
vector
<
AbstractProperty
*>::
const_iterator
it
=
propertyCollection
->
getProperties
().
begin
();
it
!=
propertyCollection
->
getProperties
().
end
();
++
it
)
{
addProperty
(
*
it
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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