Fct_Contour_Update

 

Update any contour that as been modified.  The function use the "m_" variable of the frames to know if the TAG values have been modified.

 

 

Syntax

 

int  Fct_Contour_Update(

          SliceO_Frame * frame

) ;

 

 

Parameters

 

frame

Pointer to the frame to update.

 

 

Return value

 

This function return 1.

 

 

Remarks

 

 

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

 

Library:

          sliceO_Structures.lib

 

 

 

Example

 

Updating the contours in the shell_ctrl.cpp file of the "Shell_TomoVision" module.

 

int          Ctrl_Update( UInt64 flag )

{

          ...

 

          // --- We changed the TAG image.  Only re-compute some contours ---

          if ( flag & (UPDATE_USER_3) ) {

 

                    // --- get the current window ---

                    SliceO_Window *Window_Cur = (SliceO_Window *) Fct_Variable_Value( "$WINDOW_CUR" ) ;

 

                    // --- compute contour for all active slices ---

                    if ( Iterator_Init( ITERATOR_2, "3D Shell: Ctrl_Update" ) )

                               while( SliceO_Frame *frame = (SliceO_Frame *) Iterator_Class( ITERATOR_2, CLASS_ID_FRAME, Window_Cur, ITER_FLAG_SELECT ) ) {

 

                                        // --- if this slice is untouched, skip it ---

                                        if ( ! frame->Flag_Get_Bit( CLASS_MODE_THIS, CLASS_MODE_NONE, CLASS_FLAG_CONTOUR ) )

                                                  continue ;

 

                                        Fct_Contour_Update( frame ) ;

                              }

                              Iterator_End( ITERATOR_2 ) ;

                              Fct_Redraw( REDRAW_ALL_3D ) ;

                    }

          }

 

          ...

}

 

See also

 

Fct_Contour_Compute

Fct_Contour_Create

Fct_Contour_Free