Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
7bde0f08
Commit
7bde0f08
authored
5 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
c14n
parent
2b31506b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Environment/TimeOfDay/TimeOfDay.x3d
+50
-50
50 additions, 50 deletions
Environment/TimeOfDay/TimeOfDay.x3d
with
50 additions
and
50 deletions
Environment/TimeOfDay/TimeOfDay.x3d
+
50
−
50
View file @
7bde0f08
...
...
@@ -112,17 +112,17 @@
<Script
DEF=
'ampm'
>
<field
accessType=
'inputOnly'
name=
'set_boolean'
type=
'SFBool'
/>
<field
accessType=
'outputOnly'
name=
'whichchoice'
type=
'SFInt32'
/>
<![CDATA[
ecmascript:
function set_boolean ( boolean_input, eventTime)
{
if ( boolean_input== false ) { whichchoice = 0;}
if ( boolean_input== true ) { whichchoice = 1; }
}
<![CDATA[
ecmascript:
function set_boolean ( boolean_input, eventTime)
{
if ( boolean_input== false ) { whichchoice = 0;}
if ( boolean_input== true ) { whichchoice = 1; }
}
]]>
</Script>
<Transform
scale=
'4 1 1'
translation=
'-1 2.5 0'
>
...
...
@@ -167,23 +167,23 @@ function set_boolean ( boolean_input, eventTime)
<field
accessType=
'inputOnly'
name=
'set_boolean'
type=
'SFBool'
/>
<field
accessType=
'outputOnly'
name=
'hour_changed'
type=
'SFInt32'
/>
<field
accessType=
'outputOnly'
name=
'twelvebool'
type=
'SFBool'
/>
<![CDATA[
ecmascript:
function set_boolean ( boolean_input, eventTime)
{
Browser.print ('boolean_input=' + boolean_input);
if ( boolean_input == true )
{ hour_changed = hour_changed + 1;}
if (hour_changed <= 11){twelvebool = false; }
if (hour_changed >
11){twelvebool = true; }
if (hour_changed ==24) {hour_changed = 0;}
}
// separage function needed for set_hour
// hour_changed is an output, it gets set in the function
<![CDATA[
ecmascript:
function set_boolean ( boolean_input, eventTime)
{
Browser.print ('boolean_input=' + boolean_input);
if ( boolean_input == true )
{ hour_changed = hour_changed + 1;}
if (hour_changed <= 11){twelvebool = false; }
if (hour_changed >
11){twelvebool = true; }
if (hour_changed ==24) {hour_changed = 0;}
}
// separage function needed for set_hour
// hour_changed is an output, it gets set in the function
]]>
</Script>
<Transform
scale=
'5 5 5'
translation=
'-18 18 100'
>
...
...
@@ -290,28 +290,28 @@ function set_boolean ( boolean_input, eventTime)
<field
accessType=
'outputOnly'
name=
'whichchoice'
type=
'SFInt32'
/>
<field
accessType=
'outputOnly'
name=
'range'
type=
'SFFloat'
/>
<field
accessType=
'outputOnly'
name=
'binder'
type=
'SFBool'
/>
<![CDATA[
ecmascript:
function set_boolean ( boolean_input, eventTime)
{
binder =true;
if ( boolean_input== false ) { return; }
whichchoice = whichchoice +1;
if ( whichchoice ==12 ) { whichchoice = 0; }
if (whichchoice ==0) {range = 0;}
if (whichchoice ==1) {range = 5000;}
if (whichchoice ==2) {range = 2500;}
if (whichchoice ==3) {range = 1000;}
if (whichchoice ==4) {range = 500;}
if (whichchoice ==5) {range = 250;}
if (whichchoice ==6) {range = 100;}
if (whichchoice ==7) {range = 50;}
if (whichchoice ==8) {range = 25;}
if (whichchoice ==9) {range = 10;}
if (whichchoice ==10) {range = 5;}
if (whichchoice ==11) {range = 1;}
}
<![CDATA[
ecmascript:
function set_boolean ( boolean_input, eventTime)
{
binder =true;
if ( boolean_input== false ) { return; }
whichchoice = whichchoice +1;
if ( whichchoice ==12 ) { whichchoice = 0; }
if (whichchoice ==0) {range = 0;}
if (whichchoice ==1) {range = 5000;}
if (whichchoice ==2) {range = 2500;}
if (whichchoice ==3) {range = 1000;}
if (whichchoice ==4) {range = 500;}
if (whichchoice ==5) {range = 250;}
if (whichchoice ==6) {range = 100;}
if (whichchoice ==7) {range = 50;}
if (whichchoice ==8) {range = 25;}
if (whichchoice ==9) {range = 10;}
if (whichchoice ==10) {range = 5;}
if (whichchoice ==11) {range = 1;}
}
]]>
</Script>
</Transform>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment