C# 클래스 SANTA.Controller.Master

The Master controller class which controls all flow in the SANTA system.
파일 보기 프로젝트 열기: siegleal/iSanta 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_configReader SANTA.IO.ConfigReader
_fileNames String[]
_imageData Datatype.ImageData[]
_stats Datatype.Stats[]

공개 메소드들

메소드 설명
AddCaliberUnit ( Datatype caliberUnit ) : void

See IO.AddCaliberUnit().

AddWeaponName ( String weaponName ) : void

See IO.AddWeaponName().

GenerateReport ( int index, String reportPath ) : void

Generates an Excel report of the image data.

GetCaliberUnits ( ) : List

See IO.GetCaliberUnits().

GetDiameterInPixels ( int index ) : int

Returns the diameter of a bullet hole in pixels.

GetFileNames ( ) : String[]

Returns the list of filenames being processed.

GetImageData ( int index ) : Datatype.ImageData

Returns the image data for a particular image.

GetNumberOfImages ( ) : int

Returns the number of images to be processed.

GetWeaponNames ( ) : List

See IO.GetWeaponNames().

LoadData ( List targetIDs ) : String>.Dictionary

Loads the list of TargetIDs from the database.

Master ( ) : System

Constructs a Master object by initializing the ConfigReader and the UIController.

ProcessImage ( int index, Datatype partialImageData ) : IList

Processes the given image and returns a list of potential bullet holes.

SaveData ( int index ) : int

Saves the image data for a particular image.

SetFileNames ( String fileNames ) : void

Sets the filenames to the array of input filenames.

SetPoints ( int index, List points ) : void

Sets the point coordinates of bullet holes for an image.

setImageData ( int index, Datatype imageData ) : void

Sets the image data at a particular index.

보호된 메소드들

메소드 설명
CheckStats ( int index ) : void

Checks to see if the statistics for an image are current and updates them if necessary.

비공개 메소드들

메소드 설명
GetConfigReader ( ) : ConfigReader

Returns the local ConfigReader object.

메소드 상세

AddCaliberUnit() 공개 메소드

See IO.AddCaliberUnit().
public AddCaliberUnit ( Datatype caliberUnit ) : void
caliberUnit Datatype
리턴 void

AddWeaponName() 공개 메소드

See IO.AddWeaponName().
public AddWeaponName ( String weaponName ) : void
weaponName String
리턴 void

CheckStats() 보호된 메소드

Checks to see if the statistics for an image are current and updates them if necessary.
protected CheckStats ( int index ) : void
index int The index of the image.
리턴 void

GenerateReport() 공개 메소드

Generates an Excel report of the image data.
public GenerateReport ( int index, String reportPath ) : void
index int The index of the image.
reportPath String The filepath to save the report.
리턴 void

GetCaliberUnits() 공개 메소드

See IO.GetCaliberUnits().
public GetCaliberUnits ( ) : List
리턴 List

GetDiameterInPixels() 공개 메소드

Returns the diameter of a bullet hole in pixels.
public GetDiameterInPixels ( int index ) : int
index int The index of the image.
리턴 int

GetFileNames() 공개 메소드

Returns the list of filenames being processed.
public GetFileNames ( ) : String[]
리턴 String[]

GetImageData() 공개 메소드

Returns the image data for a particular image.
public GetImageData ( int index ) : Datatype.ImageData
index int The index of the image for which to return data.
리턴 Datatype.ImageData

GetNumberOfImages() 공개 메소드

Returns the number of images to be processed.
public GetNumberOfImages ( ) : int
리턴 int

GetWeaponNames() 공개 메소드

See IO.GetWeaponNames().
public GetWeaponNames ( ) : List
리턴 List

LoadData() 공개 메소드

Loads the list of TargetIDs from the database.
The list of targetIDs is empty.
public LoadData ( List targetIDs ) : String>.Dictionary
targetIDs List The list of TargetIDs to load.
리턴 String>.Dictionary

Master() 공개 메소드

Constructs a Master object by initializing the ConfigReader and the UIController.
public Master ( ) : System
리턴 System

ProcessImage() 공개 메소드

Processes the given image and returns a list of potential bullet holes.
Thrown if there is a problem with the file, region of interest, /// caliber, or scale.
public ProcessImage ( int index, Datatype partialImageData ) : IList
index int The index of the image to process.
partialImageData Datatype The partial image data specifically containing the filename, number of shots /// fired, caliber information, scaling information, and region of interest.
리턴 IList

SaveData() 공개 메소드

Saves the image data for a particular image.
public SaveData ( int index ) : int
index int The index of the image to save.
리턴 int

SetFileNames() 공개 메소드

Sets the filenames to the array of input filenames.
public SetFileNames ( String fileNames ) : void
fileNames String The filenames of the target images.
리턴 void

SetPoints() 공개 메소드

Sets the point coordinates of bullet holes for an image.
public SetPoints ( int index, List points ) : void
index int The index of the image.
points List The point coordinates of the bullet holes.
리턴 void

setImageData() 공개 메소드

Sets the image data at a particular index.
public setImageData ( int index, Datatype imageData ) : void
index int The index at which to set to image data.
imageData Datatype The image data to set.
리턴 void

프로퍼티 상세

_configReader 보호되어 있는 프로퍼티

The ConfigReader for the configuration file.
protected ConfigReader,SANTA.IO _configReader
리턴 SANTA.IO.ConfigReader

_fileNames 보호되어 있는 프로퍼티

The array of filenames being processed.
protected String[] _fileNames
리턴 String[]

_imageData 보호되어 있는 프로퍼티

The array of image data for each image being processed.
protected Datatype.ImageData[] _imageData
리턴 Datatype.ImageData[]

_stats 보호되어 있는 프로퍼티

The array of statistical information for each image being processed.
protected Datatype.Stats[] _stats
리턴 Datatype.Stats[]