This change focuses all token locations underneath the cursor at once by extending the focus handling to use vectors.
33 lines
712 B
C++
33 lines
712 B
C++
#ifndef GRAPH_VIEW_H
|
|
#define GRAPH_VIEW_H
|
|
|
|
#include "utility/types.h"
|
|
|
|
#include "component/view/View.h"
|
|
|
|
struct DummyEdge;
|
|
struct DummyNode;
|
|
class Graph;
|
|
|
|
class GraphView : public View
|
|
{
|
|
public:
|
|
GraphView(ViewLayout* viewLayout);
|
|
virtual ~GraphView();
|
|
|
|
virtual std::string getName() const;
|
|
|
|
virtual void rebuildGraph(
|
|
std::shared_ptr<Graph> graph, const std::vector<DummyNode>& nodes, const std::vector<DummyEdge>& edges) = 0;
|
|
virtual void clear() = 0;
|
|
|
|
virtual void focusTokenIds(const std::vector<Id>& focusedTokenIds) = 0;
|
|
virtual void defocusTokenIds(const std::vector<Id>& defocusedTokenIds) = 0;
|
|
|
|
virtual void resizeView() = 0;
|
|
|
|
virtual Vec2i getViewSize() const = 0;
|
|
};
|
|
|
|
#endif // GRAPH_VIEW_H
|