<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">[resend
- bounced]<br>
What you ought to do is look at the
RenderwindowInteractor::SetEventPosition, then call OnLeftDown on the
style class afterwards. (Forgive me if I've forgotten something)
<br>
<br>
JB
<br>
<br>
<br>
Bill Vogler wrote:
<br>
<br>
<blockquote type="cite">Hello -
<br>
<br>
I am porting our application from vtk 4.0 to vtk 4.2 and am having
problems
<br>
with some classes that were valid in 4.0 and are now obsolete in 4.2.
The
<br>
class that is obsolete is vtkInteractorStyleTrackball.
<br>
<br>
My present problem is with ::OnLeftButtonDown(). I need to modify the
<br>
following code so it is compatible with 4.2. In our application, the
user
<br>
selects an actor by clicking it with "Ctrl Left Button". If the "ctrl"
<br>
button was not used then
vtkInteractorStyleTrackball::OnLeftButtonDown() is
<br>
called:
<br>
<br>
void FaceInteractorStyle::OnLeftButtonDown(int ctrl, int shift, int X,
<br>
intY){
<br>
if( ctrl ) {
<br>
<br>
// If the ctrl left button is pressed, get the actor.
<br>
<br>
this->InteractionPicker->Pick( X, Y, 0.0, m_renderer );
<br>
vtkActor *actor = this->InteractionPicker->GetActor();
<br>
if( actor == NULL )
<br>
return;
<br>
<br>
m_modelView->ActorSelected( actor );
<br>
}
<br>
else {
<br>
vtkInteractorStyleTrackball::OnLeftButtonDown( ctrl, shift, X,
Y);
<br>
}
<br>
} // end of OnLeftButtonDown
<br>
<br>
It appears that major modifications were made in 4.2 and among other
things
<br>
OnLeftButtonDown() does not take any arguments.
<br>
<br>
Normally I wouldn't be bothering you folks on this list, but I can't
find
<br>
any references or documentation on the migration path to 4.2. Can
anyone
<br>
point me to any documentation, or provide some hints on how I can
modify
<br>
this code segment to bring it up to V4.2?
<br>
<br>
TIA
<br>
<br>
Bill Vogler
<br>
Calabazas Creek Research
<br>
(530) 642-1955 Voice
<br>
(530) 642-9614 Fax
<br>
<a class="moz-txt-link-abbreviated" href="mailto:vogler@calcreek.com">vogler@calcreek.com</a>
<br>
<br>
<br>
_______________________________________________
<br>
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <a class="moz-txt-link-freetext"
href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
<br>
Follow this link to subscribe/unsubscribe:
<br>
<a class="moz-txt-link-freetext"
href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<div class="moz-txt-sig"><br>
</div>
</div>
</body>
</html>