[vtkusers] vtkBorlandrenderWindow and vtkImagePlaneWidget

Luca Picello luca.picello at libero.it
Wed May 12 16:21:58 EDT 2004


It's me: your nightmare again,

I updated a little bit the file in attachment to prevent fatal errors 
while key pressed for improper object initialization.
When I push button 'i' ( causes GetRenderWindow ) over the 
vtkBorlandRenderWindow the window get crazy (look at the screenshot).
It is the same effect I have while using this code I did for my volume 
slicer ( I have 2 vtkBorlandRenderWindow on my form ):

vtkImageReader2  *v16 = vtkImageReader2::New();
    v16->SetDataByteOrderToLittleEndian();
    v16->SetDataExtent( 0, 63, 0, 63, 1, 93 );
    v16->SetFilePrefix ( "D:/VTKDATA/DATA/HEADSQ/QUARTER");
    v16->SetDataSpacing (3.2, 3.2, 1.5);
    v16->Update();

  vtkImagePlaneWidget* planeWidgetX = vtkImagePlaneWidget::New();
    planeWidgetX->DisplayTextOn();
    planeWidgetX->SetInput( v16->GetOutput() );
    planeWidgetX->SetPlaneOrientationToXAxes();
    planeWidgetX->SetSliceIndex( 1 );
    planeWidgetX->SetInteractor( vtkBorlandRenderWindow1->GetInteractor() );
    planeWidgetX->SetResliceInterpolate(VTK_LINEAR_RESLICE);
    planeWidgetX->Delete();

    v16->Delete();
    vtkBorlandRenderWindow1->Invalidate();

I think I use bad source code for vtkImagePlaneWidget but why? I cant 
find a solution !!!

Finally I report the little bug (already reported by others but better 
one more time then one less) with my new ATI Radeon 9600 SE with WinXP 
(latest drivers Version: 6.14.10.6436) .
When I push button 'i' several times and exit the application ( with no 
pipelines applied ) I have

Module Load: COMCTL32.dll. No Debug Info. Base Address: 0x71950000
Module Load: UxTheme.dll. No Debug Info. Base Address: 0x5AD70000
Module Load: MsgPlusH.dll. No Debug Info. Base Address: 0x10000000
Module Load: MSCTF.dll. No Debug Info. Base Address: 0x74720000
Module Load: ATIOGLXX.dll. No Debug Info. Base Address: 0x69000000
Module Load: MCD32.dll. No Debug Info. Base Address: 0x61DD0000
Module Unload: MCD32.dll
ODS: ERROR: In C:\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 237 
vtkWin32OpenGLRenderWindow (34009212): wglMakeCurrent failed in 
MakeCurrent(), error: The handle is invalid.
ODS: ERROR: In C:\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 128 
vtkWin32OpenGLRenderWindow (34009212): wglMakeCurrent failed in Clean(), 
error: 6

Thank you all in advance,
Picello Luca




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkBorlandRenderWindowPkg.cpp
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040512/d76cc003/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkBorlandRenderWindow.jpg
Type: image/jpeg
Size: 50386 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040512/d76cc003/attachment.jpg>


More information about the vtkusers mailing list