SliceOmatic provide you with a number of callback hooks in the class "SliceO_Class". If you want, you can use these to have your own function called instead of the default callback functions.
Most of these callbacks hooks are pointers to a function. You just replace the pointer by a pointer to your own function. Some of the hooks are arrays of pointers. For these, you need to ask sliceOmatic to provide you with an index number to use in the array. This is done with the "Get_Callback_ID()" function.
Callbacks to get or change a pixel value:
|
|
|
These function return the pixel values of a pixel identified by its 3D position.
|
|
|
|
|
|
|
|
This function change the TAG value of a pixel identified by its 3D position. |
Callbacks to get pixel metrics:
|
|
|
This function returns the resolution of an image. |
|
|
|
This function returns the 3D position of a point on a 2D image. |
Callbacks to draw to a window:
|
|
|
This function is used to draw a border around portion of the class representation in 2D windows in MODE_ALL. |
|
|
|
These functions are used to draw the default information of the class. For frames, it draw the pixels of the frame, for classes higher in the tree it draw icons and connecting lines in 2D windows in MODE_ALL. |
|
|
|
These functions are used to draw in the OpenGL step of the drawing process. |
|
|
|
These functions are used to draw in the Stencil step of the drawing process. |
|
|
|
These functions are used to draw elements of the 2D database in a 3D window |
From: sliceO_class_2D.hpp
|
|
|