![]() |
Atoms Crowd
7.0.0
|
Public Member Functions | |
| bool | openCache (const std::string &cachePath, const std::string &cacheName) |
| bool | openCache (const std::string &cachePath, const std::string &cacheName, const std::vector< int > &agents) |
| void | loadTime (double time) |
| Loads the pre/next and current frame given the input time. | |
| void | loadPrevFrame (int frame) |
| Loads a cache frame and store in the previous frame (usually used for the previous frame during the motion blur computation) | |
| void | loadFrame (int frame) |
| Loads a cache frame and stores the current frame data. More... | |
| void | loadNextFrame (int frame) |
| Loads a cache frame and stores the next frame data (usually used for the next frame during the motion blur computation) | |
| int | startFrame () const |
| Get the start frame. | |
| int | endFrame () const |
| Get the end frame. | |
| int | currentFrame () const |
| Get the current frame. | |
| int | prevFrame () const |
| Get the previous frame. | |
| int | nextFrame () const |
| Get the next frame. | |
| void | loadBoundingBox (double time, AtomsCore::Box3 &box) const |
| Loads bbox. More... | |
| void | loadAgentClothBoundingBox (double time, unsigned int agentId, AtomsCore::Box3 &box) const |
| Loads an agent bbox. More... | |
| void | loadAgentClothMeshBoundingBox (double time, unsigned int agentId, const std::string &meshName, AtomsCore::Box3 &box) const |
| Loads an agent bbox. More... | |
| 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. More... | |
| std::string | getAgentClothMeshStackOrder (double time, unsigned int agentId, const std::string &meshName) const |
| Get cloth mesh stack order. More... | |
| bool | hasAgentClothMesh (double time, unsigned int agentId, const std::string &meshName) const |
| Check if a mesh for an egent exist inside the cache. More... | |
| void | clear () |
| Clear all the loaded frames. | |
| std::vector< int > | agentIds (double time) const |
| Gets agent ids. | |
| std::vector< std::string > | agentClothMeshNames (double time, unsigned int agentId) const |
| Gets agent cloth mesh names. | |
| void | setAgentsToLoad (const std::vector< int > &agents) |
| void | removeAllCaches () |
| void | removeCache (const std::string &cachePath, const std::string &cacheName) |
| std::vector< std::pair< std::string, std::string > > | getCachePaths () const |
| std::string Atoms::AtomsClothCaches::getAgentClothMeshStackOrder | ( | double | time, |
| unsigned int | agentId, | ||
| const std::string & | meshName | ||
| ) | const |
Get cloth mesh stack order.
It returns "first" or "last" or an empty string if there is no data
| time | Cache frame, this is must always be a value between the prev, current and next frame. You should load the correct frames before calling this function |
| agentId | Cache agent id |
| meshName | Mesh name |
| bool Atoms::AtomsClothCaches::hasAgentClothMesh | ( | double | time, |
| unsigned int | agentId, | ||
| const std::string & | meshName | ||
| ) | const |
Check if a mesh for an egent exist inside the cache.
| time | Cache frame, this is must always be a value between the prev, current and next frame. You should load the correct frames before calling this function |
| agentId | Cache agent id |
| meshName | Mesh name |
| void Atoms::AtomsClothCaches::loadAgentClothBoundingBox | ( | double | time, |
| unsigned int | agentId, | ||
| AtomsCore::Box3 & | box | ||
| ) | const |
Loads an agent bbox.
| time | Cache frame, this is must always be a value between the prev, current and next frame. You should load the correct frames before calling this function |
| agentId | Cache agent id |
| box | BBox loaded |
| void Atoms::AtomsClothCaches::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.
| time | Cache frame, this is must always be a value between the prev, current and next frame. You should load the correct frames before calling this function |
| agentId | Cache agent id |
| meshName | Mesh name |
| points | Out mesh points |
| normals | Out mesh normals |
| void Atoms::AtomsClothCaches::loadAgentClothMeshBoundingBox | ( | double | time, |
| unsigned int | agentId, | ||
| const std::string & | meshName, | ||
| AtomsCore::Box3 & | box | ||
| ) | const |
Loads an agent bbox.
| time | Cache frame, this is must always be a value between the prev, current and next frame. You should load the correct frames before calling this function |
| agentId | Cache agent id |
| meshName | Mesh name |
| box | BBox loaded |
| void Atoms::AtomsClothCaches::loadBoundingBox | ( | double | time, |
| AtomsCore::Box3 & | box | ||
| ) | const |
Loads bbox.
| time | Cache frame, this is must always be a value between the prev, current and next frame. You should load the correct frames before calling this function |
| box | BBox loaded |
| void Atoms::AtomsClothCaches::loadFrame | ( | int | frame | ) |
Loads a cache frame and stores the current frame data.
If a frame was already loaded then the old frame data is moved to the previous frame slot