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

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

public class psvHoledSurfaceModel
extends psvExteriorSurfaceModel

多孔ポリゴン曲面モデル

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

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

コンストラクタの概要
psvHoledSurfaceModel(psvGMCurve exteriorCurve, psvGMCurve[] interiorCurves)
          コンストラクタ
 
メソッドの概要
 java.awt.Shape createShape()
          このモデルのawt Shape表現を作成して返します。
 void fixed()
          編集が確定したことを通知します。
 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)
          現在の座標値を指定された移動量だけ移動します。
 
クラス jp.co.melco.preserv.spatial.geometry.model.psvExteriorSurfaceModel から継承したメソッド
getExteriorCurve, getExteriorGenerator
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

psvHoledSurfaceModel

public psvHoledSurfaceModel(psvGMCurve exteriorCurve,
                            psvGMCurve[] interiorCurves)
コンストラクタ

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

getPatches

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の getPatches
オーバーライド:
クラス psvExteriorSurfaceModel 内の getPatches

createShape

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の createShape
オーバーライド:
クラス psvExteriorSurfaceModel 内の createShape

toShape

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

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

paramString

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の paramString
オーバーライド:
クラス psvExteriorSurfaceModel 内の paramString

translate

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の translate
オーバーライド:
クラス psvExteriorSurfaceModel 内の translate

fixed

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の fixed
オーバーライド:
クラス psvExteriorSurfaceModel 内の fixed

isModified

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

定義:
インタフェース psvGMPolygonSurfaceModel 内の isModified
オーバーライド:
クラス psvExteriorSurfaceModel 内の isModified

getPatchCount

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

定義:
インタフェース psvGMSurfacePolygonStructure 内の getPatchCount
オーバーライド:
クラス psvExteriorSurfaceModel 内の getPatchCount

getInteriorCount

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

定義:
インタフェース psvGMSurfacePolygonStructure 内の getInteriorCount
オーバーライド:
クラス psvExteriorSurfaceModel 内の getInteriorCount

getExteriorGeneratorCount

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

定義:
インタフェース psvGMSurfacePolygonStructure 内の getExteriorGeneratorCount
オーバーライド:
クラス psvExteriorSurfaceModel 内の getExteriorGeneratorCount

getInteriorGeneratorCount

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

定義:
インタフェース psvGMSurfacePolygonStructure 内の getInteriorGeneratorCount
オーバーライド:
クラス psvExteriorSurfaceModel 内の getInteriorGeneratorCount

getInteriorGenerator

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

定義:
インタフェース psvGMSurfacePolygonStructure 内の getInteriorGenerator
オーバーライド:
クラス psvExteriorSurfaceModel 内の getInteriorGenerator