jp.go.ipa.jgcl
クラス JgclCartesianTransformationOperator

java.lang.Object
  |
  +--jp.go.ipa.jgcl.JgclGeometry
        |
        +--jp.go.ipa.jgcl.JgclCartesianTransformationOperator
すべての実装インタフェース:
java.io.Serializable
直系の既知のサブクラス:
JgclCartesianTransformationOperator2D, JgclCartesianTransformationOperator3D

public abstract class JgclCartesianTransformationOperator
extends JgclGeometry

幾何的な変換を行なう演算子を表すクラス階層のルートとなる抽象クラス。

幾何的な変換は、平行移動、回転移動、ミラーリング、均一なスケーリング で構成される。 この変換では、変換前と変換後で任意の二点間の距離の比は一定である。

バージョン:
$Revision: 1.12 $, $Date: 2000/04/26 09:38:47 $
作成者:
Information-technology Promotion Agency, Japan
関連項目:
直列化された形式

コンストラクタの概要
protected JgclCartesianTransformationOperator(double scale)
          オブジェクトを構築する。
 
メソッドの概要
 boolean isTransformationOperator()
          幾何的な変換を行なう演算子か否かを返す。
 double reverseTransform(double length)
          与えられた値 (長さ) を、この演算子のスケーリング値で割った値を返す。
 double scale()
          この演算子のスケーリング値を返す。
 double transform(double length)
          与えられた値 (長さ) に、この演算子のスケーリング値を掛けた値を返す。
 
クラス jp.go.ipa.jgcl.JgclGeometry から継承したメソッド
dimension, getClassName, getToleranceForAngle, getToleranceForAngleAsObject, getToleranceForDistance, getToleranceForDistance2, getToleranceForDistanceAsObject, getToleranceForParameter, getToleranceForParameterAsObject, getToleranceForRealNumber, getToleranceForRealNumberAsObject, is1D, is2D, is3D, isCurve, isFreeform, isParametric, isPlacement, isPoint, isSurface, isVector, makeIndent, output, output
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JgclCartesianTransformationOperator

protected JgclCartesianTransformationOperator(double scale)
オブジェクトを構築する。

scale の値は正でなければならない。

scale の値が、現在設定されている演算条件の 距離の許容誤差以下の場合には JgclInvalidArgumentValue の例外を発生する。

パラメータ:
scale - スケーリング値
メソッドの詳細

isTransformationOperator

public boolean isTransformationOperator()
幾何的な変換を行なう演算子か否かを返す。

常に true を返す。

オーバーライド:
クラス JgclGeometry 内の isTransformationOperator
戻り値:
幾何的な変換を行なう演算子なので、常に true

scale

public double scale()
この演算子のスケーリング値を返す。

transform

public double transform(double length)
与えられた値 (長さ) に、この演算子のスケーリング値を掛けた値を返す。
パラメータ:
length - 長さ
戻り値:
スケーリングを施した長さ

reverseTransform

public double reverseTransform(double length)
与えられた値 (長さ) を、この演算子のスケーリング値で割った値を返す。
パラメータ:
length - 長さ
戻り値:
逆向きのスケーリングを施した長さ