59 std::vector<glm::vec4>
data;
63 std::vector<std::pair<const glm::vec3 *, int>>
landmarks;
Generator of the size of the next point batch.
A piece of cache that keeps track of the dirty status.
Storage of data used for cluster coloring.
Storage of the color data.
void update(const TransData &td, const LandmarkModel &lm, FrameStats &frame_stats)
Recomputes color of the 2D data points if user has changed any of the color settings.
void reset()
Resets color settings to their initial values.
void color_landmarks(const std::vector< size_t > &idxs)
Notifies Sweeper that the color settings has been modified and that the data has to be recomputed.
std::vector< std::pair< const glm::vec3 *, int > > landmarks
Colors of the landmarks and id of the cluster.
bool reverse
Flag indicating if the colors of the color palette should be reversed.
float alpha
Alpha channel of RGBA color.
int expr_col
Index of the column used in expression coloring.
Coloring
Types of coloring.
void reset_landmark_color(int id)
Reset colors and cluster ids of all landmarks in the cluster with input id.
void remove_landmark(size_t ind)
int coloring
Type of the coloring method.
void color_landmark(size_t ind)
Color the landmark according to the active cluster.
std::string col_palette
Name of the currently used color palette.
std::vector< glm::vec4 > data
Colors of the 2D data points.
ColorData()
Calls reset() method to set initial values.
const glm::vec3 default_landmark_color
BatchSizeGen batch_size_gen
Model of the high- and low-dimensional landmarks.
A piece of multi-object cache.
void refresh(const Dirts &d)
Force-refresh the whole range.
Storage of the transformed data.