Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

RendererJ3D.setLinks: already set

Hi all,

I have a small problem with DirectManipulationRendererJ3D. I?m adding
data to my display with a DMRJ3D. Later on I have to remove this data
with DisplayImpl.removeAllReferences() and add it again with the same
(!) DMRJ3D. Hence my code does something like that:


DataReference reference = new DataReference(?ref?);
DirectManipulationRendererJ3D renderer = new
DirectManipulationRendererJ3D();

// Do some other initializations

display.addReferences(renderer, reference);

// Do something else

display.removeAllReferences();
display.addReferences(renderer, reference);


That's where I get the Exception:

visad.DisplayException: RendererJ3D.setLinks: already set
you are probably re-using a DataRenderer

Is there a way to avoid this Exception. Is there any way to re-use a
DataRenderer, perhaps with the help of the DataRenderer.removeLink()
method?

Thanks for any help, Mathias


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690