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
Christian Butz
VTK
Commits
530aaf1f
Commit
530aaf1f
authored
Apr 14, 2010
by
Dave Partyka
Browse files
BUG: merge visibility fixes for the Box Widget from Yumin.
parent
88d64c0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Widgets/Testing/Cxx/BoxWidget2.cxx
View file @
530aaf1f
...
...
@@ -542,6 +542,12 @@ int BoxWidget2( int , char *[] )
// testing option fails.
recorder
->
Off
();
boxRep
->
SetPlaceFactor
(
1.0
);
boxRep
->
HandlesOff
();
boxRep
->
SetPlaceFactor
(
1.25
);
boxRep
->
HandlesOn
();
iren
->
Start
();
// Clean up
...
...
Widgets/vtkBoxRepresentation.cxx
View file @
530aaf1f
...
...
@@ -38,7 +38,7 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro
(
vtkBoxRepresentation
,
"1.9"
);
vtkCxxRevisionMacro
(
vtkBoxRepresentation
,
"1.9
.4.1
"
);
vtkStandardNewMacro
(
vtkBoxRepresentation
);
//----------------------------------------------------------------------------
...
...
@@ -1101,9 +1101,12 @@ int vtkBoxRepresentation::RenderOpaqueGeometry(vtkViewport *v)
count
+=
this
->
HexFace
->
RenderOpaqueGeometry
(
v
);
// render the handles
for
(
int
j
=
0
;
j
<
7
;
j
++
)
{
if
(
this
->
Handle
[
j
]
->
GetVisibility
())
{
count
+=
this
->
Handle
[
j
]
->
RenderOpaqueGeometry
(
v
);
}
}
return
count
;
}
...
...
@@ -1119,9 +1122,12 @@ int vtkBoxRepresentation::RenderTranslucentPolygonalGeometry(vtkViewport *v)
count
+=
this
->
HexFace
->
RenderTranslucentPolygonalGeometry
(
v
);
// render the handles
for
(
int
j
=
0
;
j
<
7
;
j
++
)
{
if
(
this
->
Handle
[
j
]
->
GetVisibility
())
{
count
+=
this
->
Handle
[
j
]
->
RenderTranslucentPolygonalGeometry
(
v
);
}
}
return
count
;
}
...
...
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