Vectors
When calling some functions of the LVectorBase LEADTOOLS C++ Class Library classes, particularly those that affect the vector itself, then notification messages are sent through the LVectorBase::StartChanging and LVectorBase::EndChanging member functions. These functions are called before and after executing the function that changes the bitmap. This gives you more control over the operation in progress. In order to use this feature, you must override the virtual functions for StartChanging and EndChanging. In the LVectorBase::StartChanging function, if you return an error code, the change operation will halt the calling function and will return the same error code. In the LVectorBase::EndChanging function you will be notified that the calling function's operation is complete. This gives you a chance to do other processing such as updating the display.
The following sections describe the change notifications and the notification categories:
Vector Changing Notifications:
The following is a list of all the notification messages and the functions that send them:
Notification Message |
Function In Progress |
NC_VECTOR_ADD_GROUP |
|
NC_VECTOR_ADD_LAYER |
|
NC_VECTOR_ADD_OBJECT |
|
NC_VECTOR_ATTACH |
|
NC_VECTOR_BACKCOLOR |
|
NC_VECTOR_BIND_VERTICES |
|
NC_VECTOR_CAMERA |
|
NC_VECTOR_COPY |
|
NC_VECTOR_COPY_GROUP |
|
NC_VECTOR_COPY_LAYER |
|
NC_VECTOR_COPY_OBJECT |
|
NC_VECTOR_DELETE_GROUP |
|
NC_VECTOR_DELETE_GROUP_CLONES |
|
NC_VECTOR_DELETE_LAYER |
|
NC_VECTOR_DELETE_OBJECTS |
|
NC_VECTOR_DIALOG_CAMERA |
|
NC_VECTOR_DIALOG_ROTATE |
|
NC_VECTOR_DIALOG_SCALE |
|
NC_VECTOR_DIALOG_TRANSLATE |
|
NC_VECTOR_EMPTY_GROUP |
|
NC_VECTOR_EMPTY_LAYER |
|
NC_VECTOR_EXPLODE_OBJECT |
|
NC_VECTOR_FREE |
|
NC_VECTOR_PAN |
|
NC_VECTOR_POLYGON_MODE |
|
NC_VECTOR_REALIZE |
|
NC_VECTOR_ROTATE |
|
NC_VECTOR_SCALE |
|
NC_VECTOR_SET_OBJECT |
|
NC_VECTOR_TRANSLATE |
|
NC_VECTOR_VECTORHANDLE |
|
NC_VECTOR_VIEW_MODE |
|
NC_VECTOR_VIEW_PORT |
Vector Changing Notification Categories:
The following is a list of all the notification categories:
NCAT_VECTOR |
LVectorBase functions for setting view and object characteristics |
NCAT_VECTOR_DIALOG |
LVectorDialog dialog generation |