VICI
0.11.815
Visual Chart Interpreter
|
Represents something that is drawn on the canvas. More...
#include <vici/vici.h>
Public Member Functions | |
virtual | ~Symbol () |
virtual destructor | |
virtual Symbol * | clone (SymbolOwner *owner)=0 |
construct a copy of the symbol More... | |
virtual void | setAttributes (SymbolAttributes &att)=0 |
change the attributes of the symbol More... | |
virtual bool | isCommand ()=0 |
check if the symbol represents a command object More... | |
virtual void | draw (Scene *scene, double x, double y, double scale)=0 |
display the object More... | |
virtual void | attachCommand (const ArgList &args)=0 |
Associate the symbol with a command. More... | |
virtual void | setNodeId (NodeId nid)=0 |
Set the node id for the object. More... | |
virtual Style | getStyle ()=0 |
get the style for the symbol More... | |
virtual void | setHighlight (bool x)=0 |
show the symbol as selected More... | |
Represents something that is drawn on the canvas.
The implementation will paint itself on the provided scene.
|
pure virtual |
Associate the symbol with a command.
The first entry becomes the label for the object. The entire argument list is assigned to the tool tip for the symbol.
args | the command and its options |
Implemented in VICI::stub::SymbolStub.
|
pure virtual |
construct a copy of the symbol
owner | the object that owns the symbol |
Implemented in VICI::stub::SymbolStub.
|
pure virtual |
display the object
scene | the canvas on which to display the object. |
x | the x coordinate on the scene |
y | the y coordinate on the scene |
scale | the scaling factor to use |
Implemented in VICI::stub::SymbolStub.
|
pure virtual |
|
pure virtual |
check if the symbol represents a command object
Implemented in VICI::stub::SymbolStub.
|
pure virtual |
change the attributes of the symbol
This will cause the symbol to be redisplayed with the new attributes.
att | the new attributes. |
Implemented in VICI::stub::SymbolStub.
|
pure virtual |
show the symbol as selected
x | True to show highlighted. |
Implemented in VICI::stub::SymbolStub.
|
pure virtual |
Set the node id for the object.
nid | The node id to show on the symbol. |
Implemented in VICI::stub::SymbolStub.