Open PaperOpt
OpenPaperOpt/StaticVolume.h
Go to the documentation of this file.
00001 #ifndef STATICVOLUME_H
00002 #define STATICVOLUME_H
00003 
00004 
00005 #include "utilities.h"
00006 #include "StructureObject.h"
00007 #include "WavePacket.h"
00008 #include "Staticsheet.h"
00009 #include "RndVolume.h"
00010 #include "FiberMaterial.h"
00011 
00012 namespace p3d{
00013 
00014         class StaticVolume: public StructureObject{
00015 
00016         public:
00017                 StaticVolume(Staticsheet *ss,StructureObject* prev){
00018                         m_previous = prev ;
00019                         if (prev != NULL)
00020                         {
00021                                 prev->m_next = this ;
00022                         }
00023                         this->mSetTypeObj(BASESHEET_S);
00024 
00025                         papersheet=ss;
00026                 }
00027                 StaticVolume();
00028                 ~StaticVolume(){delete rvol;}
00029 
00030                 void initVolume(double maxAccSidelen=30,int boxLen=5,double p1=0,double p2=0);
00031 
00032                 int Process(WavePacket& wp, int up_down, int internal) const;
00033 
00034 
00035         private:
00036                 void SetPrevious(StructureObject* pP) { this->m_previous=pP; }
00037 
00038                 Staticsheet * papersheet;
00039                 RndVolume *rvol;
00040         };
00041 
00042 }
00043 #endif