[Paraview] Fail to get the mapper of a volume actor!

2011-10-01 Thread 沈恩亚
Hi All, I used the codes following to get the mapper of a volume actor, but I get NULL while *volume *is not NULL. * vtkAbstractMapper3D *mapper = NULL; if ( (volume = vtkVolume::SafeDownCast(propCandidate)) != NULL ) mapper = volume-GetMapper(); * Why? Thanks for any advice! Best

[Paraview] Fail to get the mapper of a volume actor

2011-09-30 Thread 沈恩亚
Hi All, I used the codes following to get the mapper of a volume actor, but I get NULL while *volume *is not NULL. * vtkAbstractMapper3D *mapper = NULL; if ( (volume = vtkVolume::SafeDownCast(propCandidate)) != NULL ) mapper = volume-GetMapper(); * Why? Thanks for any advice! Best