|
Sparksee 6.1.0
|
Stores the node exporting values. More...
#include <Export.h>
Public Member Functions | |
| NodeExport () | |
| Creates a new instance. | |
| virtual | ~NodeExport () |
| Destructor. | |
| void | SetDefaults () |
| Sets to default values. | |
| void | CopyDefaults (const NodeExport &source) |
| Sets the default values using a refrerence NodeExport. | |
| const std::wstring & | GetLabel () const |
| Gets the node label. | |
| void | SetLabel (const std::wstring &label) |
| Sets the node label. | |
| const std::wstring & | GetTitle () const |
| Gets the node title. | |
| void | SetTitle (const std::wstring &title) |
| Sets the node title. | |
| NodeShape | GetShape () const |
| Gets the node shape. | |
| void | SetShape (NodeShape shape) |
| Sets the node shape. | |
| ColorRGB | GetColorRGB () const |
| Gets the node color. | |
| void | SetColorRGB (ColorRGB color) |
| Sets the node color. | |
| ColorRGB | GetLabelColorRGB () const |
| Gets the node label color. | |
| void | SetLabelColorRGB (ColorRGB color) |
| Sets the node label color. | |
| int32_t | GetHeight () const |
| Gets the node height. | |
| void | SetHeight (int32_t height) |
| Sets the node height. | |
| int32_t | GetWidth () const |
| Gets the node width. | |
| void | SetWidth (int32_t width) |
| Gets the node width. | |
| bool_t | IsFit () const |
| Gets whether the node size is fitted to the label or not. | |
| void | SetFit (bool_t fit) |
| Sets the node fit property. | |
| int32_t | GetFontSize () const |
| Gets the node label font size. | |
| void | SetFontSize (int32_t size) |
| Sets the node label font size. | |
| const std::wstring & | GetImage () const |
| Gets the node image. | |
| void | SetImage (const std::wstring &image) |
| Sets the node image. | |
Stores the node exporting values.
When 'fit' is set to TRUE, then 'height' and 'width' will be ignored.
Some properties may be ignored depending on the exportation type.
Default values are:
Label: "" (empty string).
Shape: Box.
Color: 10863606 (0xa5c3f6).
Label color: 0 (Ox000000, Black).
Height: 25px.
Width: 25px.
Fit: TRUE.
Font size: 10.
|
inline |
Gets the node color.
|
inline |
Gets the node label font size.
|
inline |
Gets the node height.
|
inline |
Gets the node image.
|
inline |
Gets the node label.
|
inline |
Gets the node label color.
|
inline |
Gets the node shape.
|
inline |
Gets the node title.
|
inline |
Gets the node width.
|
inline |
Gets whether the node size is fitted to the label or not.
|
inline |
Sets the node color.
| color | The node color. |
|
inline |
Sets the node fit property.
| fit | [in] If TRUE, then the node size is fitted to the label ('height' and 'width' will be ignored), otherwise the size is fixed with the values of 'height' and 'width'. |
|
inline |
Sets the node label font size.
| size | [in] The node label font size. |
|
inline |
Sets the node height.
| height | [in] The node height in pixels. |
|
inline |
Sets the node image.
| image | [in] The node image. The image should be a path to a local file or an URL. The image usage in the export depends on the exported format and shape. For Graphviz: Graphviz expects only local image paths as images in dot files unless you plan on using something like it's "dot_url_resolve.py" script to automatically download them. The Image shape is not directly supported for Graphviz. For Html: The vis.js html exports only show the image if the node shape selected is Image or Circle (that will be translated as "circularimage"). |
|
inline |
Sets the node label.
| label | [in] The node label. |
|
inline |
Sets the node label color.
| color | [in] The node label color. |
|
inline |
Sets the node shape.
| shape | [in] The node shape. |
|
inline |
Sets the node title.
| title | [in] The node title. |
|
inline |
Gets the node width.
| width | The node width in pixels. |