Renderer for drawing lanes during their building.
More...
Renderer for drawing lanes during their building.
Definition at line 12 of file LaneBuildingRenderer.cs.
void Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.DrawPreviewStraightLane |
( |
Point |
endPointOnCanvas | ) |
|
|
protected |
Draws preview of straight lane.
- Parameters
-
endPointOnCanvas | End point on canvas. |
Definition at line 132 of file LaneBuildingRenderer.cs.
virtual IList<double> Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.GetSquaredDistancesOfCanvasPointToWorldLanePoints |
( |
Point |
cursorPointOnCanvasPoint | ) |
|
|
protectedvirtual |
Vector Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.GetVectorOfMoveOfPointIfItIsBeingDragged |
( |
Point |
cursorPointOnCanvas, |
|
|
bool |
isBeingDragged |
|
) |
| |
|
protected |
Gets vector of move of point if the point is being dragged and update the previous reference point for dragging.
- Parameters
-
cursorPointOnCanvas | Cursor point as a new point of movement (dragging). |
isBeingDragged | Determines whether certain point is being dragged. |
- Returns
- Vector of move of point.
Definition at line 228 of file LaneBuildingRenderer.cs.
override void Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.Render |
( |
Point |
currentMouseLocation | ) |
|
|
protectedvirtual |
void Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.SetPointToDraggingModeIfCursorIsNearAndDragging |
( |
ref bool |
pointIsInDraggingMode, |
|
|
Point |
cursorPointOnCanvas, |
|
|
double |
squaredDistanceOfWorldPointFromCanvasPoint, |
|
|
IList< double > |
squaredDistancesOfRemainingWorldPointsFromCanvasPoint |
|
) |
| |
|
protected |
Set point to dragging mode if cursor is near to any point of lane.
- Parameters
-
pointIsInDraggingMode | Flag to set if the point is switched to dragging mode. |
cursorPointOnCanvas | Cursor point on canvas. |
squaredDistanceOfWorldPointFromCanvasPoint | Squared distance of cursor point to some lane world point. |
squaredDistancesOfRemainingWorldPointsFromCanvasPoint | List of squared distances of cursor point to all lane world points. |
Definition at line 264 of file LaneBuildingRenderer.cs.
const double Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.DraggingCircleRadius = 4.0 |
|
protected |
Radius of a circle surrounding the points of a lane. The circle determines the area where cursor must be when user wants to press left mouse button and drag a point the circle surround.
Definition at line 38 of file LaneBuildingRenderer.cs.
Value of squared radius of dragging circle which can be used to skip sqrt operation in computation of the Euclidean distance.
Definition at line 44 of file LaneBuildingRenderer.cs.
Point Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.endWorldPoint = null |
|
protected |
Point Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.lastCursorPointOnCanvas |
|
protected |
Pen Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.pen = new Pen(Brushes.Green, PenThickness) |
|
protected |
const double Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.PenThickness = 1.0 |
|
protected |
Point Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.previousReferencePointForDragging |
|
protected |
Point Microscopic_Traffic_Simulator.Renderers.LaneBuildingRenderer.startWorldPoint = null |
|
protected |
The documentation for this class was generated from the following file: