Class TrackerImport
Class containing functionality related to import of trackers that is exposed in the scripting Toolbox
Namespace: Scripting
Syntax
public class TrackerImport
Methods
CalculateAverageSystemRotationFromTrackerInfos(IEnumerable<TrackerInfo>)
Calculates the average system rotation from all the specified TrackerInfo objects.
Declaration
public double CalculateAverageSystemRotationFromTrackerInfos(IEnumerable<TrackerInfo> trackerInfos)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TrackerInfo> | trackerInfos | The tracker infos. |
Returns
Type | Description |
---|---|
System.Double | The average system rotation value (in degrees). |
CalculateSystemRotationFromTrackerInfo(TrackerInfo)
Calculates the system rotation for a given TrackerInfo object.
Declaration
public double CalculateSystemRotationFromTrackerInfo(TrackerInfo trackerInfo)
Parameters
Type | Name | Description |
---|---|---|
TrackerInfo | trackerInfo | The tracker info. |
Returns
Type | Description |
---|---|
System.Double | The system rotation (in degrees). |
GenerateLayoutRegionPolygonsFromTrackerInfos(IEnumerable<TrackerInfo>, Double, Double, Double)
Generates the layout region polygons from the specified TrackerInfo objects.
Declaration
public List<List<Point>> GenerateLayoutRegionPolygonsFromTrackerInfos(IEnumerable<TrackerInfo> trackerInfos, double trackerWidth, double marginToAdd, double simplificationToleranceFactor = 1)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TrackerInfo> | trackerInfos | The tracker infos. |
System.Double | trackerWidth | Width of the tracker. |
System.Double | marginToAdd | The margin to add around each tracker quad. |
System.Double | simplificationToleranceFactor | The simplification tolerance factor (used with the simplification algorithm. Defaults to 1.0). |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.List<Point>> | The list of layout region polygons that the trackers will fit into. |
GenerateTrackerGroupsFromTrackerInfos(IEnumerable<TrackerInfo>, Double)
Generates the tracker groups from tracker infos.
Declaration
public List<TrackerGroup> GenerateTrackerGroupsFromTrackerInfos(IEnumerable<TrackerInfo> trackerInfos, double acceptableRange = 0.5)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TrackerInfo> | trackerInfos | The tracker infos. |
System.Double | acceptableRange | The acceptable range (trackers within this range of each other (in the x direction) are considered to be in the same group (row). |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TrackerGroup> |
GetMinMaxValuesFromTrackers(IEnumerable<TrackerInfo>, out Point3D, out Point3D)
Gets the minimum and maximum values from the north and south points of the trackers.
Declaration
public void GetMinMaxValuesFromTrackers(IEnumerable<TrackerInfo> trackerInfos, out Point3D minValues, out Point3D maxValues)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TrackerInfo> | trackerInfos | The trackers to consider. |
Point3D | minValues | The minimum values (X and Y are in workbook projection, Z is in metres above sea-level). |
Point3D | maxValues | The maximum values (X and Y are in workbook projection, Z is in metres above sea-level). |
OutputTrackerGroupsToLog(IEnumerable<TrackerGroup>)
Outputs the specified tracker groups to the log.
Declaration
public static void OutputTrackerGroupsToLog(IEnumerable<TrackerGroup> trackerGroups)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TrackerGroup> | trackerGroups | The tracker groups. |
OutputTrackerInfosToLog(IEnumerable<TrackerInfo>)
Outputs the specified tracker infos to the log.
Declaration
public static void OutputTrackerInfosToLog(IEnumerable<TrackerInfo> trackerInfos)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TrackerInfo> | trackerInfos | The tracker infos. |
ReadTrackerInfosFromGoogleEarthFile(String)
Reads the tracker infos from the Google Earth file (kml or kmz).
Declaration
public List<TrackerInfo> ReadTrackerInfosFromGoogleEarthFile(string googleEarthFilePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | googleEarthFilePath | The Google Earth file (kml or kmz) path. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TrackerInfo> | A list of TrackerInfo objects. |
ReadTrackerInfosFromShapeFile(String)
Reads the tracker infos from the given shape file.
Declaration
public List<TrackerInfo> ReadTrackerInfosFromShapeFile(string shapeFilePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | shapeFilePath | The shape file path. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TrackerInfo> | A list of TrackerInfo objects. |