[vtkusers] how to make one actor always stay behind of other actors?&In-Reply-To=<s8ea3ca2.092 at g

Yanbing Hu Yanbing.Hu at virtualwind.com
Thu Oct 16 17:26:16 EDT 2008


found the answer. do something like the following, actors added to
bRenderer always stay behind of actors added to aRenderer.
 
vtkRenderer *aRenderer = vtkRenderer::New();
                  aRenderer->SetLayer(1);
vtkRenderer *bRenderer = vtkRenderer::New();
                   bRenderer->InteractiveOff();
                   bRenderer->SetLayer(0);
vtkRenderWindow *renWin = vtkRenderWindow::New();
                  renWin->AddRenderer(aRenderer);
                  renWin->AddRenderer(bRenderer);
                  renWin->SetNumberOfLayers(2);

______________________________________________________________ 

Reputation Resources Results 

http://www.rwdi.com 

______________________________________________________________ 

This communication is intended for the sole use of the party to whom it 
is addressed and may contain information that is privileged and/or 
confidential. Any other distribution, copying or disclosure is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by telephone (1-519-823-1311) and delete the message without 
retaining any hard or electronic copies of same. 

RWDI scans outgoing emails for viruses, but makes no warranty as to their
absence in this email or attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081016/389c3a10/attachment.htm>


More information about the vtkusers mailing list