Open PaperOpt
OpenPaperOpt/RndFiber.h
Go to the documentation of this file.
00001 #ifndef RENDERFIBRE_H
00002 #define RENDERFIBRE_H
00003 
00004 
00005 
00006 #include "utilities.h"
00007 #include "V2.h"
00008 #include "V3.h"
00009 #include "FiberStatic.h"
00010 #include "RndFiberSeg.h"
00011 
00012 
00018 namespace p3d{
00019 
00020         class RndFiber {
00021 
00022         public:
00023 
00030                 RndFiber(const Fiber* f,int segType,double segt_param1=0,double segt_param2=0);
00031                 
00032                 ~RndFiber() {}
00033 
00034                 int GetDataSize();
00035 
00036                 int NumSegs() const {return mNumSegs;}
00037                 const RndFiberSeg* GetSegments() const {return mSegs;}
00038 
00039         private:
00040                 AutoDeleteV<RndFiberSeg> mSegs;    //mNumSegs+1 for end capping
00041                 int                      mNumSegs;
00042         };
00043 
00044 }
00045 
00046 #endif