00001 #ifndef SCTAPI_PRIMLISTWRAPPER_HEADER
00002 #define SCTAPI_PRIMLISTWRAPPER_HEADER
00003
00004 #include <memory>
00005 #include <list>
00006
00007 namespace SctPixelRod {
00008 class RodPrimList;
00009 class RodPrimitive;
00010 }
00011
00012 namespace SctApi {
00024 struct PrimListWrapper {
00028 PrimListWrapper();
00032 PrimListWrapper(unsigned int index);
00039 void clear();
00040
00042
00048 void addPrimitive(const SctPixelRod::RodPrimitive &prim, long *data = 0);
00049
00051
00060 void addPrimitive(long length, long index, long prim, long rev, const long *data);
00061
00062 ~PrimListWrapper();
00063
00064 std::auto_ptr<SctPixelRod::RodPrimList> list;
00065 std::list<long *> data;
00066 };
00067 }
00068
00069 #endif