Viewer is ready to go, I think
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user