I want to use the mouse to pick 3D object in the 3D view.So I use the vtkPropPicker and get a vtkOpenGLActor.Then I can modify the property(like color) of this vtkActor. But when I convert this vtkActor to vtkMRMLNode using SafeDownCast,the program crashes. The father class of vtkActor and vtkMRMLNode are both vtkObject.Is there a way to convert vtkOpenGLActor to vtkMRMLNode?
The properties of the vtkOpenGLActor can be modified. But the properties of the segments are not changed with the vtkOpenGLActor.So how to build the connection between the vtkOpenGLActor and the vtkMRMLSegmentationNode?