RMF
|
Track common data that one needs to keep as one traverses the hierarchy. More...
#include <RMF/TraverseHelper.h>
Public Member Functions | |
TraverseHelper (NodeConstHandle root, std::string molecule_name, double resolution=10000, int state_filter=-1) | |
Nullable< String > | get_chain_id () const |
Get the current chain id or None. | |
TraverseHelpers | get_children () const |
Return other nodes to traverse. | |
Nullable< Int > | get_copy_index () const |
Get the current copy index or None. | |
Vector3 | get_global_coordinates (const Vector3 &v) |
unsigned int | get_index (NodeID n) const |
Return a unique id for the current particle. | |
bool | get_is_displayed (NodeID n) |
std::string | get_molecule_name () const |
Get the current molecule name or None. | |
Nullable< Int > | get_residue_index () const |
Get the current residue index or None. | |
Nullable< String > | get_residue_type () const |
Get the current residue type or None. | |
Nullable< Vector3 > | get_rgb_color () const |
Get the current color or None. | |
unsigned int | get_state_index () const |
Get the current state or 0. | |
unsigned int | set_is_displayed () |
Set that the current node is displayed and return its index. | |
Public Member Functions inherited from RMF::NodeConstHandle | |
template<class T > | |
T | get_association () const |
Return the associated pointer for this node. More... | |
NodeConstHandles | get_children () const |
FileConstHandle | get_file () const |
bool | get_has_association () const |
NodeID | get_id () const |
std::string | get_name () const |
NodeType | get_type () const |
get the type of this node | |
operator NodeID () const | |
template<class T > | |
void | set_association (const T &v, bool overwrite=false) const |
template<class Tag > | |
Nullable< typename Tag::Type > | get_value (ID< Tag > k) const |
template<class Tag > | |
bool | get_has_value (ID< Tag > k) const |
template<class Tag > | |
Nullable< typename Tag::Type > | get_frame_value (ID< Tag > k) const |
template<class Tag > | |
Nullable< typename Tag::Type > | get_static_value (ID< Tag > k) const |
Additional Inherited Members | |
Protected Member Functions inherited from RMF::NodeConstHandle | |
FrameID | get_current_frame_id () const |
std::string | get_file_name () const |
Protected Attributes inherited from RMF::NodeConstHandle | |
NodeID | node_ |
std::shared_ptr < internal::SharedData > | shared_ |
Things like residue index, chain id, and the local reference frame are all properties of the path taken to reach a given node when traversing. This class helps keep track of them.
Feel free to request that other data types be added.
Definition at line 39 of file TraverseHelper.h.