This function change the TAG pixel value of a pixel identified by its 3D position.
Syntax
int (*Fct_Pixel_Set_TAG)(
SliceO_Class *pt,
void *ima,
Vect pos,
unsigned char tag
)
Parameters
pt
Pointer to the class calling the function.
ima
Pointer to a Tomo_Image structure, as defined in the SliceO_File class.
pos
position of a point in the image plane.
tag
new tag value for the target pixel.
Return value
This function return "1" if the pixel has been successfully changed, "0" if it already has the correct value, "-1" if the operation could not be completed.
Remarks
By default, the function will apply the local transformation to the position and call the same function for the parent class in the tree. The "root" class will change the actual value.
Pixel that are protected by a "TAG_Lock" will not be changed and the function will return "0".
The "Undo" operation may prevent this operation from completing successfully. If this is the case, it will return "-1".
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
Default callback for all classes except "Root"
Default callback for "Root" class
See also