Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
cf5a47ee
Commit
cf5a47ee
authored
Oct 02, 2001
by
Ken Martin
Browse files
supports image viewer 2
parent
d541beeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/Testing/Tcl/rtImageTest.tcl
View file @
cf5a47ee
...
...
@@ -83,7 +83,9 @@ if {$validImageFound != 0} {
set threshold 5
}
if
{[
info commands viewer
]
==
"viewer"
}
{
rt_w2if SetInput
[
viewer GetImageWindow
]
if
{[
catch
{
rt_w2if SetInput
[
viewer GetImageWindow
]}]}
{
rt_w2if SetInput
[
viewer GetRenderWindow
]
}
viewer Render
}
else
{
if
{[
info commands imgWin
]
==
"imgWin"
}
{
...
...
@@ -91,7 +93,9 @@ if {$validImageFound != 0} {
imgWin Render
}
else
{
if
{[
info exists viewer
]}
{
rt_w2if SetInput
[
$viewer
GetImageWindow
]
if
{[
catch
{
rt_w2if SetInput
[
$viewer
GetImageWindow
]}]}
{
rt_w2if SetInput
[
$viewer
GetRenderWindow
]
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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