Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/doc/liblqr-1-0-dev/html/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
Given an The function to use is simply:
This attaches
It is not necessary that the parent
Needless to say, no resizing operation should be done directly on an ImportantThe carvers always have to be attached before loading visibility maps.
Attached carvers can be read-out in the same way as their parents. There are however also methods
to span all them, in a way very similar to that in which internally dumped First, the starting point of the list has to be retreived through:
Then, one can iterate through the attached carvers by using these two functions:
Here is a sample code usage: Example 2.10. Accessing attached carvers #1
LqrCarver *aux;
LqrCarverList *list;
list = lqr_carver_list_start (carver);
while (list) {
aux = lqr_carver_list_current (list);
/* ... do something on aux ... */
list = lqr_carver_list_next (list);
}
The carvers will always be accessed in the order in which they were attached. Alternatively, one can apply a function to all the elements of the list (and recursively to all the elements of their attached lists, if there are any), through this function:
To use this second method, you'll need to define a function first, as in the following sample code: Example 2.11. Accessing attached carvers #2
LqrRetVal my_func (LqrCarver *aux, LqrDataTok data)
{
/* ... do something on aux ... */
return LQR_OK;
}
LqrCarverList *list;
LqrDataTok data_tok;
list = lqr_carver_list_start (carver);
data_tok->data = NULL;
lqr_carver_list_foreach_recursive (list, my_func, data_tok);
The data to be passed on to the LqrCarverFunc is of type LqrDataTok. This is defined as a union, with the following fields:
In the above example, no data is actually passed on to the function. Note
In actual code, the call to |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0053 ]-- |