LVectorWindow::SetToolType

#include "ltwrappr.h"

L_INT LVectorWindow::SetToolType(uToolType)

L_UINT uToolType;

the tool type

Sets the tool type for the class object's window.

This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Parameter Description
uToolType The tool type to be used by the vector window. Possible values are:
  Value Meaning
  TOOL_VECTOR_USERMODE user tool type (default).
  TOOL_VECTOR_SELECT select tool - allows the user to select individual objects in the vector.
  TOOL_VECTOR_PANIMAGE pan image tool - allows the user to pan the vector image by clicking a mouse button and dragging the mouse. The "pan cursor" will not appear if the image cannot be panned (i.e. - there are no scroll bars). If there are not scroll bars, press the PLUS key on the numeric key pad a few times to zoom until scroll bars appear.
  TOOL_VECTOR_ROTATE 3d rotate tool - allows user to rotate the vector, or individual objects within a vector.

Returns

None.

Comments

The vector window can automatically perform some functions. These include panning the vector, selecting individual components of a vector, and rotating the vector in 3 dimensions. The default setting for an LVectorWindow object is TOOL_VECTOR_USERMODE.

If the tool type is TOOL_VECTOR_SELECT, you can do the following:

When using the vector dialogs, only the currently selected objects are affected. If the SelectedOnly state is set to TRUE (LVectorWindow::GetSelectedOnly, LVectorWindow::SetSelectedOnly), then only selected objects will be scaled. If the SelectedOnly state is set to FALSE, then ALL objects are scaled.

If the tool type is TOOL_VECTOR_ROTATE, you can do the following:

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorWindow::GetToolType, Class Members

Example

Assumes pVectorWindow points to a valid LVectorWindow object.

L_INT LVectorWindow__SetToolTypeExample(HWND hWndParent, LVectorWindow *pVectorWindow, L_UINT uToolType) 
{ 
   L_TCHAR*    lpszMsg = NULL; 
   pVectorWindow->SetToolType(uToolType); 
   switch (uToolType) 
   { 
      case TOOL_VECTOR_USERMODE: 
      lpszMsg = TEXT("Current tool: TOOL_VECTOR_USERMODE"); 
      break; 
      case TOOL_VECTOR_SELECT: 
      lpszMsg = TEXT("Current tool: TOOL_VECTOR_SELECT"); 
      break; 
      case TOOL_VECTOR_PANIMAGE: 
      lpszMsg = TEXT("Current tool: TOOL_VECTOR_PANIMAGE"); 
      break; 
      case TOOL_VECTOR_ROTATE: 
      lpszMsg = TEXT("Current tool: TOOL_VECTOR_ROTATE"); 
      break; 
   } 
   ::SetWindowText(hWndParent, lpszMsg); 
   return SUCCESS; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Vector C++ Class Library Help