00001 #ifndef COIN_SOUNITS_H
00002 #define COIN_SOUNITS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/nodes/SoSubNode.h>
00028 #include <Inventor/nodes/SoTransformation.h>
00029 #include <Inventor/fields/SoSFEnum.h>
00030
00031 class COIN_DLL_API SoUnits : public SoTransformation {
00032 typedef SoTransformation inherited;
00033
00034 SO_NODE_HEADER(SoUnits);
00035
00036 public:
00037 static void initClass(void);
00038 SoUnits(void);
00039
00040
00041
00042 enum Units {
00043 METERS,
00044 CENTIMETERS,
00045 MILLIMETERS,
00046 MICROMETERS,
00047 MICRONS,
00048 NANOMETERS,
00049 ANGSTROMS,
00050 KILOMETERS,
00051 FEET,
00052 INCHES,
00053 POINTS,
00054 YARDS,
00055 MILES,
00056 NAUTICAL_MILES
00057 };
00058
00059 SoSFEnum units;
00060
00061 virtual void doAction(SoAction * action);
00062 virtual void callback(SoCallbackAction * action);
00063 virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00064 virtual void getMatrix(SoGetMatrixAction * action);
00065 virtual void GLRender(SoGLRenderAction * action);
00066 virtual void pick(SoPickAction * action);
00067 virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
00068
00069 protected:
00070 virtual ~SoUnits();
00071 };
00072
00073 #endif // !COIN_SOUNITS_H