Lagrangian Liquid Simulation
Master Thesis project on simulation of liquids using Lagrangian approach and SPH
include/Cache.h
Go to the documentation of this file.
00001 #ifndef CACHE_H
00002 #define CACHE_H
00003 
00004 #include "CacheItem.h"
00005 
00015 
00016 class Cache
00017 {
00018 public:
00020     Cache();
00021 
00024     void addItem(const CacheItem& _cacheItem);
00025 
00027     inline int getCacheCount() const { return m_fluidCache.size(); }
00028 
00030     void flushCache(const std::string _path);
00031 
00032 private:
00034     std::vector<CacheItem> m_fluidCache;
00035 
00036 private:
00040     void writePointData
00041             (
00042                 std::vector<ngl::Vector>& _positionList,
00043                 const std::string& _filename
00044             );
00045 
00049     void writeBoundaryData
00050             (
00051                 std::vector<ngl::Vector>& _positionList,
00052                 const std::string& _filename
00053             );
00054 
00055 };
00056 
00057 #endif // CACHE_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator