Lagrangian Liquid Simulation
Master Thesis project on simulation of liquids using Lagrangian approach and SPH
|
store a list of positions per frame and is flushed to disk by the Cache class More...
#include <CacheItem.h>
Public Member Functions | |
CacheItem (const std::vector< std::vector< ngl::Vector > > _positionList, const std::vector< std::string > _nameList, const int _frameNumber, const CacheItemType _cacheItemType) | |
ctor | |
CacheItem (const CacheItem &_cacheItem) | |
copy ctor | |
int | getFrameNumber () const |
return the frame number | |
std::vector< std::vector < ngl::Vector > > | getPositionList () const |
return the list of positions | |
std::vector< std::string > | getNameList () const |
return the list of names | |
CacheItemType | getCacheItemType () const |
return the type of the cache item | |
Private Attributes | |
CacheItemType | m_cacheItemType |
the type of cache item being exported | |
std::vector< std::vector < ngl::Vector > > | m_positionList |
the list of positions | |
std::vector< std::string > | m_nameList |
the list of names | |
int | m_frameNumber |
the frame number |
store a list of positions per frame and is flushed to disk by the Cache class
Definition at line 29 of file CacheItem.h.
CacheItem::CacheItem | ( | const std::vector< std::vector< ngl::Vector > > | _positionList, |
const std::vector< std::string > | _nameList, | ||
const int | _frameNumber, | ||
const CacheItemType | _cacheItemType | ||
) |
ctor
[in] | _positionList | the list of positions |
[in] | _nameList | the list of names |
[in] | _frameNumber | the current frame number |
[in] | _cacheItemType | the type of cache item |
Definition at line 7 of file CacheItem.cpp.
{ m_positionList = _positionList; m_nameList = _nameList; m_frameNumber = _frameNumber; m_cacheItemType = _cacheItemType; }
CacheItem::CacheItem | ( | const CacheItem & | _cacheItem | ) |
copy ctor
[in] | _cacheItem | the copied object |
Definition at line 20 of file CacheItem.cpp.
References m_cacheItemType, m_frameNumber, m_nameList, and m_positionList.
{ m_positionList = _cacheItem.m_positionList; m_nameList = _cacheItem.m_nameList; m_frameNumber = _cacheItem.m_frameNumber; m_cacheItemType = _cacheItem.m_cacheItemType; }
CacheItemType CacheItem::getCacheItemType | ( | ) | const [inline] |
return the type of the cache item
Definition at line 59 of file CacheItem.h.
References m_cacheItemType.
{ return m_cacheItemType; }
int CacheItem::getFrameNumber | ( | ) | const [inline] |
return the frame number
Definition at line 50 of file CacheItem.h.
References m_frameNumber.
{ return m_frameNumber; }
std::vector<std::string> CacheItem::getNameList | ( | ) | const [inline] |
return the list of names
Definition at line 56 of file CacheItem.h.
References m_nameList.
{ return m_nameList; }
std::vector<std::vector<ngl::Vector> > CacheItem::getPositionList | ( | ) | const [inline] |
return the list of positions
Definition at line 53 of file CacheItem.h.
References m_positionList.
{ return m_positionList; }
CacheItemType CacheItem::m_cacheItemType [private] |
the type of cache item being exported
Definition at line 63 of file CacheItem.h.
int CacheItem::m_frameNumber [private] |
the frame number
Definition at line 72 of file CacheItem.h.
std::vector<std::string> CacheItem::m_nameList [private] |
the list of names
Definition at line 69 of file CacheItem.h.
std::vector<std::vector<ngl::Vector> > CacheItem::m_positionList [private] |
the list of positions
Definition at line 66 of file CacheItem.h.