[vtkusers] Disable warning about "does not support stereo"

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Sep 4 16:38:37 EDT 2013


>> If you are overriding OnChar, simply do not call the parent class when
the '3' key is pressed. The '3' key means "turn on (or off) 3D stereo
viewing" in the default interactor style. And attempting to do that is what
triggers the warning...

You are missing that if you do this, you will disable not only warning, but
3D functionality on the systems which are able to support it.

Alex


On Wed, Sep 4, 2013 at 3:49 AM, David Cole <dlrdave at aol.com> wrote:

> it would be called from
>> vtkInteractorStyle::OnChar()
>>
>> You may subclass vtkInteractorStyle you use -
>>
>> (for example vtkInteractorStyleTrackballCam**era ), override
>>   virtual void OnChar();
>>
>
>
> If you are overriding OnChar, simply do not call the parent class when the
> '3' key is pressed. The '3' key means "turn on (or off) 3D stereo viewing"
> in the default interactor style. And attempting to do that is what triggers
> the warning...
>
> Search for "Keypress 3" here:
>
>    http://www.vtk.org/doc/**nightly/html/**classvtkInteractorStyle.html<http://www.vtk.org/doc/nightly/html/classvtkInteractorStyle.html>
>
>
> HTH,
> David
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130904/e4224b38/attachment.htm>


More information about the vtkusers mailing list