SoZoomTranslation.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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