|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.aist.dmrc.platform.beans.graphics.ThreeDGraphics.PFAttributeMaker
public class PFAttributeMaker
表示データの属性を生成し設定するコンポーネント。
このコンポーネントから以下のイベントが発生します。
トリガ | 対象データ |
---|---|
属性を設定した(setAttribute) | 表示データを要素とするPFObjectList |
トリガ | 対象データ | 更新データ |
---|---|---|
属性を更新した(updateAttribute) | null | 表示データを要素とするPFObjectList |
フィールドの概要 | |
---|---|
static int |
CULL_BACK
0: バックフェース非表示(デフォルト) |
static int |
CULL_FRONT
1: フロントフェース非表示 |
static int |
CULL_NONE
2: カリングなし |
static int |
FILL
2: 塗りつぶし(デフォルト) |
static int |
FLAT
0: フラットシェーディング(デフォルト) |
static int |
GOURAUD
1: グローシェーディング |
static int |
LINE
1: ライン表示 |
static int |
POINT
0: ポイント,ポイント表示 |
static int |
POLYGON
2: ポリゴン |
static int |
POLYLINE
1: ポリライン |
static int |
VOXEL
3: ボクセル |
コンストラクタの概要 | |
---|---|
PFAttributeMaker()
コンストラクタ |
メソッドの概要 | |
---|---|
void |
addPFDataCreateListener(PFDataCreateListener lis)
引数で与えられたイベントリスナを登録し、 データ生成イベント発生時に処理を行う対象とする。 |
void |
addPFDataUpdateListener(PFDataUpdateListener lis)
引数で与えられたイベントリスナを登録し、 データ更新イベント発生時に処理を行う対象とする。 |
int |
getComponentID()
コンポーネントIDを取得する。 |
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。 |
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを取得する。 |
java.lang.String |
getComponentName()
コンポーネント名称を取得する。 |
java.lang.String |
getComponentPublicName()
コンポーネント公開名を取得する. |
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。 |
java.lang.Object |
getObject()
表示データを取得する。 |
PFObjectList |
getObjectList()
表示データを含むPFObjectListを取得する。 |
java.util.Iterator |
getPFDataCreateListenerList()
データ生成イベントリスナ配列を取得する。 |
java.util.Iterator |
getPFDataUpdateListenerList()
データ更新イベントリスナ配列を取得する。 |
boolean |
isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する. |
void |
localeUpdated()
ロケール変更に対応する。 |
void |
readXML(PFXMLLoader in)
コンポーネントのXML入力. |
void |
removePFDataCreateListener(PFDataCreateListener lis)
引数で与えられたイベントリスナを削除し、 データ生成イベント発生時に処理を行う対象から外す。 |
void |
removePFDataUpdateListener(PFDataUpdateListener lis)
引数で与えられたイベントリスナを削除し、 データ更新イベント発生時に処理を行う対象から外す。 |
void |
setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する. |
void |
setAmbientColor(float r,
float g,
float b)
ポリゴンの環境色を設定する。 |
void |
setAttribute(java.lang.Object object)
表示データに属性を設定し、内包してデータ生成イベントを発生する。 |
void |
setAttribute(PFObjectList objectlist)
表示データに属性を設定し、内包してデータ生成イベントを発生する。 |
void |
setColor(int type,
float r,
float g,
float b)
表示データの色(ポリゴンの場合は拡散色)を設定する。 |
void |
setComponentID(int id)
コンポーネントIDを設定する。 |
void |
setComponentKey(java.lang.String key)
コンポーネントキーを設定する。 |
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。 |
void |
setComponentPublicName(java.lang.String publicName)
コンポーネント公開名を設定する. |
void |
setCullMode(int mode)
ポリゴンのカリングモードを設定する。 |
void |
setEmissiveColor(float r,
float g,
float b)
ポリゴンの発光色を設定する。 |
void |
setHighlightColor(int type,
float r,
float g,
float b)
表示データのハイライト色を設定する。 |
void |
setHighlightSize(int type,
float size)
表示データのハイライトサイズを設定する。 |
void |
setMask(int mask)
ポリラインの線種を設定する。 |
void |
setMaximumThreshold(float max)
ボクセルの物理量閾値最大値を設定する。 |
void |
setMinimumThreshold(float min)
ボクセルの物理量閾値最小値を設定する。 |
void |
setPolygonMode(int mode)
ポリゴンモードを設定する。 |
void |
setRenderingMode(int mode)
ポリゴンのレンダリングモードを設定する。 |
void |
setShininess(float shininess)
ポリゴンの輝度を設定する。 |
void |
setSize(float x,
float y,
float z)
ボクセルのサイズを設定する。 |
void |
setSize(int type,
float size)
表示データのサイズを設定する。 |
void |
setSpecularColor(float r,
float g,
float b)
ポリゴンの反射色を設定する。 |
void |
setThresholdFlag(boolean flag)
ボクセルの物理量閾値有効フラグを設定する。 |
void |
setTransparency(int type,
float transparency)
表示データの透明度を設定する。 |
void |
updateAttribute()
表示データの属性を更新し、内包してデータ更新イベントを発生する。 |
void |
updateAttribute(java.lang.Object object)
表示データの属性を更新し、内包してデータ更新イベントを発生する。 |
void |
updateAttribute(PFObjectList objectlist)
表示データの属性を更新し、内包してデータ更新イベントを発生する。 |
void |
writeXML(PFXMLGenerator out)
コンポーネントのXML出力. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int POINT
public static final int POLYLINE
public static final int POLYGON
public static final int VOXEL
public static final int CULL_BACK
public static final int CULL_FRONT
public static final int CULL_NONE
public static final int FLAT
public static final int GOURAUD
public static final int LINE
public static final int FILL
コンストラクタの詳細 |
---|
public PFAttributeMaker()
メソッドの詳細 |
---|
public java.lang.String getComponentName()
PFComponent
内の getComponentName
public java.lang.String getComponentKey()
PFComponent
内の getComponentKey
public void setComponentKey(java.lang.String key)
PFComponent
内の setComponentKey
key
- コンポーネントキー文字列public PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
PFComponent
内の getComponentID
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。
PFComponent
内の setComponentID
id
- 設定するコンポーネントIDpublic java.lang.String getComponentString()
PFComponent
内の getComponentString
public java.lang.String getComponentPublicName()
PFComponent
内の getComponentPublicName
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
PFComponent
内の setComponentPublicName
publicName
- 設定するコンポーネント公開名
PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
PFComponent
内の isAllowRemoteInvocation
public void setAllowRemoteInvocation(boolean flag)
PFComponent
内の setAllowRemoteInvocation
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
PFComponent
内の isAllowPullTransfer
public void setAllowPullTransfer(boolean flag)
PFComponent
内の setAllowPullTransfer
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
PFComponent
内の isAllowPushTransfer
public void setAllowPushTransfer(boolean flag)
PFComponent
内の setAllowPushTransfer
flag
- Push型コンポーネント転送要求に対する可否public void localeUpdated()
PFComponent
内の localeUpdated
public java.util.Iterator getPFDataCreateListenerList()
PFDataCreateEventSource
内の getPFDataCreateListenerList
public void addPFDataCreateListener(PFDataCreateListener lis)
PFDataCreateEventSource
内の addPFDataCreateListener
lis
- 追加対象イベントリスナpublic void removePFDataCreateListener(PFDataCreateListener lis)
PFDataCreateEventSource
内の removePFDataCreateListener
lis
- 削除対象イベントリスナpublic java.util.Iterator getPFDataUpdateListenerList()
PFDataUpdateEventSource
内の getPFDataUpdateListenerList
public void addPFDataUpdateListener(PFDataUpdateListener lis)
PFDataUpdateEventSource
内の addPFDataUpdateListener
lis
- 追加対象イベントリスナpublic void removePFDataUpdateListener(PFDataUpdateListener lis)
PFDataUpdateEventSource
内の removePFDataUpdateListener
lis
- 削除対象イベントリスナpublic void setColor(int type, float r, float g, float b)
type
- 表示データの種類(0:ポイント, 1:ポリライン, 2:ポリゴン)r
- 色のRed値g
- 色Green値b
- 色Blue値public void setHighlightColor(int type, float r, float g, float b)
type
- 表示データの種類(0:ポイント, 1:ポリライン, 2:ポリゴン, 3:ボクセル)r
- ハイライト色のRed値g
- ハイライト色Green値b
- ハイライト色Blue値public void setTransparency(int type, float transparency)
type
- 表示データの種類(0:ポイント, 1:ポリライン, 2:ポリゴン, 3:ボクセル)transparency
- 透明度public void setSize(int type, float size)
type
- 表示データの種類(0:ポイント, 1:ポリライン, 3:ボクセル)size
- サイズまたは幅public void setMask(int mask)
mask
- 線種(0xffff等パターンを表す16進数に対応する整数)public void setSize(float x, float y, float z)
x
- x方向の分割サイズy
- y方向の分割サイズz
- z方向の分割サイズpublic void setHighlightSize(int type, float size)
type
- 表示データの種類(0:ポイント, 1:ポリライン, 3:ボクセル)size
- サイズまたは幅public void setAmbientColor(float r, float g, float b)
r
- 環境色のRed値g
- 環境色のGreen値b
- 環境色のBlue値public void setEmissiveColor(float r, float g, float b)
r
- 発光色のRed値g
- 発光色のGreen値b
- 発光色のBlue値public void setSpecularColor(float r, float g, float b)
r
- 反射色のRed値g
- 反射色のGreen値b
- 反射色のBlue値public void setShininess(float shininess)
shininess
- 輝度public void setCullMode(int mode)
mode
- カリングモード (0:バックフェース非表示,1:フロントフェース非表示,2:カリングなし)public void setPolygonMode(int mode)
mode
- ポリゴンモード (0:ポイント表示,1:ライン表示,2:塗りつぶし)public void setRenderingMode(int mode)
mode
- レンダリングモード (0:フラットシェーディング,1:グローシェーディング)public void setMaximumThreshold(float max)
max
- 閾値最大値public void setMinimumThreshold(float min)
min
- 閾値最小値public void setThresholdFlag(boolean flag)
flag
- 有効にするならtruepublic void updateAttribute(PFObjectList objectlist) throws PFMethodException, PFRuntimeException
objectlist
- 表示データ(PFPointList,PFPolygonList,PFPolylineList,PFVoxelList)を含むPFObjectList
PFMethodException
PFRuntimeException
public void updateAttribute() throws PFMethodException, PFRuntimeException
PFMethodException
PFRuntimeException
public void setAttribute(PFObjectList objectlist) throws PFMethodException, PFRuntimeException
objectlist
- 表示データ(PFPointList,PFPolygonList,PFPolylineList,PFVoxelList)を含むPFObjectList
PFMethodException
PFRuntimeException
public void updateAttribute(java.lang.Object object) throws PFMethodException, PFRuntimeException
object
- 表示データ(PFPointList,PFPolygonList,PFPolylineList,PFVoxelList)
PFMethodException
PFRuntimeException
public void setAttribute(java.lang.Object object) throws PFMethodException, PFRuntimeException
object
- 表示データ(PFPointList,PFPolygonList,PFPolylineList,PFVoxelList)
PFMethodException
PFRuntimeException
public PFObjectList getObjectList()
public java.lang.Object getObject()
public void readXML(PFXMLLoader in)
PFXMLSerializable
内の readXML
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
PFXMLSerializable
内の writeXML
out
- XML出力ユーティリティ
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |