SliceO_Class::Interface_Select

 

This method is called by sliceOmatic when the user create a drag box in one of the windows.

 

 

Syntax

 

int  Interface_Select(

          SliceO_Window * window,

          Region_2D * region_inf

) ;

 

 

Parameters

 

window

                    Pointer to the window where the event has occurred.

 

region_inf

          Selection region

 

 

Return value

 

This method return "1" if it use the event.

 

 

Remarks

 

The method is responsible for calling the "Select" method for all its children.  The following lines must be included at the end of the method:

 

...

// --- does one of the children use this event ? ---

int ret=0 ;

for ( int i=0; i < m_child_nb; i++ )

          ret += m_child_pt[i]->Interface_Select( window, region_inf ) ;

 

// --- we did not use this click ---

return( ret ) ;

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

Library:

          sliceO_Structures.lib

 

 

Example

 

 

 

See also