SoZoomTranslation.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *                                                                         *
00004  *   This file is part of the FreeCAD CAx development system.              *
00005  *                                                                         *
00006  *   This library is free software; you can redistribute it and/or         *
00007  *   modify it under the terms of the GNU Library General Public           *
00008  *   License as published by the Free Software Foundation; either          *
00009  *   version 2 of the License, or (at your option) any later version.      *
00010  *                                                                         *
00011  *   This library  is distributed in the hope that it will be useful,      *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU Library General Public License for more details.                  *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Library General Public     *
00017  *   License along with this library; see the file COPYING.LIB. If not,    *
00018  *   write to the Free Software Foundation, Inc., 59 Temple Place,         *
00019  *   Suite 330, Boston, MA  02111-1307, USA                                *
00020  *                                                                         *
00021  ***************************************************************************/
00022 
00023 #ifndef SKETCHERGUI_SOZOOMTRANSLATION_H
00024 #define SKETCHERGUI_SOZOOMTRANSLATION_H
00025 
00026 #include <Inventor/nodes/SoTranslation.h>
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/nodes/SoTransformation.h>
00029 
00030 namespace SketcherGui {
00031 
00032 class SketcherGuiExport SoZoomTranslation : public SoTranslation {
00033     typedef SoTranslation inherited;
00034 
00035     SO_NODE_HEADER(SoZoomTranslation);
00036 
00037 public:
00038     static void initClass();
00039     SoZoomTranslation();
00040     SoSFVec3f abPos;
00041     float getScaleFactor();
00042 
00043 protected:
00044     virtual ~SoZoomTranslation() {};
00045     virtual void doAction(SoAction * action);
00046     virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
00047     virtual void getMatrix(SoGetMatrixAction * action);
00048     virtual void GLRender(SoGLRenderAction *action);
00049     virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00050     virtual void callback(SoCallbackAction * action);
00051     virtual void pick(SoPickAction * action);
00052 
00053 private:
00054     float scale;
00055 };
00056 
00057 }
00058 #endif // SKETCHERGUI_SOZOOMTRANSLATION_H

Generated on Wed Nov 23 19:00:40 2011 for FreeCAD by  doxygen 1.6.1