Viewer is ready to go, I think

This commit is contained in:
2021-01-22 17:35:23 -05:00
parent 351b923d68
commit b0440a4e12
11 changed files with 234 additions and 34 deletions

View File

@@ -87,7 +87,8 @@ public:
void set_graphic(const std::string &g);
void set_plane(const std::string &p);
// Get the final resting place.
// Get the final resting place after all animations are complete.
const std::string &get_graphic() const;
const std::string &get_plane() const;
const util::XYZ &get_xyz() const;
@@ -95,5 +96,27 @@ public:
void set_size_limit(int n);
};
class AnimView {
private:
std::string graphic_;
std::string plane_;
util::XYZ xyz_;
bool updated_;
public:
const std::string &get_graphic() { return graphic_; }
const std::string &get_plane() { return plane_; }
const util::XYZ &get_xyz() { return xyz_; }
bool updated() { return updated_; }
void update_from(const AnimQueue &queue) {
graphic_ = queue.get_graphic();
plane_ = queue.get_plane();
xyz_ = queue.get_xyz();
updated_ = true;
}
void set_updated(bool u) { updated_ = u; }
};
#endif // ANIMQUEUE_HPP