SimpleFastOpenAtomicVisualiser
|
#include <config.h>
Public Member Functions | |
CONFIG (std::filesystem::path path, bool blocking=false) | |
Construct a new CONFIG object to read from path. | |
![]() | |
Structure (std::filesystem::path path, bool blocking=false) | |
virtual uint64_t | atomCount () const |
Get the number of atoms in the file. | |
virtual void | readFrame (uint64_t frame) |
Read a single frame at position frame, and increment the current frame. | |
virtual | ~Structure ()=default |
uint64_t | frameCount () const |
Get the number of frames. | |
uint64_t | framePosition () const |
Get the current frame index. | |
bool | framePositionsLoaded () const |
Check if frames start positions have been loaded. | |
uint64_t | frameReadProgress () const |
Progress of the current frame read. | |
bool | frameReadComplete () const |
If the frame has been fully read into atoms. | |
glm::vec3 | getCellA () const |
Get the a cell vector. | |
glm::vec3 | getCellB () const |
Get the b cell vector. | |
glm::vec3 | getCellC () const |
Get the c cell vector. | |
Additional Inherited Members | |
![]() | |
std::vector< Atom > | atoms |
The Atoms read in the current frame. | |
std::map< Element, glm::vec4 > | colourMap = CPK_COLOURS |
Colour map from Element to colour. | |
![]() | |
void | skipFrame () |
virtual void | skipFrames (uint64_t count) |
void | skipLine (std::ifstream &in) |
void | scanPositions () |
void | cachePositions () |
void | countContentLinesInFile () |
void | checkRead (std::stringstream &ss, std::string lastInput, std::string context) |
![]() | |
std::filesystem::path | path |
bool | blockingReads |
std::ifstream | filestream |
uint64_t | natoms |
uint64_t | frames |
uint64_t | linesPerFrame |
uint64_t | timeStep |
uint64_t | currentFrame |
uint64_t | linesInFile |
uint64_t | atomsRead |
glm::vec3 | cellA |
glm::vec3 | cellB |
glm::vec3 | cellC |
bool | cacheComplete = false |
std::map< uint64_t, uint64_t > | framePositions |
Read CONFIG files.