00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __GB_FloatOffsets_h__
00024 #define __GB_FloatOffsets_h__
00025
00026 #include "GB_API.h"
00027 #include <UT/UT_IntArray.h>
00028
00029 class GB_API GB_FloatOffsets : public UT_IntArray
00030 {
00031 public:
00032
00033 GB_FloatOffsets(short forpoints = 1, unsigned int size = 0);
00034 virtual ~GB_FloatOffsets();
00035
00036
00037 int points (void) const { return theOwnerDict == 0; }
00038 void points (void) { theOwnerDict = 0; }
00039 int vertices (void) const { return theOwnerDict == 1; }
00040 void vertices (void) { theOwnerDict = 1; }
00041 int primitives(void) const { return theOwnerDict == 2; }
00042 void primitives(void) { theOwnerDict = 2; }
00043
00044 private:
00045 short theOwnerDict;
00046 };
00047
00048 #endif