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
Andrew Bauer
VTK
Commits
f3abc386
Commit
f3abc386
authored
Jul 24, 1995
by
Ken Martin
Browse files
added destructor and bug fixed to get/set rgb
parent
ea10de5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SbrRenW.cc
View file @
f3abc386
...
...
@@ -37,6 +37,23 @@ vtkSbrRenderWindow::vtkSbrRenderWindow()
this
->
Buffer
=
0
;
}
vtkSbrRenderWindow
::~
vtkSbrRenderWindow
()
{
// close the starbase window
if
(
this
->
Fd
)
{
gclose
(
this
->
Fd
);
}
this
->
Fd
=
-
1
;
/* free the Xwindow we created no need to free the colormap */
if
(
this
->
OwnWindow
)
{
XDestroyWindow
(
this
->
DisplayId
,
this
->
WindowId
);
}
XSync
(
this
->
DisplayId
,
0
);
}
// Description:
// Create a starbase specific light.
...
...
@@ -1182,11 +1199,11 @@ void vtkSbrRenderWindow::SetPixelData(int x1, int y1, int x2, int y2,
{
if
(
front
)
{
double_buffer
(
this
->
Fd
,
TRUE
|
DFRONT
|
INIT
,
this
->
NumPlanes
);
double_buffer
(
this
->
Fd
,
SUPPRESS_CLEAR
|
TRUE
|
DFRONT
|
INIT
,
this
->
NumPlanes
);
}
else
{
double_buffer
(
this
->
Fd
,
TRUE
|
INIT
,
this
->
NumPlanes
);
double_buffer
(
this
->
Fd
,
SUPPRESS_CLEAR
|
TRUE
|
INIT
,
this
->
NumPlanes
);
}
}
...
...
@@ -1339,8 +1356,6 @@ void vtkSbrRenderWindow::CopyResultFrame(void)
size
=
this
->
GetSize
();
this
->
SetPixelData
(
0
,
0
,
size
[
0
]
-
1
,
size
[
1
]
-
1
,
this
->
ResultFrame
,
0
);
delete
[]
this
->
ResultFrame
;
this
->
ResultFrame
=
NULL
;
}
this
->
Frame
();
...
...
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