[Insight-users] VTK render window error?
J Mst
gave_edgar@hotmail.com
Mon, 31 Mar 2003 08:42:03 +0000
Hi all,
I've a question about the renderwindow. I'm using ITK and VTK to show an
image. The image is first being prcessed with ITK and then it'll be shown
with VTK. I tried both the imageviewer and the renderwindow (with actors).
I'm all doing this in an VC++ MFC environment. I desinged it that the window
will be rendered when the user pushes the render-button.
When I use the ordinary "vtkImageViewer", my program will compile just fine
but when I run the program and hit the render window, it gives me an error.
I can see the render window but trough the error, the program is stuck. The
same think happens when I use a renderwindow with the use of actors/mappers
(same principle).
When I use a "vtkRenderWindowInteractor", the render window will show just.
In this case I added the command: renderwindowinteractor->Start().
The problem seems solved, but it isn't. When I want to close the window,
it'll give me the same error as before. So I suspect it has something to do
with the return value or something. For clarity, this error occurs when I'm
programming in a MFC. The error/break can be seen below.(the arrow indicates
the place of the break)
I couldn't find the problem as I looked through the mailing-list so.. Does
anyone here got a clue how to fix the problem?
!! I know this is not an ITK question but I got no response at the VTK
!! mailing list.
many thanks in advance.
Joris
Medical Spectrum
Enschede, The Netherlands
--------------<SNIP>--------------------------------------------
void VTKImageExportBase::UpdateInformationCallbackFunction(void* userData)
{
static_cast<VTKImageExportBase*>(userData)->
-----> UpdateInformationCallback();
}
int VTKImageExportBase::PipelineModifiedCallbackFunction(void* userData)
{
return static_cast<VTKImageExportBase*>(userData)->
PipelineModifiedCallback();
--------------<SNIP>--------------------------------------------
_________________________________________________________________
Hotmail en Messenger on the move
http://www.msn.nl/communicatie/smsdiensten/hotmailsmsv2/