C# Класс Canguro.Controller.Snap.SnapController

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MouseMove ( GraphicView activeView, System e ) : bool

Method to perform calculations based on the user interaction by moving the mouse

Paint ( Device device, GraphicView activeView, System e ) : void

This method paints all the gadgets added by the Snaps (i.e.

Reset ( GraphicView activeView ) : void
ResetStatus ( GraphicView activeView ) : void
SnapController ( ) : System

Приватные методы

Метод Описание
addPerpendicularMagnet ( LineMagnet lm, PointMagnet pm, float lmDot, GraphicView activeView, System e ) : PointMagnet

Method to add a perpendicular point magnet if the mouse is close to where it is

createInterestingDistance ( LineMagnet lm, GraphicView activeView, System e ) : PointMagnet

Gets an interesting point by following the line in reverse (as a mirror) and trying to find Joints at the same distance from the LineMagnet's position

createIntersection ( LineMagnet l1, LineMagnet l2, GraphicView activeView, System e ) : PointMagnet

Calculate the intersection point of two coplanar lines Source: http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline3d/

createMidPoint ( LineMagnet lm, GraphicView activeView, System e ) : PointMagnet

Method to try to create a midpoint magnet if the mouse is close to one

createPerpendicularMagnet ( LineMagnet lm, GraphicView activeView, System e ) : PointMagnet

Returns a perpendicular point magnet P if there's a point X and a line L which can be united by a perpendicular line: L | | X - - - - - - - - P | |

pickItems ( System e ) : void
recalcPrimaryDependant ( GraphicView activeView ) : void

Описание методов

MouseMove() публичный метод

Method to perform calculations based on the user interaction by moving the mouse
public MouseMove ( GraphicView activeView, System e ) : bool
activeView GraphicView
e System The Mouse event args
Результат bool

Paint() публичный метод

This method paints all the gadgets added by the Snaps (i.e.
public Paint ( Device device, GraphicView activeView, System e ) : void
device Device
activeView GraphicView
e System
Результат void

Reset() публичный метод

public Reset ( GraphicView activeView ) : void
activeView GraphicView
Результат void

ResetStatus() публичный метод

public ResetStatus ( GraphicView activeView ) : void
activeView GraphicView
Результат void

SnapController() публичный метод

public SnapController ( ) : System
Результат System