Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
304eba0f
Commit
304eba0f
authored
Apr 25, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Invisible for Float32
parent
6441976a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+33
-1
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
304eba0f
/*
* Proview $Id: ge_dyn.cpp,v 1.
49 2007-02-05 09:40:39
claes Exp $
* Proview $Id: ge_dyn.cpp,v 1.
50 2007-04-25 07:31:47
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2607,6 +2607,38 @@ int GeInvisible::scan( grow_tObject object)
}
old_value
=
*
p
;
break
;
case
pwr_eType_Float32
:
{
pwr_tFloat32
*
fp_old
=
(
pwr_tFloat32
*
)
&
old_value
;
if
(
!
first_scan
)
{
if
(
fabs
(
*
(
pwr_tFloat32
*
)
p
-
*
fp_old
)
<
FLT_EPSILON
&&
!
dyn
->
reset_invisible
)
{
// No change since last time
if
(
(
!
inverted
&&
fabs
(
*
(
pwr_tFloat32
*
)
p
)
>
FLT_EPSILON
)
||
(
inverted
&&
fabs
(
*
(
pwr_tFloat32
*
)
p
)
<
FLT_EPSILON
))
dyn
->
ignore_invisible
=
true
;
return
1
;
}
}
else
first_scan
=
false
;
if
(
(
!
inverted
&&
fabs
(
*
(
pwr_tFloat32
*
)
p
)
<
FLT_EPSILON
)
||
(
inverted
&&
fabs
(
*
(
pwr_tFloat32
*
)
p
)
>
FLT_EPSILON
))
{
grow_SetObjectVisibility
(
object
,
glow_eVis_Visible
);
dyn
->
reset_color
=
true
;
dyn
->
reset_invisible
=
true
;
}
else
{
if
(
dimmed
)
grow_SetObjectVisibility
(
object
,
glow_eVis_Dimmed
);
else
grow_SetObjectVisibility
(
object
,
glow_eVis_Invisible
);
dyn
->
ignore_color
=
true
;
dyn
->
ignore_invisible
=
true
;
}
*
fp_old
=
*
(
pwr_tFloat32
*
)
p
;
break
;
}
case
graph_eType_Bit
:
{
pwr_tBoolean
val
=
((
*
p
&
bitmask
)
!=
0
);
...
...
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