[vtkusers] Disable Selection Highlighting
Jochen
jochen.kling at email.de
Thu May 24 10:52:44 EDT 2012
Ho,
looking into the OnChar-Handler of vtkIngteractorStyle.cxx tells me it is
not possible:
Everytime you press key "p" and an actor or a part of an assembly is
successfully picked it will be highlighted automatically. Look at the bold
lines:
//----------------------------------------------------------------------------
void vtkInteractorStyle::OnChar()
{
vtkRenderWindowInteractor *rwi = this->Interactor;
switch (rwi->GetKeyCode())
{
...
case 'p' :
case 'P' :
if(this->CurrentRenderer!=0)
{
if (this->State == VTKIS_NONE)
{
vtkAssemblyPath *path = NULL;
int *eventPos = rwi->GetEventPosition();
this->FindPokedRenderer(eventPos[0], eventPos[1]);
rwi->StartPickCallback();
vtkAbstractPropPicker *picker =
vtkAbstractPropPicker::SafeDownCast(rwi->GetPicker());
if ( picker != NULL )
{
picker->Pick(eventPos[0], eventPos[1],
0.0, this->CurrentRenderer);
*path = picker->GetPath();
}
if ( path == NULL )
{
this->HighlightProp(NULL);
this->PropPicked = 0;
}
else
{
this->HighlightProp(path->GetFirstNode()->GetViewProp());*
this->PropPicked = 1;
}
rwi->EndPickCallback();
}
...
}
}
with best regards
Jochen
--
View this message in context: http://vtk.1045678.n5.nabble.com/Disable-Selection-Highlighting-tp5713368p5713370.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list