C# Класс SANTA.Controller.Master

The Master controller class which controls all flow in the SANTA system.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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[]