01_user_documentation:06_graph:02_node:01_attribute
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 01_user_documentation:06_graph:02_node:01_attribute [2025/09/04 15:31] – gaetan | 01_user_documentation:06_graph:02_node:01_attribute [2025/10/07 16:44] (current) – gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Attribute ====== | ====== Attribute ====== | ||
| - | An attribute is a node field. | + | Persistent fields (in the java sense) of a Node are attributes. Basically, all fields that are NOT '' |
| ===== Accessor ===== | ===== Accessor ===== | ||
| - | Attribute accessors are the methods to get and set the attribute value. | + | Attribute accessors are the methods to get and set the attribute value. |
| + | <code java> | ||
| + | Sphere s; // has an attribute diameter | ||
| + | s[diameter] = 5; // automatically resolve the setter | ||
| + | float d = s[diameter]; | ||
| + | </ | ||
| + | |||
| + | ===== Editor ===== | ||
| + | |||
| + | Additionally, | ||
| + | {{page> | ||
01_user_documentation/06_graph/02_node/01_attribute.1756992709.txt.gz · Last modified: 2025/09/04 15:31 by gaetan
