![]() |
ThorVG
v0.13
|
The Accessor is a utility class to debug the Scene structure by traversing the scene-tree. More...
Public Member Functions | |
std::unique_ptr< Picture > | set (std::unique_ptr< Picture > picture, std::function< bool(const Paint *paint)> func) noexcept |
Set the access function for traversing the Picture scene tree nodes. More... | |
Static Public Member Functions | |
static std::unique_ptr< Accessor > | gen () noexcept |
Creates a new Accessor object. More... | |
The Accessor is a utility class to debug the Scene structure by traversing the scene-tree.
The Accessor helps you search specific nodes to read the property information, figure out the structure of the scene tree and its size.
|
staticnoexcept |
|
noexcept |
Set the access function for traversing the Picture scene tree nodes.
[in] | picture | The picture node to traverse the internal scene-tree. |
[in] | func | The callback function calling for every paint nodes of the Picture. |
picture
instance.