A set of changes that occured to a Graph. More...
#include <Graph.h>
Public Member Functions | |
bool | empty () |
Returns true if this struct is empty (if none of the lists contain data). | |
void | clear () |
Clears each lists. | |
void | insert (Changes c) |
Inserts a list of changes in the current struct. | |
bool | equals (Changes c) const |
Checks if this Changes equals another. | |
void | print () const |
Print method for debug only. | |
Public Attributes | |
set< CurveId > | removedCurves |
List of removed Curves. | |
set< CurveId > | addedCurves |
List of added Curves. | |
set< AreaId > | removedAreas |
List of removed areas. | |
set< AreaId > | addedAreas |
List of added areas. |
A set of changes that occured to a Graph.
The changes are specified with sets of removed and added curves and areas. These structs are created when a Graph is modified, and they are used in clipUpdate to update a clipped graph incrementally, without doing a full clip.
void proland::Graph::Changes::clear | ( | ) |
Clears each lists.
bool proland::Graph::Changes::empty | ( | ) |
Returns true if this struct is empty (if none of the lists contain data).
bool proland::Graph::Changes::equals | ( | Changes | c | ) | const |
void proland::Graph::Changes::insert | ( | Changes | c | ) |
Inserts a list of changes in the current struct.
c | a Graph::Changes struct. |
void proland::Graph::Changes::print | ( | ) | const |
Print method for debug only.
List of added areas.
List of added Curves.
List of removed areas.
List of removed Curves.