9 #ifndef RMF_TRAVERSE_HELPER_H
10 #define RMF_TRAVERSE_HELPER_H
12 #include <RMF/config.h>
26 typedef std::vector<TraverseHelper> TraverseHelpers;
40 struct Index :
public RMF_LARGE_UNORDERED_MAP<NodeID, unsigned int> {};
41 std::shared_ptr<Index> active_;
54 std::string residue_type_;
55 std::string chain_id_;
56 std::string molecule_name_;
60 Data(
NodeConstHandle root, std::string molecule_name,
double resolution,
63 std::shared_ptr<Data> data_;
73 double resolution = 10000,
int state_filter = -1);
107 return data_->coordinate_transformer_.get_global_coordinates(v);
111 unsigned int set_is_displayed();
113 bool get_is_displayed(
NodeID n) {
return active_->find(n) != active_->end(); }
116 unsigned int get_index(
NodeID n)
const;
119 TraverseHelpers get_children()
const;
std::string get_molecule_name() const
Get the current molecule name or None.
Helper functions for manipulating RMF files.
Nullable< String > get_residue_type() const
Get the current residue type or None.
A handle for a particular node in a read-only hierarchy.
Helper functions for manipulating RMF files.
unsigned int get_state_index() const
Get the current state or 0.
Nullable< Vector3 > get_rgb_color() const
Get the current color or None.
Return a possibly null value.
Nullable< Int > get_copy_index() const
Get the current copy index or None.
Helper functions for manipulating RMF files.
Nullable< Int > get_residue_index() const
Get the current residue index or None.
Nullable< String > get_chain_id() const
Get the current chain id or None.
Helper functions for manipulating RMF files.
A helper class for allowing nice return of possibly null values.
Track common data that one needs to keep as one traverses the hierarchy.