Coin Logo http://www.coin3d.org/
http://www.kongsberg.com/kogt/

SoQtFlyViewer.h

00001 #ifndef SOQT_FLYVIEWER_H
00002 #define SOQT_FLYVIEWER_H
00003 
00004 // src/Inventor/Qt/viewers/SoQtFlyViewer.h.  Generated from SoGuiFlyViewer.h.in by configure.
00005 
00006 /**************************************************************************\
00007  * Copyright (c) Kongsberg Oil & Gas Technologies AS
00008  * All rights reserved.
00009  * 
00010  * Redistribution and use in source and binary forms, with or without
00011  * modification, are permitted provided that the following conditions are
00012  * met:
00013  * 
00014  * Redistributions of source code must retain the above copyright notice,
00015  * this list of conditions and the following disclaimer.
00016  * 
00017  * Redistributions in binary form must reproduce the above copyright
00018  * notice, this list of conditions and the following disclaimer in the
00019  * documentation and/or other materials provided with the distribution.
00020  * 
00021  * Neither the name of the copyright holder nor the names of its
00022  * contributors may be used to endorse or promote products derived from
00023  * this software without specific prior written permission.
00024  * 
00025  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00026  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00027  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00028  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00029  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00030  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00031  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00032  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00033  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00034  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00035  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00036 \**************************************************************************/
00037 
00038 #include <Inventor/Qt/viewers/SoQtConstrainedViewer.h>
00039 
00040 // ************************************************************************
00041 
00042 class SOQT_DLL_API SoQtFlyViewer : public SoQtConstrainedViewer {
00043   SOQT_OBJECT_HEADER(SoQtFlyViewer, SoQtConstrainedViewer);
00044 
00045 public:
00046   SoQtFlyViewer(QWidget * parent = NULL,
00047                    const char * name = NULL, 
00048                    SbBool embed = TRUE, 
00049                    SoQtFullViewer::BuildFlag flag = BUILD_ALL,
00050                    SoQtViewer::Type type = BROWSER);
00051   ~SoQtFlyViewer();
00052 
00053   virtual void setViewing(SbBool enable);
00054   virtual void viewAll(void);
00055   virtual void resetToHomePosition(void);
00056   virtual void setCamera(SoCamera * camera);
00057   virtual void setCursorEnabled(SbBool enable);
00058   virtual void setCameraType(SoType type);
00059 
00060 protected:
00061   SoQtFlyViewer(QWidget * parent,
00062                    const char * const name, 
00063                    SbBool embed, 
00064                    SoQtFullViewer::BuildFlag flag, 
00065                    SoQtViewer::Type type, 
00066                    SbBool build);
00067 
00068   virtual const char * getDefaultWidgetName(void) const;
00069   virtual const char * getDefaultTitle(void) const;
00070   virtual const char * getDefaultIconTitle(void) const;
00071 
00072   virtual SbBool processSoEvent(const SoEvent * const event);
00073   virtual void setSeekMode(SbBool enable);
00074   virtual void actualRedraw(void);
00075 
00076   virtual void rightWheelMotion(float value);
00077 
00078   virtual void afterRealizeHook(void);
00079 
00080 private:
00081   class SoQtFlyViewerP * pimpl;
00082   friend class SoQtFlyViewerP;
00083 };
00084 
00085 // ************************************************************************
00086 
00087 #endif // ! SOQT_FLYVIEWER_H

Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Wed Mar 2 2016 19:40:11 for SoQt by Doxygen 1.7.3.