00001 #ifndef IG_OPEN_INVENTOR_IG_SO_HITS_H
00002 # define IG_OPEN_INVENTOR_IG_SO_HITS_H
00003
00004
00005
00006 # include "Iguana/Inventor/interface/IgSoShapeKit.h"
00007 # include <Inventor/fields/SoMFVec3f.h>
00008 # ifdef WIN32
00009 # include <SoWinLeaveScope.h>
00010 # endif
00011
00012
00013
00014
00015
00016
00017
00018
00025 class IG_OPEN_INVENTOR_API IgSoHits : public IgSoShapeKit
00026 {
00027 SO_KIT_HEADER (IgSoHits);
00028 SO_KIT_CATALOG_ENTRY_HEADER (pointset);
00029
00030 public:
00031 IgSoHits (void);
00032 static void initClass (void);
00033
00034 SoMFVec3f points;
00035
00036 void initXYZ (int n, const float (*pts) [3]);
00037 void initXYZ (int n, const SbVec3f *pts);
00038 void initRZPhi (int n, const float (*pts) [3]);
00039 void initRZPhi (int n, const SbVec3f *pts);
00040 static void convertRZPhiToXYZ (const float *rzphi, float *xyz);
00041
00042 protected:
00043 virtual void refresh (void);
00044 };
00045
00046
00047
00048
00049 # ifdef WIN32
00050 # include <SoWinEnterScope.h>
00051 # endif
00052 #endif // IG_OPEN_INVENTOR_IG_SO_HITS_H