xxx::Keyboard

 

Tool_Brush::Keyboard

Tool_Tag::Keyboard

Tool_Histo::Keyboard

Tool_Propagate::Keyboard

Tool_DB_Class::Keyboard

Tool_DB_File::Keyboard

 

This method update the tool to reflect a keyboard key being activated.

 

 

Syntax

 

int  Keyboard(

          int key

) ;

 

 

Parameters

 

key

          You must provide an integer that gives the value of the keyboard key that has been pressed.

 

 

Return value

 

This method returns 1 if the key has been used by the tool, 0 otherwise.

 

 

Remarks

 

The method is usually called from within your Ctrl_Key() function. The parameter "key" is the one received as argument by the function.

 

 

Requirements

 

Header:

          TomoVision_Util.hpp

          TomoVision_Tools.hpp

          Tool_work.hpp

 

Library:

          TomoVision_Util.lib

          TomoVision_Tools.lib

          SliceO_Tools.lib

 

 

Example

 

// --- Interface tools ---

static          Boxs          box_box ;

 

// --- for Brush Selection Tool ---

static          Boxs          box_brush ;

static          Tool_Brush          tool_brush ;

 

...

 

extern "C" __declspec(dllexport) int          Ctrl_Key( HWND wnd, int key, short x, short y )

{

          // --- Brush Selection Tool ---

          if ( tool_brush.Keyboard( key ) )

              return( 1 ) ;

 

          return( 0 ) ;

}

 

 

See also