KitchenDraw SDK 2
Show / Hide Table of Contents

Method GetOutlineString

GetOutlineString(int, int, int, int, double)

Gets the polylines composing the outline of the selection.

Declaration
public string GetOutlineString(int imageWidth, int imageHeight, int rotationPixelX = 0, int rotationPixelY = 0, double rotationAngle = 0)
Parameters
Type Name Description
int imageWidth
int imageHeight
int rotationPixelX

Position in the image space (pixels) of the pivot point of a possible rotation.

int rotationPixelY

Position in the image space (pixels) of the pivot point of a possible rotation.

double rotationAngle

The rotation angle of the outlines in degrees.

Returns
Type Description
string

The character string listing the selection outline segment points. See remarks for details.

Remarks

This function gives the segments composing the outline of the selected objects of the current scene. This segments list corresponds to the current view mode of the scene (top view, elevation or perspective).

The list is returned as a character string. The segments' points' coordinates are given in the pixel space which size is defined by imageWidth and imageHeight parameters. The outline represents the current view. The points' coordinates are separated with a coma(,), the points with a semi-column(;) and the segments with a column(:) as illustrated in the example below: p1x1,p1y1,p1z1;...;p1xn,p1yn,p1zn:p2x1,p2y1,p2z1;...;p2xn,p2yn,p2zn, where pmxn, pmyn and pmzn are the coordinates of the nth point of the mth segment.

You can use Scene.Selection_.Outline class to parse this string and to get individual segments and points from this list.

In this article
Back to top Generated by DocFX