public class PFShapeCreator extends java.lang.Object implements PFComponent, PFDataCreateEventSource
このコンポーネントから以下のイベントが発生する。
トリガー | 生成データ | イベント番号 |
---|---|---|
点作成 メソッド呼出 |
形状要素 ( Body ) |
201 |
直線作成 メソッド呼出 |
形状要素 ( Body ) |
101 |
円弧作成 メソッド呼出 |
形状要素 ( Body ) |
102 |
NURBS曲線作成 メソッド呼出 |
形状要素 ( Body ) |
103 |
楕円弧作成 メソッド呼出 |
形状要素 ( Body ) |
104 |
円柱作成 メソッド呼出 |
形状要素 ( Body ) |
1 |
円錐作成 メソッド呼出 |
形状要素 ( Body ) |
2 |
角柱作成 メソッド呼出 |
形状要素 ( Body []) |
3 |
球作成 メソッド呼出 |
形状要素 ( Body ) |
4 |
トーラス作成 メソッド呼出 |
形状要素 ( Body ) |
5 |
掃引面作成 メソッド呼出 |
形状要素 ( Body ) |
6 |
回転面作成 メソッド呼出 |
形状要素 ( Body ) |
7 |
平面作成 メソッド呼出 |
形状要素 ( Body ) |
8 |
コンストラクタと説明 |
---|
PFShapeCreator()
デフォルトコンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addPFDataCreateListener(PFDataCreateListener lis)
引数で与えられたイベントリスナを登録し、
データ生成イベント発生時に処理を行う対象とする。
|
void |
createArc(double centerX,
double centerY,
double centerZ,
double normalX,
double normalY,
double normalZ,
double refVecX,
double refVecY,
double refVecZ,
double radius,
double startAngle,
double endAngle)
円弧を作成する
|
void |
createCone(double cod_x,
double cod_y,
double cod_z,
double vZ_x,
double vZ_y,
double vZ_z,
double vX_x,
double vX_y,
double vX_z,
double angle,
double length)
円錐台を生成する。
|
void |
createCylinder(double cod_x,
double cod_y,
double cod_z,
double vZ_x,
double vZ_y,
double vZ_z,
double vX_x,
double vX_y,
double vX_z,
double radius,
double length)
円柱を生成する。
|
void |
createEllipse(double centerX,
double centerY,
double centerZ,
double normalX,
double normalY,
double normalZ,
double refVecX,
double refVecY,
double refVecZ,
double majorRadius,
double minorRadius,
double startAngle,
double endAngle)
楕円弧を作成する
|
void |
createLine(double startX,
double startY,
double startZ,
double endX,
double endY,
double endZ)
始終点を指定して直線を生成する.
|
void |
createNurbsCurve(java.lang.Object passPoints)
通過点を指定してNURBS曲線を作成する
|
void |
createPlane(double center_x,
double center_y,
double center_z,
double normal_x,
double normal_y,
double normal_z,
double refVec_x,
double refVec_y,
double refVec_z,
double width,
double height)
平面を作成する
|
void |
createPlane(java.lang.Object refer,
double offset)
既存の平面をオフセット下平面を作成する
|
void |
createPoint(double x,
double y,
double z)
座標を指定して点を作成する.
|
void |
createSphere(double center_x,
double center_y,
double center_z,
double normal_x,
double normal_y,
double normal_z,
double refVec_x,
double refVec_y,
double refVec_z,
double radius)
球を作成する
|
void |
createSpunSurface(double center_x,
double center_y,
double center_z,
double normal_x,
double normal_y,
double normal_z,
double start_angle,
double end_angle,
java.lang.Object activated)
回転面を作成する
|
void |
createSquareColumn(double height,
double p0_x,
double p0_y,
double p0_z,
double p1_x,
double p1_y,
double p1_z,
double p2_x,
double p2_y,
double p2_z)
角柱を生成する。
|
void |
createSweptSurface(double normal_x,
double normal_y,
double normal_z,
java.lang.Object activated)
掃引面を作成する
|
void |
createTorus(double center_x,
double center_y,
double center_z,
double normal_x,
double normal_y,
double normal_z,
double refVec_x,
double refVec_y,
double refVec_z,
double majorRadius,
double minorRadius)
トーラスを作成する
|
protected void |
firePFDataCreated(PFDataCreateEvent event)
データ生成をリスナーに通知する。
|
int |
getComponentID()
コンポーネントIDを取得する。
|
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。
|
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを返す。
|
java.lang.String |
getComponentName()
コンポーネント名称を取得する。
|
java.lang.String |
getComponentPublicName()
コンポーネント公開名を取得する.
|
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。
|
java.util.Iterator |
getPFDataCreateListenerList()
データ生成イベントリスナ配列を取得する。
|
boolean |
isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する.
|
boolean |
isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する.
|
boolean |
isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する.
|
void |
localeUpdated()
ロケール変更に対応する。
|
void |
removePFDataCreateListener(PFDataCreateListener lis)
引数で与えられたイベントリスナを削除し、
データ生成イベント発生時に処理を行う対象から外す。
|
void |
setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する.
|
void |
setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する.
|
void |
setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する.
|
void |
setComponentID(int id)
コンポーネントIDを設定する。
|
void |
setComponentKey(java.lang.String key)
コンポーネントのキー情報を設定する
|
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。
|
void |
setComponentPublicName(java.lang.String publicName)
コンポーネント公開名を設定する.
|
public java.lang.String getComponentName()
getComponentName
インタフェース内 PFComponent
PFComponent.getComponentName()
public java.lang.String getComponentKey()
getComponentKey
インタフェース内 PFComponent
PFComponent.getComponentKey()
public void setComponentKey(java.lang.String key)
setComponentKey
インタフェース内 PFComponent
key
- 設定するコンポーネントのキーPFComponent.setComponentKey(java.lang.String)
public PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
getComponentID
インタフェース内 PFComponent
PFComponent.getComponentID()
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。setComponentID
インタフェース内 PFComponent
id
- 設定するコンポーネントIDPFComponent.setComponentID(int)
public java.lang.String getComponentString()
getComponentString
インタフェース内 PFComponent
PFComponent.getComponentString()
public java.lang.String getComponentPublicName()
getComponentPublicName
インタフェース内 PFComponent
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
setComponentPublicName
インタフェース内 PFComponent
publicName
- 設定するコンポーネント公開名PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
isAllowRemoteInvocation
インタフェース内 PFComponent
public void setAllowRemoteInvocation(boolean flag)
setAllowRemoteInvocation
インタフェース内 PFComponent
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
isAllowPullTransfer
インタフェース内 PFComponent
public void setAllowPullTransfer(boolean flag)
setAllowPullTransfer
インタフェース内 PFComponent
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
isAllowPushTransfer
インタフェース内 PFComponent
public void setAllowPushTransfer(boolean flag)
setAllowPushTransfer
インタフェース内 PFComponent
flag
- Push型コンポーネント転送要求に対する可否public java.util.Iterator getPFDataCreateListenerList()
getPFDataCreateListenerList
インタフェース内 PFDataCreateEventSource
public void addPFDataCreateListener(PFDataCreateListener lis)
addPFDataCreateListener
インタフェース内 PFDataCreateEventSource
lis
- 追加対象イベントリスナpublic void removePFDataCreateListener(PFDataCreateListener lis)
removePFDataCreateListener
インタフェース内 PFDataCreateEventSource
lis
- 削除対象イベントリスナprotected void firePFDataCreated(PFDataCreateEvent event)
event
- イベントpublic void localeUpdated()
localeUpdated
インタフェース内 PFComponent
PFComponent.localeUpdated()
public void createPoint(double x, double y, double z)
x
- X座標y
- Y座標z
- Z座標public void createLine(double startX, double startY, double startZ, double endX, double endY, double endZ)
startX
- 直線の始点X座標startY
- 直線の始点Y座標startZ
- 直線の始点Z座標endX
- 直線の終点X座標endY
- 直線の終点Y座標endZ
- 直線の終点Z座標public void createArc(double centerX, double centerY, double centerZ, double normalX, double normalY, double normalZ, double refVecX, double refVecY, double refVecZ, double radius, double startAngle, double endAngle)
centerX
- centerY
- centerZ
- normalX
- normalY
- normalZ
- refVecX
- refVecY
- refVecZ
- radius
- 半径startAngle
- 始点の角度(単位は「°」)endAngle
- 終点の角度(単位は「°」)public void createEllipse(double centerX, double centerY, double centerZ, double normalX, double normalY, double normalZ, double refVecX, double refVecY, double refVecZ, double majorRadius, double minorRadius, double startAngle, double endAngle)
centerX
- centerY
- centerZ
- normalX
- normalY
- normalZ
- refVecX
- refVecY
- refVecZ
- majorRadius
- 長軸半径mminorRadius
- 短軸半径startAngle
- 始点の角度(単位は「°」)endAngle
- 終点の角度(単位は「°」)public void createNurbsCurve(java.lang.Object passPoints) throws PFComponentException
passPoints
- 通過点列PFComponentException
public void createCylinder(double cod_x, double cod_y, double cod_z, double vZ_x, double vZ_y, double vZ_z, double vX_x, double vX_y, double vX_z, double radius, double length)
cod_x
- 中心のX座標cod_y
- 中心のY座標cod_z
- 中心のZ座標vZ_x
- Z軸ベクトルのX座標vZ_y
- Z軸ベクトルのY座標vZ_z
- Z軸ベクトルのZ座標vX_x
- X軸ベクトルのX座標vX_y
- X軸ベクトルのY座標vX_z
- X軸ベクトルのZ座標radius
- 半径length
- 長さpublic void createCone(double cod_x, double cod_y, double cod_z, double vZ_x, double vZ_y, double vZ_z, double vX_x, double vX_y, double vX_z, double angle, double length)
cod_x
- 中心のX座標cod_y
- 中心のY座標cod_z
- 中心のZ座標vZ_x
- Z軸ベクトルのX座標vZ_y
- Z軸ベクトルのY座標vZ_z
- Z軸ベクトルのZ座標vX_x
- X軸ベクトルのX座標vX_y
- X軸ベクトルのY座標vX_z
- X軸ベクトルのZ座標angle
- 角度length
- 長さpublic void createSquareColumn(double height, double p0_x, double p0_y, double p0_z, double p1_x, double p1_y, double p1_z, double p2_x, double p2_y, double p2_z)
height
- 高さp0_x
- 底面点1のX座標p0_y
- 底面点1のY座標p0_z
- 底面点1のZ座標p1_x
- 底面点2のX座標p1_y
- 底面点2のY座標p1_z
- 底面点2のZ座標p2_x
- 底面点3のX座標p2_y
- 底面点3のY座標p2_z
- 底面点3のZ座標public void createSphere(double center_x, double center_y, double center_z, double normal_x, double normal_y, double normal_z, double refVec_x, double refVec_y, double refVec_z, double radius)
center_x
- 中心のX座標center_y
- 中心のY座標center_z
- 中心のZ座標normal_x
- Z軸方向のX成分normal_y
- Z軸方向のY成分normal_z
- Z軸方向のZ成分refVec_x
- X軸方向のX成分refVec_y
- X軸方向のY成分refVec_z
- X軸方向のZ成分radius
- 半径public void createTorus(double center_x, double center_y, double center_z, double normal_x, double normal_y, double normal_z, double refVec_x, double refVec_y, double refVec_z, double majorRadius, double minorRadius)
center_x
- 中心のX座標center_y
- 中心のY座標center_z
- 中心のZ座標normal_x
- Z軸方向のX成分normal_y
- Z軸方向のY成分normal_z
- Z軸方向のZ成分refVec_x
- X軸方向のX成分refVec_y
- X軸方向のY成分refVec_z
- X軸方向のZ成分majorRadius
- 長半径minorRadius
- 短半径public void createSweptSurface(double normal_x, double normal_y, double normal_z, java.lang.Object activated) throws PFComponentException
normal_x
- 押し出し方向ベクトルX成分normal_y
- 押し出し方向ベクトルY成分normal_z
- 押し出し方向ベクトルZ成分activated
- スイープする曲線.最後にピックされたエッジの曲線が選ばれる.PFComponentException
public void createSpunSurface(double center_x, double center_y, double center_z, double normal_x, double normal_y, double normal_z, double start_angle, double end_angle, java.lang.Object activated) throws PFComponentException
center_x
- 回転軸の通過点X座標center_y
- 回転軸の通過点Y座標center_z
- 回転軸の通過点Z座標normal_x
- 回転軸の方向ベクトルX成分normal_y
- 回転軸の方向ベクトルY成分normal_z
- 回転軸の方向ベクトルZ成分start_angle
- 回転面の始角(単位は「°」)end_angle
- 回転面の終角(単位は「°」)activated
- スピンする曲線.最後にピックされたエッジの曲線が選ばれる.PFComponentException
public void createPlane(double center_x, double center_y, double center_z, double normal_x, double normal_y, double normal_z, double refVec_x, double refVec_y, double refVec_z, double width, double height) throws PFComponentException
center_x
- 平面の通過点X座標center_y
- 平面の通過点Y座標center_z
- 平面の通過点Z座標normal_x
- 平面の法線ベクトルX成分normal_y
- 平面の法線ベクトルY成分normal_z
- 平面の法線ベクトルZ成分refVec_x
- X軸方向のX成分refVec_y
- X軸方向のY成分refVec_z
- X軸方向のZ成分width
- 平面の幅height
- 平面の奥行きPFComponentException
public void createPlane(java.lang.Object refer, double offset) throws PFComponentException
refer
- 参照平面offset
- referからのオフセット値PFComponentException