[vtkusers] Avoiding the outline box when picking

Lee A. Butler butler at ARL.ARMY.MIL
Tue Nov 5 17:04:06 EST 2002


When picking glyphs constructed from an UnstructuredGrid dataset, I didn't
want to get the "bounding box" around the whole set (I just wanted to change
the color on the glyph that was picked).  It turns out the bounding-box
outline is hard-coded into "vtkInteractorStyle.cxx".  To get rid of it I had
to comment out a couple of lines and recompile:

in: vtkInteractorStyle::~vtkInteractorStyle() 

    if (this->CurrentRenderer) 
      {
	  //      this->CurrentRenderer->RemoveActor(this->OutlineActor);
      }


and in: vtkInteractorStyle::HighlightProp3D(vtkProp3D *prop3D) 

    //    this->CurrentRenderer->AddActor(this->OutlineActor);

It might be good to make drawing the box a configurable item in the future.  I
haven't gone that far yet (There are these pesky deadlines).


Lee A. Butler					E-Mail: butler at arl.army.mil
Attn: AMSRL-SL-BE				Phone: (410) 278-9200
U.S. Army Research Laboratory			DSN:	     298-9200
Aberdeen Proving Ground, MD  21005-5068		FAX:   (410) 278-5058




More information about the vtkusers mailing list