xxx::Motion

 

Tool_Brush::Motion

Tool_Tag::Motion

Tool_Histo::Motion

Tool_Propagate::Motion

Tool_DB_Class::Motion

Tool_DB_File::Motion

 

This method is used to update the tool to reflect a mouse motion.

 

 

Syntax

 

int  Motion(

          int mouse_code

) ;

 

 

Parameters

 

mouse_code

          You must provide an integer that gives the value of the mouse buttons.  For the "Ctrl_Click" and "Ctrl_Motion" DLL functions, this is the variable "up_down".

 

 

 

Return value

 

This method returns 1 if the mouse motion information was used by the tool.

 

 

Remarks

 

The method is usually called from within your Ctrl_Motion() function. The parameter "up_down" 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_Motion( HWND wnd, int up_down, short x, short y )

{

          // --- Brush Selection Tool ---

          if ( box_brush.Select( up_down ) )

              tool_brush.Motion( up_down ) ;

 

          return( 0 ) ;

}

 

 

See also