[vtkusers] ShallowCopy in vtk 7.0 works correct?

-Daniel- ich_daniel at habmalnefrage.de
Tue Feb 9 08:12:48 EST 2016


Hi,

Now I try a new compilation and set VTK_RENDERING_BACKEND to OpenGL. It
works!
Why not with OpenGL2? 

approximate example - code snippet:  /
// I create three vtkActors like...
vtkLineSource lineX = new vtkLineSource();
  lineX.SetPoint1(50, 0, 0);
  lineX.SetPoint2(150, 0, 0);
vtkActor lineXActor = setLine(lineX);   // separate method:
vtkLineSource->vtkPolyDataMapper->vtkActor
  lineXActor.GetProperty().SetColor(1, 0, 0);

// copy of vtkActor
vtkActor copyLineXActor = new vtkActor();
  copyLineXActor.ShallowCopy(lineXActor);
  copyLineXActor.VisibilityOn();

// add actors to different renderer (  vtkPanel().getRenderer()  )
// -> renderer1.AddActor(lineXActor); 
// -> renderer2.AddActor2D(copyLineXActor);
/
The vtkActor's are not visible at the same time. (By using OpenGL2 in the
VTK_Rendering_Backend settings)




--
View this message in context: http://vtk.1045678.n5.nabble.com/ShallowCopy-in-vtk-7-0-works-correct-tp5736416p5736442.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list