KitchenDraw SDK 2
Show / Hide Table of Contents

Method SelectionPixelMove

SelectionPixelMove(int, int, int, int, double, int, int, double, double, bool, bool)

Translates and/or rotates the selected objects.

Declaration
public void SelectionPixelMove(int windowWidth, int windowHeight, int originPixelX, int originPixelY, double originOxyAngle, int extremityPixelX, int extremityPixelY, double extremityOxyAngle, double distance = 0, bool duplicate = false, bool percuss = false)
Parameters
Type Name Description
int windowWidth

Width of the window (or image) for which the pixel coordinates are given.

int windowHeight

Height of the window (or image) for which the pixel coordinates are given.

int originPixelX

X coordinate of the pixel of the origin of the moving vector, in scene measurement units.

int originPixelY

Y coordinate of the pixel of the origin of the moving vector, in scene measurement units.

double originOxyAngle

Rotation in the origin of the moving vector, in the OXY plane, in degrees.

int extremityPixelX

X coordinate of the pixel of the extremity of the moving vector, in scene measurement units.

int extremityPixelY

Y coordinate of the pixel of the extremity of the moving vector, in scene measurement units.

double extremityOxyAngle

Rotation in the origin of the moving vector, in the OXY plane, in degrees.

double distance

The value (length) of the translation. If 0, then the translation length is defined by distance between the two points of the moving vector.

bool duplicate

If true, the method doesn't duplicates the selected objects to the destination position instead of moving them.

bool percuss

If true, the method eventually modifies the position of the object depending on its percussions with other objects of the scene.

In this article
Back to top Generated by DocFX