C# 클래스 Harvest, tf_client

상속: MonoBehaviour, IPointerClickHandler
파일 보기 프로젝트 열기: wids-eria/tf_client 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
basalArea float
cutType CutType
diameterLimit int
diameterLimitCutDirection DiameterLimitCutDirection
ids int[]
qRatio float

공개 메소드들

메소드 설명
ComputeCenterPoint ( ) : IEnumerator

Computes the center point based on the bounds of the tile positions.

ComputeTreesToBeCut ( int frequencyDistribution, float qRatioCurve, int &treesToCut, int &treesToKeep ) : void

Computes the trees to be cut.

ComputeTreesToBeCut ( int frequencyDistribution, int diameterLimit, DiameterLimitCutDirection direction, int &treesToCut, int &treesToKeep ) : void

Computes the trees to be cut.

DoIt ( ) : IEnumerator

Execute the harvest

GetDoItWWW ( ) : Request

Gets a WWW object do perform the harvest, configured for the associated api point on the server.

GetPartialSelectionCurve ( float qRatio, float basalArea ) : float[]

Gets the partial selection curve.

This method replicates the math in partial_selection_curve in tree_harvesting.rb.

Harvest ( int ids, int duration ) : UnityEngine

Initializes a new instance of the Harvest struct for a clearcut.

Harvest ( int ids, int duration, float qRatio, float targetBasalArea ) : UnityEngine

Initializes a new instance of the Harvest struct for a q ratio cut.

Harvest ( int ids, int duration, int diameterLimit, DiameterLimitCutDirection cutDirection ) : UnityEngine

Initializes a new instance of the Harvest struct for a diameter limit cut.

ToString ( ) : string

Returns a System.String that represents the current Harvest.

메소드 상세

ComputeCenterPoint() 공개 메소드

Computes the center point based on the bounds of the tile positions.
public ComputeCenterPoint ( ) : IEnumerator
리턴 IEnumerator

ComputeTreesToBeCut() 공개 정적인 메소드

Computes the trees to be cut.
public static ComputeTreesToBeCut ( int frequencyDistribution, float qRatioCurve, int &treesToCut, int &treesToKeep ) : void
frequencyDistribution int /// Frequency distribution. ///
qRatioCurve float
treesToCut int /// Trees to cut. ///
treesToKeep int /// Trees to keep. ///
리턴 void

ComputeTreesToBeCut() 공개 정적인 메소드

Computes the trees to be cut.
public static ComputeTreesToBeCut ( int frequencyDistribution, int diameterLimit, DiameterLimitCutDirection direction, int &treesToCut, int &treesToKeep ) : void
frequencyDistribution int /// Frequency distribution. ///
diameterLimit int /// Diameter limit. ///
direction DiameterLimitCutDirection /// Direction of the diameter limit cut. ///
treesToCut int /// Trees to cut. ///
treesToKeep int /// Trees to keep. ///
리턴 void

DoIt() 공개 메소드

Execute the harvest
public DoIt ( ) : IEnumerator
리턴 IEnumerator

GetDoItWWW() 공개 메소드

Gets a WWW object do perform the harvest, configured for the associated api point on the server.
public GetDoItWWW ( ) : Request
리턴 HTTP.Request

GetPartialSelectionCurve() 공개 정적인 메소드

Gets the partial selection curve.
This method replicates the math in partial_selection_curve in tree_harvesting.rb.
public static GetPartialSelectionCurve ( float qRatio, float basalArea ) : float[]
qRatio float /// Q ratio. ///
basalArea float /// Basal area. ///
리턴 float[]

Harvest() 공개 메소드

Initializes a new instance of the Harvest struct for a clearcut.
public Harvest ( int ids, int duration ) : UnityEngine
ids int /// Identifiers. ///
duration int /// Duration. ///
리턴 UnityEngine

Harvest() 공개 메소드

Initializes a new instance of the Harvest struct for a q ratio cut.
public Harvest ( int ids, int duration, float qRatio, float targetBasalArea ) : UnityEngine
ids int /// Identifiers. ///
duration int /// Duration. ///
qRatio float /// Q ratio. ///
targetBasalArea float /// Target basal area. ///
리턴 UnityEngine

Harvest() 공개 메소드

Initializes a new instance of the Harvest struct for a diameter limit cut.
public Harvest ( int ids, int duration, int diameterLimit, DiameterLimitCutDirection cutDirection ) : UnityEngine
ids int /// Identifiers. ///
duration int /// Duration. ///
diameterLimit int /// Diameter limit. ///
cutDirection DiameterLimitCutDirection /// Cut direction. ///
리턴 UnityEngine

ToString() 공개 메소드

Returns a System.String that represents the current Harvest.
public ToString ( ) : string
리턴 string

프로퍼티 상세

basalArea 공개적으로 프로퍼티

The basal area, if applicable.
public float basalArea
리턴 float

cutType 공개적으로 프로퍼티

The type of the cut.
public CutType cutType
리턴 CutType

diameterLimit 공개적으로 프로퍼티

The diameter limit, if applicable.
public int diameterLimit
리턴 int

diameterLimitCutDirection 공개적으로 프로퍼티

The diameter limit cut direction, if applicable.
public DiameterLimitCutDirection diameterLimitCutDirection
리턴 DiameterLimitCutDirection

ids 공개적으로 프로퍼티

The identifiers of the tiles included in the harvest.
public int[] ids
리턴 int[]

qRatio 공개적으로 프로퍼티

The q ratio, if applicable.
public float qRatio
리턴 float