jp.co.melco.preserv.spatial.geometry
インタフェース psvGMPointArray.GMPointArray

既知の実装クラスの一覧:
psvGMPointArray.GMPointArrayEasyImpl, psvGMPointArray.GMPointArrayImpl
含まれているインタフェース:
psvGMPointArray

public static interface psvGMPointArray.GMPointArray

psvGMPointArray実装インタフェース

説明: psvGMPointArrayの内部処理をインタフェース化したものです

導入されたバージョン:
6.0
作成者:
PreSerV Development Team
著作権:
Copyright (c) 2006
会社名:
Mitsubishi Electric Corporation

メソッドの概要
 psvGMPointArray.GMPointArray createReversePointArray()
          座標順序を逆にしたGMPointArrayを作成して返します。
 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 translate(double dx, double dy)
          現在の座標値を指定された移動量だけ移動します。
 

メソッドの詳細

getColumn

public psvGMPosition[] getColumn()
位置の配列を取得します。
未設定の場合はnullが返ります。

戻り値:
位置配列

paramString

public java.lang.String paramString()
属性値の文字列表現を取得します。

戻り値:
属性値の文字列表現

translate

public void translate(double dx,
                      double dy)
現在の座標値を指定された移動量だけ移動します。

パラメータ:
dx - X軸方向の移動量
dy - Y軸方向の移動量

modified

public void modified()
幾何属性が編集されたことを通知します。


fixed

public void fixed()
幾何属性の編集が確定したことを通知します。
本メソッドはオプション内部で使用するキャッシュ管理の仕組み上で呼び出されるAPIであり、 ユーザが呼び出すべきではありません。
ただしキャッシュに依存する幾何属性(オブジェクト)を独自に追加した場合は 本メソッドをオーバライドし、当該オブジェクトに対してfixedメソッドを呼び出す必要があります。


isModified

public boolean isModified()
幾何属性の編集が行われたか否かを取得します。
編集が行われた場合はtrue、それ以外の場合はfalseを返します。
幾何属性の編集の有無の判定は再帰的に自身の属性として設定されたオブジェクトに対しても 行います。

戻り値:
編集が行われた場合はtrue、それ以外の場合はfalse

getCoordinateCount

public int getCoordinateCount()
座標数を返します。

戻り値:
座標数

hasZCoordinate

public boolean hasZCoordinate(int coordinateIndex)
coordinateIndexで指定した座標がz座標を持つかを返します。

戻り値:
coordinateIndexで指定された座標がz座標を持つか

getCoordinateX

public double getCoordinateX(int coordinateIndex)
coordinateIndexで指定した座標のx座標を返します。

パラメータ:
coordinateIndex - 何番目の座標かを指定
戻り値:
coordinateIndexで指定された座標のx座標

getCoordinateY

public double getCoordinateY(int coordinateIndex)
coordinateIndexで指定した座標のy座標を返します。

パラメータ:
coordinateIndex - 何番目の座標かを指定
戻り値:
coordinateIndexで指定された座標のy座標

getCoordinateZ

public double getCoordinateZ(int coordinateIndex)
coordinateIndexで指定した座標のz座標を返します。
但し、z座標を持たない場合は0を返します。

パラメータ:
coordinateIndex - 何番目の座標かを指定
戻り値:
coordinateIndexで指定された座標のz座標
関連項目:
hasZCoordinate(int)

createReversePointArray

public psvGMPointArray.GMPointArray createReversePointArray()
座標順序を逆にしたGMPointArrayを作成して返します。

戻り値:
作成されたGMPointArray