[Fwd: [vtkusers] vtkBorlandrenderWindow and vtkImagePlaneWidget]
Luca Picello
luca.picello at libero.it
Wed May 12 16:49:19 EDT 2004
Ooops wrong .cpp attachment !!!
That's all again, sorry.
Luca
-------- Original Message --------
Subject: [vtkusers] vtkBorlandrenderWindow and vtkImagePlaneWidget
Date: Wed, 12 May 2004 22:21:58 +0200
From: Luca Picello <luca.picello at libero.it>
To: VTK Users <vtkusers at vtk.org>
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 --------------
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/4ef2b762/attachment.jpg>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkBorlandRenderWindow.cpp
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040512/4ef2b762/attachment.txt>
More information about the vtkusers
mailing list