[vtkusers] Add two renderers to vtkBorlandRenderWindow

Xianjin Yang Yang at AGIUSA.COM
Wed Aug 27 18:12:08 EDT 2003


Hi vtkusers,

I am trying to add two renderers to the same vtkBorlandRenderWindow (RenWin).
The relevant part of the pipeline may look like this

RenWin->GetRenderer()->SetViewport(0.0, 0.0, 0.5, 1.0)
RenWin->GetRenderer()->AddActor(actor1)

RenWin->GetRenderer()->SetViewport(0.5, 0.0, 1.0, 1.0)
RenWin->GetRenderer()->AddActor(actor2)

By doing it this way, I wonder how many renderers I would get. How do I
distinguish between or identify two renderes? Is there any way to define two
renderers explicitly and add them to RenWin? Let me assume I have two Renderers
in RenWin, I wonder which Renderer I would get when I call
RenWin->GetRenderer().

I am using VTK with BCB6 on WinXP. Thank you for your help in advance.


Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030827/6519a08a/attachment.htm>


More information about the vtkusers mailing list