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

java.lang.Object
  拡張jp.co.melco.preserv.spatial.geometry.model.psvPatchesSurfaceModel
すべての実装インタフェース:
psvGMPolygonSurfaceModel, psvGMSurfacePolygonStructure, java.io.Serializable

public class psvPatchesSurfaceModel
extends java.lang.Object
implements psvGMPolygonSurfaceModel

曲面列曲面モデル

説明: 曲面列曲面モデルです。
JPGIS構造そのままの、曲面列を扱う曲面モデルです。
psvGMSurfaceのコンストラクタにpsvGMSurfacePatch[]を指定した時と同じ内容の処理を行います。

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

コンストラクタの概要
psvPatchesSurfaceModel(psvGMSurfacePatch[] patch)
          指定された曲面分を持つ曲面を生成します。
 
メソッドの概要
protected  boolean containsPatch(psvGMSurfacePatch otherPatch)
          曲面分の一覧に指定された曲面分が含まれるか否かを判定します。
 java.awt.Shape createShape()
          このモデルのawt Shape表現を作成して返します。
 void fixed()
          編集が確定したことを通知します。
 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()
          曲面分の一覧を取得します。
 boolean isModified()
          編集が行われたか否かを取得します。
 java.lang.String paramString()
          保持する属性値の文字列表現を取得します。
 java.awt.Shape toShape()
          このモデルのawt Shape表現を返します。
 void translate(double dx, double dy)
          現在の座標値を指定された移動量だけ移動します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

psvPatchesSurfaceModel

public psvPatchesSurfaceModel(psvGMSurfacePatch[] patch)
指定された曲面分を持つ曲面を生成します。
内部的には setPatch(psvGMSurfacePatch[]) を呼び出します。

パラメータ:
patch - 曲面分
メソッドの詳細

getPatches

public psvGMSurfacePatch[] getPatches()
曲面分の一覧を取得します。
未設定の場合は null を返します。

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

createShape

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

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

toShape

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

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

containsPatch

protected boolean containsPatch(psvGMSurfacePatch otherPatch)
曲面分の一覧に指定された曲面分が含まれるか否かを判定します。

パラメータ:
otherPatch - 曲面分
戻り値:
含まれる場合はtrue、含まれない場合はfalse

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で指定した有向曲線