[vtkusers] Extending vtkImageImport and errors on callbacks

Ali - saveez at hotmail.com
Mon Oct 16 13:55:07 EDT 2006


Hi,

Assume myImageImport extends the class vtkImageImport and used in the 
following code:

myImageImport* imp = myImageImport::New();
imp->SetImportVoidPointer(...);

vtkImageMapToWindowLevelColors *mapToWL = 
vtkImageMapToWindowLevelColors::New();
mapToWL->SetInputConnection(importer->GetOutputPort());

vtkImageViewer2 *viewer = vtkImageViewer2::New();
viewer->SetInputConnection(mapToWL->GetOutputPort());

The last line calls vtkImageImport::InvokeUpdateInformationCallbacks() where 
'this' in the function body is NULL.

Do I need to override the callbacks when extending the corresponding class 
or am I missing something else?

_________________________________________________________________
Download the new Windows Live Toolbar, including Desktop search! 
http://toolbar.live.com/?mkt=en-gb




More information about the vtkusers mailing list