Manipulating Objects or Vertices within a Vector Image

LEADTOOLS provides functions for working with individual objects within the vector image.

LVectorBase::EnumObjects

LVectorBase::EnumVertices

Calling these functions enumerates through all vertices/objects in a vector.

To use these, the programmer must

1. Derive a class from LVectorBase.

2. Override the corresponding virtual function:

LVectorBase::EnumObjectsCallBack

LVectorBase::EnumVerticesCallBack

In the override, you can use the following member functions to test to see if a particular object is inside a rectangle or parallelogram, delete an object, select/deselect an object, test to see if an object is selected, get the object under a two-dimensional point, determine whether hidden objects exist in the vector handle, or get the object bounds.

LVectorBase::IsObjectInsideParallelogram

LVectorBase::IsObjectInsideRect

LVectorBase::DeleteObject

LVectorBase::IsObjectHidden

LVectorBase::HitTest

LVectorBase::GetObjectParallelogram

LVectorBase::GetObjectRect

LVectorBase::LogicalToPhysical

3. Before calling EnumObjects() or EnumVertices(),call the member function LBase::EnableCallBack(TRUE);

When manipulating individual vertices, the following affect how the vertices of the image bind with each other:

LVectorBase::SetBindVerticesMode

LVectorBase::GetBindVerticesMode

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