VectorImage AddGroupShape

Adds a Group of shapes to the VectorImage

Overloads

public void AddGroupShape(GroupShape group)

 

Return value

void  

 

Parameters

GroupShape group A Group shape object containing shapes to add

 

Example

Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);

if (scanDocument != null)
{
    VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);

    vectorImage.SetMarkSpeed(1000);
    vectorImage.SetJumpSpeed(2000);
    vectorImage.SetJumpDelay(100);
    vectorImage.SetMarkDelay(100);

    //Set Laser Delays
    vectorImage.SetLaserOnDelay(10);
    vectorImage.SetLaserOffDelay(10);

    GroupShape groupShape = new GroupShape();

    CircleShape circleShape = new CircleShape();
    circleShape.CenterPoint.X = 0.0f;
    circleShape.CenterPoint.Y = 0.0f;
    circleShape.CenterPoint.Z = 0.0f;
    circleShape.Clockwise = true;
    circleShape.Radius = 10;
    circleShape.StartAngle = 0;
    circleShape.MaximumSegmentationError = 0.001f;

    SpiralShape spiral = new SpiralShape();
    spiral.CenterPoint = new Point3D(-1, 0, 0);
    spiral.InnerRadius = 0.2f;
    spiral.OuterRadius = 1.2f;
    spiral.Angle = 0.3f;
    spiral.Pitch = 0.1f;

    groupShape.AddCircle(circleShape);
    groupShape.AddSpiral(spiral, 0.001f);

    vectorImage.AddGroup(groupShape);

    scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript","ScanAll()"));

    try
    {
        scanDocument.StartScanning();
    }
    catch
    {

    }

}