City Based Parking and Routing System API Documentation

Road Members

Road overview

Public Static Methods

Create Creates a new instance of the current Road class.

Protected Static Fields

_DashPen Static pen to draw the dash road marking pattern onto the road (- - - -)
cLaneCenterOffset The vehicle offset (in pixels) from the centerline.
cVehicleLength The standard length of a vehicle.
cVehicleWidth The standard width of a vehicle.
VehicleBrush Static brush to draw vehicles
WIDEN_PATH Path for determining the intersection with a mouse click or other object ( do not use for drawing! )
WIDEN_PEN Pen used to widen the intersection path ( do not use for drawing! )

Public Instance Constructors

Road Overloaded. Initializes a new instance of the Road class.

Public Instance Fields

FullBoundsInvalidated (inherited from UMD.HCIL.Piccolo.PNode) 
PaintInvalidated (inherited from UMD.HCIL.Piccolo.PNode) 

Public Instance Properties

AllNodes (inherited from UMD.HCIL.Piccolo.PNode) 
Alpha Gets or sets the alpha IIntersection.
AlphaLanes Gets the collection of lanes that originate at the alpha intersection.
AlphaPostion Gets or sets the alpha RoadPosition of the road.
AlphaSideObjects Gets or sets the list of side objects for the alpha lanes.
Beta Gets or sets the beta IIntersection.
BetaLanes Gets the collection of lanes that originate at the beta intersection.
BetaPosition Gets or sets the beta RoadPosition of the road.
BetaSideObjects Gets or sets the list of side objects for the beta lanes.
Bounds (inherited from UMD.HCIL.Piccolo.PNode) 
Brush (inherited from UMD.HCIL.Piccolo.PNode) 
CenterLine Gets or sets the centerline of the road.
ChildPaintInvalid (inherited from UMD.HCIL.Piccolo.PNode) 
ChildrenCount (inherited from UMD.HCIL.Piccolo.PNode) 
ChildrenEnumerator (inherited from UMD.HCIL.Piccolo.PNode) 
ChildrenPickable (inherited from UMD.HCIL.Piccolo.PNode) 
ChildrenReference (inherited from UMD.HCIL.Piccolo.PNode) 
FullBounds (inherited from UMD.HCIL.Piccolo.PNode) 
GlobalBounds (inherited from UMD.HCIL.Piccolo.PNode) 
GlobalFullBounds (inherited from UMD.HCIL.Piccolo.PNode) 
GlobalRotation (inherited from UMD.HCIL.Piccolo.PNode) 
GlobalScale (inherited from UMD.HCIL.Piccolo.PNode) 
GlobalToLocalMatrix (inherited from UMD.HCIL.Piccolo.PNode) 
GlobalTranslation (inherited from UMD.HCIL.Piccolo.PNode) 
HandlerList (inherited from UMD.HCIL.Piccolo.PNode) 
Height (inherited from UMD.HCIL.Piccolo.PNode) 
Id Gets the Id of the current road.
InverseMatrix (inherited from UMD.HCIL.Piccolo.PNode) 
IsOneWay Determines if the road is a one way road.
Item (inherited from UMD.HCIL.Piccolo.PNode) 
Lanes Returns the number of lanes belonging to this road.
Length Gets or sets the length in pixels of the current road.
LengthInPixels Gets the length of the current road in blocks.
LocalToGlobalMatrix (inherited from UMD.HCIL.Piccolo.PNode) 
Matrix (inherited from UMD.HCIL.Piccolo.PNode) 
MatrixReference (inherited from UMD.HCIL.Piccolo.PNode) 
MaxSpeed Gets or sets the maximum allowed speed on the current road.
Occluded (inherited from UMD.HCIL.Piccolo.PNode) 
Offset (inherited from UMD.HCIL.Piccolo.PNode) 
OffsetX (inherited from UMD.HCIL.Piccolo.PNode) 
OffsetY (inherited from UMD.HCIL.Piccolo.PNode) 
PaintInvalid (inherited from UMD.HCIL.Piccolo.PNode) 
Parent (inherited from UMD.HCIL.Piccolo.PNode) 
Pickable (inherited from UMD.HCIL.Piccolo.PNode) 
PropertyChangeParentMask (inherited from UMD.HCIL.Piccolo.PNode) 
RoadType Gets or sets the roads road type
Root (inherited from UMD.HCIL.Piccolo.PNode) 
Rotation (inherited from UMD.HCIL.Piccolo.PNode) 
Scale (inherited from UMD.HCIL.Piccolo.PNode) 
Tag (inherited from UMD.HCIL.Piccolo.PNode) 
UnionOfChildrenBounds (inherited from UMD.HCIL.Piccolo.PNode) 
Visible (inherited from UMD.HCIL.Piccolo.PNode) 
Width (inherited from UMD.HCIL.Piccolo.PNode) 
X (inherited from UMD.HCIL.Piccolo.PNode) 
Y (inherited from UMD.HCIL.Piccolo.PNode) 

Public Instance Methods

AddActivity (inherited from UMD.HCIL.Piccolo.PNode) 
AddChild (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
AddChildren (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
AddInputEventListener (inherited from UMD.HCIL.Piccolo.PNode) 
AddSideObject Adds a side object tot the collection of side objects for the specified side of the road.
AnimateMatrixToBounds (inherited from UMD.HCIL.Piccolo.PNode) 
AnimateToBounds (inherited from UMD.HCIL.Piccolo.PNode) 
AnimateToColor (inherited from UMD.HCIL.Piccolo.PNode) 
AnimateToMatrix (inherited from UMD.HCIL.Piccolo.PNode) 
AnimateToPositionScaleRotation (inherited from UMD.HCIL.Piccolo.PNode) 
CenterBoundsOnPoint (inherited from UMD.HCIL.Piccolo.PNode) 
CenterFullBoundsOnPoint (inherited from UMD.HCIL.Piccolo.PNode) 
Clone (inherited from UMD.HCIL.Piccolo.PNode) 
ComputeFullBounds (inherited from UMD.HCIL.Piccolo.PNode) 
CreateSurface Creates the 'tarmac' portion of the road on which vehicles drive.
DrawBetaSideObjects Draws the side objects next to the road.
DrawDirection Draws the lane direction onto the surface of the road.
DrawSideObjects Draws the side objects next to the road.
EndResizeBounds (inherited from UMD.HCIL.Piccolo.PNode) 
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FindIntersectingNodes (inherited from UMD.HCIL.Piccolo.PNode) 
FullIntersects (inherited from UMD.HCIL.Piccolo.PNode) 
FullPaint (inherited from UMD.HCIL.Piccolo.PNode) 
FullPick (inherited from UMD.HCIL.Piccolo.PNode) 
GetAllNodes (inherited from UMD.HCIL.Piccolo.PNode) 
GetAlphaDirections Gets the collections of directions possible at the next (alpha) intersection.
GetBetaDirections Gets the collections of directions possible at the next (beta) intersection.
GetChild (inherited from UMD.HCIL.Piccolo.PNode) 
GetCornerOf Gets the corner of certain lane on the intersection.
GetDestinationOf Gets the intersection that is the destination of a specified lane.
GetDirectionOfLanesLeadingTo Get possible set of valid direction of the lanes leading to the specified intersection.
GetEnumerator (inherited from UMD.HCIL.Piccolo.PNode) 
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetLanesLeadingFrom Gets the collection of lanes leading from the specified intersection.
GetLanesLeadingTo Gets the collection of lanes leading to the specified intersection.
GetLaneToLeft Gets the lane that is left of the current lane on the same direction.
GetLaneToRight Gets the lane that is right of the current lane on the same direction.
GetObjectData Populates the provided SerializationInfo with the data needed to serialize the object.
GetOffset Calculates the offset of the outer line of a road at its intersection starting/ending point.
GetOriginOf Gets the intersection that is the origin of a specified lane.
GetRoadPositionAt Gets the roads position at the specified intersection.
GetSideObjectAtCell Gets the side object at the specified cell.
GetType (inherited from Object)Gets the Type of the current instance.
GlobalToLocal (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
IndexOfChild (inherited from UMD.HCIL.Piccolo.PNode) 
Initialize Initializes the variables needed for the rendering of the road.
Intersects Determines if the current road intersects with the specified bounds.
InvalidateFullBounds (inherited from UMD.HCIL.Piccolo.PNode) 
InvalidateLayout (inherited from UMD.HCIL.Piccolo.PNode) 
InvalidatePaint (inherited from UMD.HCIL.Piccolo.PNode) 
IsAncestorOf (inherited from UMD.HCIL.Piccolo.PNode) 
IsConnectedTo Determines if the road is connected to the specified intersection.
IsDescendentOf (inherited from UMD.HCIL.Piccolo.PNode) 
IsDescendentOfRoot (inherited from UMD.HCIL.Piccolo.PNode) 
IsOpaque (inherited from UMD.HCIL.Piccolo.PNode) 
LayoutChildren (inherited from UMD.HCIL.Piccolo.PNode) 
LocalToGlobal (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
LocalToParent (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
MoveInBackOf (inherited from UMD.HCIL.Piccolo.PNode) 
MoveInFrontOf (inherited from UMD.HCIL.Piccolo.PNode) 
MoveToBack (inherited from UMD.HCIL.Piccolo.PNode) 
MoveToFront (inherited from UMD.HCIL.Piccolo.PNode) 
OffsetBy (inherited from UMD.HCIL.Piccolo.PNode) 
OnClick (inherited from UMD.HCIL.Piccolo.PNode) 
OnDoubleClick (inherited from UMD.HCIL.Piccolo.PNode) 
OnDragDrop (inherited from UMD.HCIL.Piccolo.PNode) 
OnDragEnter (inherited from UMD.HCIL.Piccolo.PNode) 
OnDragLeave (inherited from UMD.HCIL.Piccolo.PNode) 
OnDragOver (inherited from UMD.HCIL.Piccolo.PNode) 
OnGotFocus (inherited from UMD.HCIL.Piccolo.PNode) 
OnKeyDown (inherited from UMD.HCIL.Piccolo.PNode) 
OnKeyPress (inherited from UMD.HCIL.Piccolo.PNode) 
OnKeyUp (inherited from UMD.HCIL.Piccolo.PNode) 
OnLostFocus (inherited from UMD.HCIL.Piccolo.PNode) 
OnMouseDown (inherited from UMD.HCIL.Piccolo.PNode) 
OnMouseDrag (inherited from UMD.HCIL.Piccolo.PNode) 
OnMouseEnter (inherited from UMD.HCIL.Piccolo.PNode) 
OnMouseLeave (inherited from UMD.HCIL.Piccolo.PNode) 
OnMouseMove (inherited from UMD.HCIL.Piccolo.PNode) 
OnMouseUp (inherited from UMD.HCIL.Piccolo.PNode) 
OnMouseWheel (inherited from UMD.HCIL.Piccolo.PNode) 
OppositeOf Retrieves the opposite intersection of the one specified.
ParentBoundsChanged (inherited from UMD.HCIL.Piccolo.PNode) 
ParentToLocal (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
Position (inherited from UMD.HCIL.Piccolo.PNode) 
Print (inherited from UMD.HCIL.Piccolo.PNode) 
RemoveAllChildren (inherited from UMD.HCIL.Piccolo.PNode) 
RemoveChild (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
RemoveChildren (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
RemoveFromParent (inherited from UMD.HCIL.Piccolo.PNode) 
RemoveInputEventListener (inherited from UMD.HCIL.Piccolo.PNode) 
RemoveSideObject Removes the specified side object from the collection of the specified side of the road.
Repaint (inherited from UMD.HCIL.Piccolo.PNode) 
RepaintFrom (inherited from UMD.HCIL.Piccolo.PNode) 
Reparent (inherited from UMD.HCIL.Piccolo.PNode) 
ReplaceWith (inherited from UMD.HCIL.Piccolo.PNode) 
Reset Reverts the road to is post-constructor state.
ResetBounds (inherited from UMD.HCIL.Piccolo.PNode) 
RotateBy (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
RotateInPlace (inherited from UMD.HCIL.Piccolo.PNode) 
ScaleBy (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
SetBounds (inherited from UMD.HCIL.Piccolo.PNode) 
SetOffset (inherited from UMD.HCIL.Piccolo.PNode) 
SignalBoundsChanged (inherited from UMD.HCIL.Piccolo.PNode) 
StartResizeBounds (inherited from UMD.HCIL.Piccolo.PNode) 
ToImage (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
ToPickPath (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
ToString (inherited from UMD.HCIL.Piccolo.PNode) 
TransformBy (inherited from UMD.HCIL.Piccolo.PNode) 
TranslateBy (inherited from UMD.HCIL.Piccolo.PNode) 
ValidateFullPaint (inherited from UMD.HCIL.Piccolo.PNode) 

Public Instance Events

BoundsChanged (inherited from UMD.HCIL.Piccolo.PNode) 
BrushChanged (inherited from UMD.HCIL.Piccolo.PNode) 
ChildrenChanged (inherited from UMD.HCIL.Piccolo.PNode) 
ChildrenPickableChanged (inherited from UMD.HCIL.Piccolo.PNode) 
Click (inherited from UMD.HCIL.Piccolo.PNode) 
DoubleClick (inherited from UMD.HCIL.Piccolo.PNode) 
DragDrop (inherited from UMD.HCIL.Piccolo.PNode) 
DragEnter (inherited from UMD.HCIL.Piccolo.PNode) 
DragLeave (inherited from UMD.HCIL.Piccolo.PNode) 
DragOver (inherited from UMD.HCIL.Piccolo.PNode) 
FullBoundsChanged (inherited from UMD.HCIL.Piccolo.PNode) 
GotFocus (inherited from UMD.HCIL.Piccolo.PNode) 
KeyDown (inherited from UMD.HCIL.Piccolo.PNode) 
KeyPress (inherited from UMD.HCIL.Piccolo.PNode) 
KeyUp (inherited from UMD.HCIL.Piccolo.PNode) 
LostFocus (inherited from UMD.HCIL.Piccolo.PNode) 
MouseDown (inherited from UMD.HCIL.Piccolo.PNode) 
MouseDrag (inherited from UMD.HCIL.Piccolo.PNode) 
MouseEnter (inherited from UMD.HCIL.Piccolo.PNode) 
MouseLeave (inherited from UMD.HCIL.Piccolo.PNode) 
MouseMove (inherited from UMD.HCIL.Piccolo.PNode) 
MouseUp (inherited from UMD.HCIL.Piccolo.PNode) 
MouseWheel (inherited from UMD.HCIL.Piccolo.PNode) 
ParentChanged (inherited from UMD.HCIL.Piccolo.PNode) 
PickableChanged (inherited from UMD.HCIL.Piccolo.PNode) 
TagChanged (inherited from UMD.HCIL.Piccolo.PNode) 
TransformChanged (inherited from UMD.HCIL.Piccolo.PNode) 
VisibleChanged (inherited from UMD.HCIL.Piccolo.PNode) 

Protected Instance Fields

_Alpha The alpha intersection of the current road.
_AlphaLanes The collection of lanes that lead from alpha to beta.
_AlphaPosition The road postion of the road at the alpha intersection.
_AlphaSideObjects The collection of side objects along the lanes from alpha to beta.
_Beta The beta intersection of the current road.
_BetaLanes The collection of lanes that lead from beta to alpha
_BetaPosition The road position of the road at the beta intersection.
_BetaSideObjects The collection of side objects along the lanes from beta to alpha.
_Blocks The block positions on the current road.
_CenterLine The collection of points that form the centerline of the road.
_Id The Id number of the current road.
_Length The length of the road in blocks.
_LengthInPixels The length of the road in pixels.
_MaxSpeed The maximum speed allowed on the current road.
_RoadType The road type of the current road.
bounds (inherited from UMD.HCIL.Piccolo.PNode) 

Protected Instance Properties

BoundsModified (inherited from UMD.HCIL.Piccolo.PNode) 
BoundsVolatile (inherited from UMD.HCIL.Piccolo.PNode) 
ChildBoundsInvalid (inherited from UMD.HCIL.Piccolo.PNode) 
ChildBoundsVolatile (inherited from UMD.HCIL.Piccolo.PNode) 
FullBoundsInvalid (inherited from UMD.HCIL.Piccolo.PNode) 
ParamString (inherited from UMD.HCIL.Piccolo.PNode) 

Protected Instance Methods

AddChildren (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FireChildPropertyChangedEvent (inherited from UMD.HCIL.Piccolo.PNode) 
FirePropertyChangedEvent (inherited from UMD.HCIL.Piccolo.PNode) 
GetPropertyHandlers (inherited from UMD.HCIL.Piccolo.PNode) 
HandleEvent (inherited from UMD.HCIL.Piccolo.PNode) 
InternalUpdateBounds (inherited from UMD.HCIL.Piccolo.PNode) 
LaneOffset Calculates the offset position of a driving lane on the basis of the center lane.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnDeserialized Executes once the serialization process is completed.
OnFullBoundsInvalidated (inherited from UMD.HCIL.Piccolo.PNode) 
OnPaintInvalidated (inherited from UMD.HCIL.Piccolo.PNode) 
Paint Paints the road onto screen.
PaintAfterChildren (inherited from UMD.HCIL.Piccolo.PNode) 
PaintAlphaVehiclesOnLane 
PaintBetaVehiclesOnLane 
Pick (inherited from UMD.HCIL.Piccolo.PNode) 
PickAfterChildren (inherited from UMD.HCIL.Piccolo.PNode) 
printDocument_PrintPage (inherited from UMD.HCIL.Piccolo.PNode) 
RemoveChildren (inherited from UMD.HCIL.Piccolo.PNode)Overloaded.  
ScaleAndDraw (inherited from UMD.HCIL.Piccolo.PNode) 
ValidateFullBounds (inherited from UMD.HCIL.Piccolo.PNode) 

See Also

Road Class | CBPRS.Infrastructure Namespace