jp.co.melco.preserv.spatial.geometry.model
クラス psvExteriorSurfaceModel

java.lang.Object
  拡張jp.co.melco.preserv.spatial.geometry.model.psvExteriorSurfaceModel
すべての実装インタフェース:
psvGMPolygonSurfaceModel, psvGMSurfacePolygonStructure, java.io.Serializable
直系の既知のサブクラス:
psvHoledSurfaceModel

public class psvExteriorSurfaceModel
extends java.lang.Object
implements psvGMPolygonSurfaceModel

ポリゴン曲面モデル

説明: 外部境界として一つの曲線のみがある、ポリゴン形状相当の曲面モデルです。
JPGISの対応構造としては、patch(曲面分)が一つ、exterior(外部境界)が一つ、 外部境界のgenerator(有向曲線)が一つある構造モデルです。
interior(内部境界)はありません。

導入されたバージョン:
6.0
作成者:
PreSerV Development Team
著作権:
Copyright (c) 2006
会社名:
Mitsubishi Electric Corporation
関連項目:
直列化された形式

コンストラクタの概要
psvExteriorSurfaceModel(psvGMCurve exteriorCurve)
          コンストラクタです。
 
メソッドの概要
 java.awt.Shape createShape()
          このモデルのawt Shape表現を作成して返します。
 void fixed()
          編集が確定したことを通知します。
protected  psvGMCurve getExteriorCurve()
          外部境界を表す有向曲線を返します。
 psvGMOrientableCurve getExteriorGenerator(int patchIndex, int generatorIndex)
          patchIndexで指定したpatchの外部境界の持つ、 generator(有向曲線)をgeneratorIndexを指定して返します。
 int getExteriorGeneratorCount(int patchIndex)
          patchIndexで指定したpatchの、exterior(外部境界)が持つ generator(有向曲線)の数を返します。
 int getInteriorCount(int patchIndex)
          patchIndexで指定したpatchのinterior(内部境界)の数を返します。
 psvGMOrientableCurve getInteriorGenerator(int patchIndex, int interiorIndex, int generatorIndex)
          patchIndexで指定したpatchが持つ、itenriorIndexで指定した内部境界の、 generator(有向曲線)をgeneratorIndexを指定して返します。
 int getInteriorGeneratorCount(int patchIndex, int interiorIndex)
          patchIndexで指定したpatchの、interior(内部境界)の数を返します。
 int getPatchCount()
          patch(曲面分)の数を返します。
 psvGMSurfacePatch[] getPatches()
          patch(曲面分)の一覧を取得します。
 boolean isModified()
          編集が行われたか否かを取得します。
 java.lang.String paramString()
          保持する属性値の文字列表現を取得します。
 java.awt.Shape toShape()
          本クラスのShape表現を返します。
 void translate(double dx, double dy)
          現在の座標値を指定された移動量だけ移動します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

psvExteriorSurfaceModel

public psvExteriorSurfaceModel(psvGMCurve exteriorCurve)
コンストラクタです。

パラメータ:
exteriorCurve - 外部境界を表す有向曲線
例外:
java.lang.IllegalArgumentException - 外部境界にnullを設定した場合
メソッドの詳細

getExteriorCurve

protected psvGMCurve getExteriorCurve()
外部境界を表す有向曲線を返します。

戻り値:
外部境界を表す有向曲線

getPatches

public psvGMSurfacePatch[] getPatches()
インタフェース psvGMPolygonSurfaceModel の記述:
patch(曲面分)の一覧を取得します。
未設定の場合は null を返します。 構造を簡易化し、patchを持たないモデルの場合は、対応構造のpatch生成を行います。

定義:
インタフェース psvGMPolygonSurfaceModel 内の getPatches
戻り値:
曲面分の一覧

createShape

public java.awt.Shape createShape()
インタフェース psvGMPolygonSurfaceModel の記述:
このモデルのawt Shape表現を作成して返します。
この戻り値であるShapeに何らかの変更を加えた場合、動作の保障はありません。
参照のみを行って下さい。

定義:
インタフェース psvGMPolygonSurfaceModel 内の createShape
戻り値:
モデルのawt Shape表現

toShape

public java.awt.Shape toShape()
本クラスのShape表現を返します。
本クラスではShapeをキャッシュしません、都度作成します。

定義:
インタフェース psvGMPolygonSurfaceModel 内の toShape
戻り値:
本クラスのShape表現

paramString

public java.lang.String paramString()
インタフェース psvGMPolygonSurfaceModel の記述:
保持する属性値の文字列表現を取得します。

定義:
インタフェース psvGMPolygonSurfaceModel 内の paramString
戻り値:
属性値の文字列表現

translate

public void translate(double dx,
                      double dy)
インタフェース psvGMPolygonSurfaceModel の記述:
現在の座標値を指定された移動量だけ移動します。

定義:
インタフェース psvGMPolygonSurfaceModel 内の translate
パラメータ:
dx - X軸方向の移動量
dy - Y軸方向の移動量

fixed

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の fixed

isModified

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の isModified
戻り値:
編集が行われた場合はtrue、それ以外の場合はfalse

getPatchCount

public int getPatchCount()
インタフェース psvGMSurfacePolygonStructure の記述:
patch(曲面分)の数を返します。

定義:
インタフェース psvGMSurfacePolygonStructure 内の getPatchCount
戻り値:
patchの数を返します。

getInteriorCount

public int getInteriorCount(int patchIndex)
インタフェース psvGMSurfacePolygonStructure の記述:
patchIndexで指定したpatchのinterior(内部境界)の数を返します。

定義:
インタフェース psvGMSurfacePolygonStructure 内の getInteriorCount
パラメータ:
patchIndex - 何番目のパッチかを指定
戻り値:
指定パッチの内部境界数

getExteriorGeneratorCount

public int getExteriorGeneratorCount(int patchIndex)
インタフェース psvGMSurfacePolygonStructure の記述:
patchIndexで指定したpatchの、exterior(外部境界)が持つ generator(有向曲線)の数を返します。

定義:
インタフェース psvGMSurfacePolygonStructure 内の getExteriorGeneratorCount
パラメータ:
patchIndex - 何番目のパッチかを指定
戻り値:
指定パッチの外部境界が持つ有向曲線数

getInteriorGeneratorCount

public int getInteriorGeneratorCount(int patchIndex,
                                     int interiorIndex)
インタフェース psvGMSurfacePolygonStructure の記述:
patchIndexで指定したpatchの、interior(内部境界)の数を返します。

定義:
インタフェース psvGMSurfacePolygonStructure 内の getInteriorGeneratorCount
パラメータ:
patchIndex - 何番目のパッチかを指定
interiorIndex - 何番目の内部境界かを指定
戻り値:
指定パッチの内部境界数

getExteriorGenerator

public psvGMOrientableCurve getExteriorGenerator(int patchIndex,
                                                 int generatorIndex)
インタフェース psvGMSurfacePolygonStructure の記述:
patchIndexで指定したpatchの外部境界の持つ、 generator(有向曲線)をgeneratorIndexを指定して返します。

定義:
インタフェース psvGMSurfacePolygonStructure 内の getExteriorGenerator
パラメータ:
patchIndex - 何番目のパッチかを指定
generatorIndex - 何番目の有向曲線かを指定
戻り値:
patchIndex,generatorIndexで指定した有向曲線

getInteriorGenerator

public psvGMOrientableCurve getInteriorGenerator(int patchIndex,
                                                 int interiorIndex,
                                                 int generatorIndex)
インタフェース psvGMSurfacePolygonStructure の記述:
patchIndexで指定したpatchが持つ、itenriorIndexで指定した内部境界の、 generator(有向曲線)をgeneratorIndexを指定して返します。

定義:
インタフェース psvGMSurfacePolygonStructure 内の getInteriorGenerator
パラメータ:
patchIndex - 何番目のパッチかを指定
interiorIndex - 何番目の内部境界かを指定
generatorIndex - 何番目の有向曲線かを指定
戻り値:
patchIndex,interiorIndex,generatorIndexで指定した有向曲線