11 #include <Atoms/AtomsClothCache.h>
24 bool openCache(
const std::string& cachePath,
const std::string& cacheName);
26 bool openCache(
const std::string& cachePath,
const std::string& cacheName,
const std::vector<int>& agents);
90 const std::string& meshName,
91 std::vector<AtomsCore::Vector3>& points,
92 std::vector<AtomsCore::Vector3>& normals
102 unsigned int agentId,
103 const std::string& meshName
123 void setAgentsToLoad(
const std::vector<int>& agents);
125 void removeAllCaches();
127 void removeCache(
const std::string& cachePath,
const std::string& cacheName);
129 std::vector<std::pair<std::string, std::string>> getCachePaths()
const;
133 std::vector<AtomsClothCache> m_clothCaches;
Definition: AtomsClothCaches.h:17
int currentFrame() const
Get the current frame.
bool hasAgentClothMesh(double time, unsigned int agentId, const std::string &meshName) const
Check if a mesh for an egent exist inside the cache.
int prevFrame() const
Get the previous frame.
int nextFrame() const
Get the next frame.
std::vector< std::string > agentClothMeshNames(double time, unsigned int agentId) const
Gets agent cloth mesh names.
void loadFrame(int frame)
Loads a cache frame and stores the current frame data.
void clear()
Clear all the loaded frames.
void loadPrevFrame(int frame)
Loads a cache frame and store in the previous frame (usually used for the previous frame during the m...
std::string getAgentClothMeshStackOrder(double time, unsigned int agentId, const std::string &meshName) const
Get cloth mesh stack order.
void loadAgentClothMeshBoundingBox(double time, unsigned int agentId, const std::string &meshName, AtomsCore::Box3 &box) const
Loads an agent bbox.
int endFrame() const
Get the end frame.
void loadAgentClothBoundingBox(double time, unsigned int agentId, AtomsCore::Box3 &box) const
Loads an agent bbox.
void loadNextFrame(int frame)
Loads a cache frame and stores the next frame data (usually used for the next frame during the motion...
std::vector< int > agentIds(double time) const
Gets agent ids.
int startFrame() const
Get the start frame.
void loadTime(double time)
Loads the pre/next and current frame given the input time.
void loadBoundingBox(double time, AtomsCore::Box3 &box) const
Loads bbox.
void loadAgentClothMesh(double time, unsigned int agentId, const std::string &meshName, std::vector< AtomsCore::Vector3 > &points, std::vector< AtomsCore::Vector3 > &normals) const
Loads all data for an agent.
AtomsMath::Box3 Box3
Bounding box class.
Definition: AtomsMath.h:74
Atoms namespace.
Definition: Agent.h:29