[vtkusers] "Disabling" a volume rendering pipeline in a controlled way?
sankhesh.jhaveri at kitware.com
Tue Jun 28 14:42:39 EDT 2016
You could do any one of the following if it is an invalid filename:
1. Set the visibility of the volume to be 0.
2. Remove the volume from the renderer.
On Tue, Jun 28, 2016 at 2:04 PM, Elvis Stansvik <
elvis.stansvik at orexplore.com> wrote:
> I have a volume rendering pipeline set up. In response to user
> interactions, I can manipulate certain aspects of the pipeline and
> re-render. I can even set the filename of the reader that I use as a
> source, to completely change out the volume being rendered.
> But what if I want to completely disable the pipeline, in effect unsetting
> the filename of the reader.
> My pipeline is basically just HDF5Reader -> vtkGPUVolumeRayCastMapper,
> where HDF5Reader is a custom reader I wrote to read volumes from a HDF5
> The problem is I can't just setFileName(None) on my reader, because my
> custom reader has a
> if self._fileName is None:
> return 0
> in its RequestData and RequestInformation, and I will thus get errors from
> VTK saying the pipeline failed if I do this.
> So my question is: What is the proper way of "unhooking" (or "disabling"
> if you will) a pipeline? I want the render window to simply show empty
> space when in this state, but still have the entire pipeline intact and
> ready for when I next want to set the filename of the reader to a valid
> Thanks in advance,
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers