<br><font size=2 face="Courier New">Dear all,</font>
<br>
<br><font size=2 face="Courier New">I already sent this mail, but got no reply.</font>
<br>
<br><font size=2 face="Courier New">Is there nobody, who has experience with vtkFollower? Or should I have</font>
<br><font size=2 face="Courier New">to explain the problem in more detail? At present it seems to be a bug </font>
<br><font size=2 face="Courier New">in the transformation of vtkFollower.</font>
<br>
<br><font size=2 face="Courier New">Any help appreciated!</font>
<br>
<br><font size=2 face="Courier New">Stefan Rau</font>
<br>
<br>
<br><font size=2 face="Courier New">On 2002/11/14 I wrote:</font>
<br>
<br><font size=2 face="Courier New">I still have the problem not being able to pick a vtkFollower</font>
<br><font size=2 face="Courier New">after having it rotated. When using vtkActor instead all works</font>
<br><font size=2 face="Courier New">fine.</font>
<br>
<br><font size=2 face="Courier New">Below is a sample code to clarify the problem. In the scene</font>
<br><font size=2 face="Courier New">I have an axis actor (vtkActor) and a cone (vtkFollower).</font>
<br><font size=2 face="Courier New">Picking can be done by pressing 'p' over the actors.</font>
<br>
<br><font size=2 face="Courier New">Before any rotation I can pick both actors without problems.</font>
<br><font size=2 face="Courier New">After rotating the scene I can pick the axes (vtkActor)</font>
<br><font size=2 face="Courier New">but not the cone (vtkFollower). </font>
<br>
<br><font size=2 face="Courier New">I do not know, if this is a normal behaviour of vtkFollower.</font>
<br>
<br><font size=2 face="Courier New">I would like to use vtkFollower in conjunction with </font>
<br><font size=2 face="Courier New">vtkVectorText to display 3D text and 3D dimensioning. </font>
<br><font size=2 face="Courier New">After positioning the text I would like to allow picking </font>
<br><font size=2 face="Courier New">and dragging it to another position.</font>
<br>
<br><font size=2 face="Courier New">--------------------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="Courier New">void main( int argc, char *argv[] )</font>
<br><font size=2 face="Courier New">{ </font>
<br><font size=2 face="Courier New"> // cone</font>
<br><font size=2 face="Courier New"> vtkConeSource *cone = vtkConeSource::New(); </font>
<br><font size=2 face="Courier New"> vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();</font>
<br><font size=2 face="Courier New"> coneMapper->SetInput(cone->GetOutput());</font>
<br><font size=2 face="Courier New"> vtkFollower *coneActor = vtkFollower::New();</font>
<br><font size=2 face="Courier New"> coneActor->PickableOn();</font>
<br><font size=2 face="Courier New"> coneActor->SetMapper(coneMapper);</font>
<br><font size=2 face="Courier New"> coneActor->SetPosition(2.0,0,0);</font>
<br>
<br><font size=2 face="Courier New"> // axes</font>
<br><font size=2 face="Courier New"> vtkAxes *axes = vtkAxes::New();</font>
<br><font size=2 face="Courier New"> vtkPolyDataMapper *axesMapper = vtkPolyDataMapper::New();</font>
<br><font size=2 face="Courier New"> axesMapper->SetInput(axes->GetOutput());</font>
<br><font size=2 face="Courier New"> vtkActor *axesActor = vtkActor::New();</font>
<br><font size=2 face="Courier New"> axesActor->GetProperty()->SetLineWidth(4);</font>
<br><font size=2 face="Courier New"> axesActor->SetMapper(axesMapper);</font>
<br>
<br><font size=2 face="Courier New"> vtkRenderer *renderer = vtkRenderer::New();</font>
<br><font size=2 face="Courier New"> vtkWin32OpenGLRenderWindow *renWin = vtkWin32OpenGLRenderWindow::New();</font>
<br><font size=2 face="Courier New"> renWin->AddRenderer(renderer);</font>
<br><font size=2 face="Courier New"> vtkWin32RenderWindowInteractor *interactor = vtkWin32RenderWindowInteractor::New();</font>
<br><font size=2 face="Courier New"> interactor->SetRenderWindow(renWin);</font>
<br><font size=2 face="Courier New"> vtkInteractorStyleTrackballCamera *style = vtkInteractorStyleTrackballCamera::New();</font>
<br><font size=2 face="Courier New"> interactor->SetInteractorStyle(style);</font>
<br>
<br><font size=2 face="Courier New"> // scene</font>
<br><font size=2 face="Courier New"> coneActor->SetCamera(renderer->GetActiveCamera());</font>
<br><font size=2 face="Courier New"> renderer->AddActor(coneActor);</font>
<br><font size=2 face="Courier New"> renderer->AddActor(axesActor);</font>
<br><font size=2 face="Courier New"> renderer->SetBackground(0,0,0.35);</font>
<br><font size=2 face="Courier New"> renderer->ResetCamera();</font>
<br>
<br><font size=2 face="Courier New"> // render</font>
<br><font size=2 face="Courier New"> renWin->Render();</font>
<br><font size=2 face="Courier New"> interactor->Start(); </font>
<br>
<br><font size=2 face="Courier New"> cone->Delete();</font>
<br><font size=2 face="Courier New"> axes->Delete();</font>
<br><font size=2 face="Courier New"> coneMapper->Delete();</font>
<br><font size=2 face="Courier New"> axesMapper->Delete();</font>
<br><font size=2 face="Courier New"> coneActor->Delete();</font>
<br><font size=2 face="Courier New"> axesActor->Delete();</font>
<br><font size=2 face="Courier New"> renderer->Delete();</font>
<br><font size=2 face="Courier New"> renWin->Delete(); </font>
<br><font size=2 face="Courier New"> style->Delete();</font>
<br><font size=2 face="Courier New"> interactor->Delete();</font>
<br><font size=2 face="Courier New">}</font>
<br>
<br>