C# Class PurplePen.CourseView

A course view is a static view of all or part of a course. It is a static snapshot, and doesn't change if the underlying course changes. It also handles subsetting for map exchanges, relay variations, the all controls view, etc. It is the basis for control descriptions and the course drawing.
Mostra file Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
CreateControlsOnlyPositioningCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
CreateFilteredAllControlsView ( EventDB eventDB, CourseDesignator excludedCourses, ControlPointKind kindFilter, bool addSpecials, bool addDescription ) : CourseView
CreatePositioningCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
CreatePrintingCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
CreateViewingCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
GetNextControl ( int controlIndex ) : int
GetPrevControl ( int controlIndex ) : int
GetViewBounds ( ) : RectangleF

Private Methods

Method Description
AddSpecials ( CourseDesignator courseDesignator, bool addNonDescriptionSpecials, bool addDescriptionSpecials ) : void
AllCourseVariations ( Id courseId ) : List
ComputeStatistics ( ) : void
CourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : System
CreateAllControlsView ( EventDB eventDB ) : CourseView
CreateAllVariationsCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
CreateCourseView ( EventDB eventDB, CourseDesignator courseDesignator, bool addNonDescriptionSpecials, bool addDescriptionSpecials ) : CourseView
CreateScoreCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
CreateStandardCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
Finish ( ) : void
GetScales ( ) : void
ShouldAddSpecial ( SpecialKind kind, bool addNonDescriptionSpecials, bool addDescriptionSpecials ) : bool
UpdateLegToIndices ( ) : void

Method Details

CreateControlsOnlyPositioningCourseView() public static method

public static CreateControlsOnlyPositioningCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
eventDB EventDB
courseDesignator CourseDesignator
return CourseView

CreateFilteredAllControlsView() public static method

public static CreateFilteredAllControlsView ( EventDB eventDB, CourseDesignator excludedCourses, ControlPointKind kindFilter, bool addSpecials, bool addDescription ) : CourseView
eventDB EventDB
excludedCourses CourseDesignator
kindFilter ControlPointKind
addSpecials bool
addDescription bool
return CourseView

CreatePositioningCourseView() public static method

public static CreatePositioningCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
eventDB EventDB
courseDesignator CourseDesignator
return CourseView

CreatePrintingCourseView() public static method

public static CreatePrintingCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
eventDB EventDB
courseDesignator CourseDesignator
return CourseView

CreateViewingCourseView() public static method

public static CreateViewingCourseView ( EventDB eventDB, CourseDesignator courseDesignator ) : CourseView
eventDB EventDB
courseDesignator CourseDesignator
return CourseView

GetNextControl() public method

public GetNextControl ( int controlIndex ) : int
controlIndex int
return int

GetPrevControl() public method

public GetPrevControl ( int controlIndex ) : int
controlIndex int
return int

GetViewBounds() public method

public GetViewBounds ( ) : RectangleF
return System.Drawing.RectangleF