|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.co.melco.preserv.spatial.geometry.psvGMPointArray.GMPointArrayEasyImpl
psvGMPointArray 簡易実装クラス
説明: psvGMPointArrayの簡易実装クラスです。
全てpsvDirectPositionであり、座標以外の情報は持たないという 前提で、簡略化を行っています。
コンストラクタの概要 | |
psvGMPointArray.GMPointArrayEasyImpl()
点配列データ型を生成します。 |
|
psvGMPointArray.GMPointArrayEasyImpl(double[] xCoordinates,
double[] yCoordinates)
指定された位置の配列を保持する点配列データ型を生成します。 |
|
psvGMPointArray.GMPointArrayEasyImpl(double[] xCoordinates,
double[] yCoordinates,
double[] zCoordinates)
指定された位置の配列を保持する点配列データ型を生成します。 |
メソッドの概要 | |
protected psvGMPosition[] |
createColumn()
位置配列を作成します。 |
protected psvGMPosition[] |
createColumn2D()
2次元の位置配列を作成します。 |
protected psvGMPosition[] |
createColumn3D()
3次元の位置配列を作成します。 |
protected double[] |
createReverseArray(double[] original)
originalの逆順となる配列を作成して返します。 |
psvGMPointArray.GMPointArray |
createReversePointArray()
座標順序を逆にしたGMPointArrayを作成して返します。 |
protected void |
fillColumn(psvGMPosition[] column)
columnを本クラスの座標列として設定します。 |
void |
fixed()
幾何属性の編集が確定したことを通知します。 |
psvGMPosition[] |
getColumn()
位置の配列を取得します。 |
int |
getCoordinateCount()
座標数を返します。 |
double |
getCoordinateX(int coordinateIndex)
coordinateIndexで指定した座標のx座標を返します。 |
double |
getCoordinateY(int coordinateIndex)
coordinateIndexで指定した座標のy座標を返します。 |
double |
getCoordinateZ(int coordinateIndex)
coordinateIndexで指定した座標のz座標を返します。 |
boolean |
hasZCoordinate(int coordinateIndex)
coordinateIndexで指定した座標がz座標を持つかを返します。 |
boolean |
isModified()
幾何属性の編集が行われたか否かを取得します。 |
void |
modified()
幾何属性が編集されたことを通知します。 |
java.lang.String |
paramString()
属性値の文字列表現を取得します。 |
void |
setColumn(double[] xCoordinates,
double[] yCoordinates)
位置の配列を設定します。 |
void |
setColumn(double[] xCoordinates,
double[] yCoordinates,
double[] zCoordinates)
位置の配列を設定します。 |
java.lang.String |
toString()
オブジェクトの文字列表現を返します。 |
void |
translate(double dx,
double dy)
現在の座標値を指定された移動量だけ移動します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public psvGMPointArray.GMPointArrayEasyImpl()
public psvGMPointArray.GMPointArrayEasyImpl(double[] xCoordinates, double[] yCoordinates)
xCoordinates
- 初期化する位置のx座標配列yCoordinates
- 初期化する位置のy座標配列
java.lang.IllegalArgumentException
- 座標にnullが指定された場合public psvGMPointArray.GMPointArrayEasyImpl(double[] xCoordinates, double[] yCoordinates, double[] zCoordinates)
xCoordinates
- 初期化する位置のx座標配列yCoordinates
- 初期化する位置のy座標配列zCoordinates
- 初期化する位置のz座標配列
java.lang.IllegalArgumentException
- 座標にnullが指定された場合メソッドの詳細 |
public void setColumn(double[] xCoordinates, double[] yCoordinates)
xCoordinates
- 位置のx座標配列yCoordinates
- 位置のy座標配列
java.lang.IllegalArgumentException
- 座標にnullが指定された場合、座標数が0の場合public void setColumn(double[] xCoordinates, double[] yCoordinates, double[] zCoordinates)
xCoordinates
- 位置のx座標配列yCoordinates
- 位置のy座標配列zCoordinates
- 位置のz座標配列
java.lang.IllegalArgumentException
- 座標にnullが指定された場合、座標数が0の場合protected void fillColumn(psvGMPosition[] column)
column
- 座標配列protected psvGMPosition[] createColumn()
protected psvGMPosition[] createColumn2D()
protected psvGMPosition[] createColumn3D()
public java.lang.String toString()
Object.toString()
public java.lang.String paramString()
psvGMPointArray.GMPointArray
内の paramString
public void translate(double dx, double dy)
psvGMPointArray.GMPointArray
内の translate
dx
- X軸方向の移動量dy
- Y軸方向の移動量public void modified()
psvGMPointArray.GMPointArray
内の modified
public void fixed()
psvGMPointArray.GMPointArray
内の fixed
public boolean isModified()
true
、それ以外の場合はfalse
を返します。
psvGMPointArray.GMPointArray
内の isModified
true
、それ以外の場合はfalse
public int getCoordinateCount()
psvGMPointArray.GMPointArray
内の getCoordinateCount
public boolean hasZCoordinate(int coordinateIndex)
psvGMPointArray.GMPointArray
内の hasZCoordinate
public double getCoordinateX(int coordinateIndex)
psvGMPointArray.GMPointArray
内の getCoordinateX
coordinateIndex
- 何番目の座標かを指定
public double getCoordinateY(int coordinateIndex)
psvGMPointArray.GMPointArray
内の getCoordinateY
coordinateIndex
- 何番目の座標かを指定
public double getCoordinateZ(int coordinateIndex)
psvGMPointArray.GMPointArray
内の getCoordinateZ
coordinateIndex
- 何番目の座標かを指定
hasZCoordinate(int)
public psvGMPosition[] getColumn()
psvGMPointArray.GMPointArray
の記述:
psvGMPointArray.GMPointArray
内の getColumn
public psvGMPointArray.GMPointArray createReversePointArray()
psvGMPointArray.GMPointArray
の記述:
psvGMPointArray.GMPointArray
内の createReversePointArray
protected double[] createReverseArray(double[] original)
original
- 作成元の配列
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |