Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nickolas Davis
VTK-m
Commits
6a3ba429
Commit
6a3ba429
authored
Sep 14, 2020
by
Kenneth Moreland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning about unused function
parent
c6a4f9b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
17 deletions
+32
-17
vtkm/cont/ColorTable.cxx
vtkm/cont/ColorTable.cxx
+32
-17
No files found.
vtkm/cont/ColorTable.cxx
View file @
6a3ba429
...
...
@@ -200,33 +200,48 @@ inline vtkm::Vec<float, 3> hsvTorgb(const vtkm::Vec<float, 3>& hsv)
return
rgb
;
}
// clang-format off
inline
bool
outside_vrange
(
double
x
)
{
return
x
<
0.0
||
x
>
1.0
;
}
inline
bool
outside_vrange
(
const
vtkm
::
Vec
<
double
,
2
>&
x
)
{
return
x
[
0
]
<
0.0
||
x
[
0
]
>
1.0
||
x
[
1
]
<
0.0
||
x
[
1
]
>
1.0
;
}
inline
bool
outside_vrange
(
const
vtkm
::
Vec
<
double
,
3
>&
x
)
{
return
x
[
0
]
<
0.0
||
x
[
0
]
>
1.0
||
x
[
1
]
<
0.0
||
x
[
1
]
>
1.0
||
x
[
2
]
<
0.0
||
x
[
2
]
>
1.0
;
}
inline
bool
outside_vrange
(
float
x
)
{
return
x
<
0.0
f
||
x
>
1.0
f
;
}
inline
bool
outside_vrange
(
const
vtkm
::
Vec
<
float
,
2
>&
x
)
{
return
x
[
0
]
<
0.0
f
||
x
[
0
]
>
1.0
f
||
x
[
1
]
<
0.0
f
||
x
[
1
]
>
1.0
f
;
}
inline
bool
outside_vrange
(
const
vtkm
::
Vec
<
float
,
3
>&
x
)
{
return
x
[
0
]
<
0.0
f
||
x
[
0
]
>
1.0
f
||
x
[
1
]
<
0.0
f
||
x
[
1
]
>
1.0
f
||
x
[
2
]
<
0.0
f
||
x
[
2
]
>
1.0
f
;
}
inline
bool
outside_range
()
{
return
false
;
}
inline
bool
outside_vrange
(
double
x
)
{
return
x
<
0.0
||
x
>
1.0
;
}
inline
bool
outside_vrange
(
float
x
)
{
return
x
<
0.0
f
||
x
>
1.0
f
;
}
template
<
typename
T
>
inline
bool
outside_vrange
(
const
vtkm
::
Vec
<
T
,
2
>&
x
)
{
return
outside_vrange
(
x
[
0
])
||
outside_vrange
(
x
[
1
]);
}
template
<
typename
T
>
inline
bool
outside_vrange
(
const
vtkm
::
Vec
<
T
,
3
>&
x
)
{
return
outside_vrange
(
x
[
0
])
||
outside_vrange
(
x
[
1
])
||
outside_vrange
(
x
[
2
]);
}
inline
bool
outside_range
()
{
return
false
;
}
template
<
typename
T
>
inline
bool
outside_range
(
T
&&
t
)
{
return
outside_vrange
(
t
);
}
inline
bool
outside_range
(
T
&&
t
)
{
return
outside_vrange
(
t
);
}
template
<
typename
T
,
typename
U
>
inline
bool
outside_range
(
T
&&
t
,
U
&&
u
)
{
return
outside_vrange
(
t
)
||
outside_vrange
(
u
);
}
inline
bool
outside_range
(
T
&&
t
,
U
&&
u
)
{
return
outside_vrange
(
t
)
||
outside_vrange
(
u
);
}
template
<
typename
T
,
typename
U
,
typename
V
,
typename
...
Args
>
inline
bool
outside_range
(
T
&&
t
,
U
&&
u
,
V
&&
v
,
Args
&&
...
args
)
{
return
outside_vrange
(
t
)
||
outside_vrange
(
u
)
||
outside_vrange
(
v
)
||
outside_range
(
std
::
forward
<
Args
>
(
args
)...);
outside_range
(
std
::
forward
<
Args
>
(
args
)...);
}
// clang-format on
}
namespace
vtkm
...
...
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