|
SimpleFastOpenAtomicVisualiser
|
Holds editable data for the visualisation state. More...
#include <visualisationState.h>
Public Member Functions | |
| VisualisationState (std::vector< Atom > &atoms, const std::filesystem::path &atomColours, uint64_t bondFocus, float bondCutoff, bool sizeByMass, const std::map< int, std::string > &keyCodes) | |
| Construct a VisualisationState from a some Atoms. | |
| bool | recordWaiting () const |
| Video writing is behind. | |
| void | toggleRecord (const CommandLine &options) |
| Toggle recording to video. | |
| void | recordFrame (uint32_t resX, uint32_t resY) |
| If recording, obtain the pixels for the current frame and submit for recording. | |
| int | lua_setAtomColour (lua_State *lua) |
| Lua binding to set an Atom's colour by index. | |
| int | lua_getAtomColour (lua_State *lua) |
| Lua binding to get a Atom's colour by index. | |
| int | lua_bond (lua_State *lua) |
| Lua binding to bond 2 Atoms. | |
| int | lua_unbond (lua_State *lua) |
| Lua binding to unbond 2 Atoms. | |
| int | lua_getAtomsBonds (lua_State *lua) |
| Lua binding to get the bonds of an Atom. | |
| int | lua_atomCount (lua_State *lua) |
| Lua binding to get the Atom count. | |
| int | lua_getAtomsNeighbours (lua_State *lua) |
| Lua binding to get the neighbours of an Atom to a cutoff. | |
| int | lua_getAtom (lua_State *lua) |
| Lua binding to get an Atom. | |
| int | lua_setText (lua_State *lua) |
| Set the on screen text. | |
| int | lua_getFrame (lua_State *lua) |
| Get the current frame number. | |
Public Attributes | |
| std::vector< Atom > & | atoms |
| std::map< uint64_t, std::set< uint64_t > > | bonds |
| std::vector< uint64_t > | bondsFor |
| std::vector< float > | atomEmphasisOverrides |
| std::map< uint64_t, glm::vec4 > | atomColourOverrides |
| std::vector< float > | atomSizes |
| std::multimap< Element, uint64_t > | elementMap |
| std::map< int, Element > | emphasisControls |
| std::string | text |
| uint64_t | frame |
| uint64_t | atomCount |
| std::unique_ptr< Record > | record = nullptr |
| bool | recording = false |
| bool | recordClosing = false |
| bool | elementsUpdated = false |
Holds editable data for the visualisation state.
|
inline |
Construct a VisualisationState from a some Atoms.
| atoms | the Atoms to construct from. |
| atomColours | file path for colour overrides. |
| bondFocus | a particular atom to focus bonds on. |
| bondCutoff | a bond cutoff distance. |
| keyCodes | key codes. |
Get the current frame number.
| lua | the Lua context. |
Lua binding to set an Atom's colour by index.
Lua binding to set an Atoms colour by index.
| lua | the Lua context. |
Set the on screen text.
| lua | the Lua context. |
If recording, obtain the pixels for the current frame and submit for recording.
| resX | the x resolution. |
| resY | the y resolution. |
|
inline |
Video writing is behind.
|
inline |
Toggle recording to video.
| options | the command line options (with video options). |
| std::map<uint64_t, glm::vec4> VisualisationState::atomColourOverrides |
| uint64_t VisualisationState::atomCount |
| std::vector<float> VisualisationState::atomEmphasisOverrides |
| std::vector<Atom>& VisualisationState::atoms |
| std::vector<float> VisualisationState::atomSizes |
| std::vector<uint64_t> VisualisationState::bondsFor |
| uint64_t VisualisationState::frame |
| std::string VisualisationState::text |