SoAxisCrossKit.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
00024 #ifndef GUI_SOSHAPESCALE_H
00025 #define GUI_SOSHAPESCALE_H
00026
00027 #include <Inventor/nodekits/SoSubKit.h>
00028 #include <Inventor/nodekits/SoBaseKit.h>
00029 #include <Inventor/fields/SoSFFloat.h>
00030
00031 class SbViewport;
00032 class SoState;
00033 class SbColor;
00034 class SbVec2s;
00035
00036 namespace Gui {
00037 class GuiExport SoShapeScale : public SoBaseKit {
00038 typedef SoBaseKit inherited;
00039
00040 SO_KIT_HEADER(SoShapeScale);
00041
00042 SO_KIT_CATALOG_ENTRY_HEADER(topSeparator);
00043 SO_KIT_CATALOG_ENTRY_HEADER(scale);
00044 SO_KIT_CATALOG_ENTRY_HEADER(shape);
00045
00046 public:
00047 SoShapeScale(void);
00048 static void initClass(void);
00049
00050 SoSFFloat active;
00051 SoSFFloat scaleFactor;
00052
00053 protected:
00054 virtual void GLRender(SoGLRenderAction * action);
00055 virtual ~SoShapeScale();
00056 };
00057
00058 class GuiExport SoAxisCrossKit : public SoBaseKit {
00059 typedef SoBaseKit inherited;
00060
00061 SO_KIT_HEADER(SoAxisCrossKit);
00062
00063 SO_KIT_CATALOG_ENTRY_HEADER(xAxis);
00064 SO_KIT_CATALOG_ENTRY_HEADER(xHead);
00065 SO_KIT_CATALOG_ENTRY_HEADER(yAxis);
00066 SO_KIT_CATALOG_ENTRY_HEADER(yHead);
00067 SO_KIT_CATALOG_ENTRY_HEADER(zAxis);
00068 SO_KIT_CATALOG_ENTRY_HEADER(zHead);
00069
00070 public:
00071 SoAxisCrossKit();
00072
00073
00074
00075 virtual SbBool affectsState() const;
00076 virtual void addWriteReference(SoOutput * out, SbBool isfromfield = FALSE);
00077 virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00078
00079 static void initClass();
00080
00081 private:
00082
00083 void createAxes();
00084 virtual ~SoAxisCrossKit();
00085 };
00086
00087 }
00088
00089 #endif // GUI_SOSHAPESCALE_H