info-inventor-dev
[Top] [All Lists]

Changing ViewportMapping properties

To: info-inventor-dev@xxxxxxxxxxx
Subject: Changing ViewportMapping properties
From: Tomás Aguado Gómez <tomas.aguado@xxxxxxxxxxxxxx>
Date: Thu, 25 Nov 2004 09:34:38 +0100
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (X11/20040926)
Hello everyone:
My project is now highly advanced, but I can't change the SoCamera ViewporMapping property. As SoCamera is an abstract class I don't tr to access this property doing an SoCamera casting, I access it like this:
    SoPerspectiveCamera *Camera:
          ...........
if (Camera->ViewportMapping.getValue()==SoCamera::CROP_VIEWPORT_FILL_FRAME)
       {
            .........
       }

But the compiler complains:
form1.ui.h:166: error: invalid use of `enum SoCamera::ViewportMapping'


¿How can I change/read the ViewportMapping property ?

Thanks in advance

Tomás Aguado Gómez

Grupo de Modelado y Realidad Virtual

http://dac.escet.urjc.es/investigacion/GMRV/


<Prev in Thread] Current Thread [Next in Thread>