LVectorWindow::GetToolType

#include "ltwrappr.h"

L_UINT LVectorWindow::GetToolType(L_VOID)

Gets the current tool type for the class object's window.

Returns

The current tool type. Possible values are:

Value Meaning
TOOL_VECTOR_USERMODE user tool type (default).
TOOL_VECTOR_SELECT select tool - allows 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 toolallows user to rotate the vector, or individual objects within a vector.

Comments

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.

Using the vector rotate tool:

Required DLLs and Libraries

See Also

Functions

Example

Assumes pVectorWindow points to a valid LVectorWindow object.

L_INT LVectorWindow__GetToolTypeExample(LVectorWindow *pVectorWindow) 
{ 
   L_TCHAR* lpszMsg = NULL; 
   L_UINT   uToolType = pVectorWindow->GetToolType(); 
 
   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; 
   } 
 
   MessageBox(NULL, lpszMsg, TEXT(""), MB_OK); 
 
   return SUCCESS; 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help