Selection クラスは 条件の設定対象となる部品や要素の選択に使用します。
Model クラスの他、 CalculationDefinition クラス、 Condition クラス、 MeshGroup クラス、 Set クラスから呼び出すことができます。
.
[詳解]
公開メンバ関数 | |
| void | Add (Selection *selection) |
| 2番目の選択を追加します。両方の選択において、同じモデルを対象とする必要があります。 | |
| void | Attach () |
| 選択箇所のハイライト機能をオンにします。 | |
| void | Clear () |
| 選択を解除します。 | |
| void | Detach () |
| 選択箇所のハイライト機能をオフにします。 | |
| int | EdgeID (int index) |
| 選択されたエッジのIDを取得します。 [詳解] | |
| int | ElementEdgeElementID (int index) |
| 選択された要素辺のIDを取得します。 [詳解] | |
| int | ElementEdgeIndex (int index) |
| 選択された要素辺のエッジのインデックスを取得します。 [詳解] | |
| int | ElementFaceElementID (int index) |
| 選択された要素面のIDを取得します。 [詳解] | |
| int | ElementFaceIndex (int index) |
| 選択された要素面の面のインデックスを取得します。 [詳解] | |
| int | ElementID (int index) |
| 選択された要素のIDを取得します。 [詳解] | |
| int | FaceID (int index) |
| 選択された面のIDを取得します。 [詳解] | |
| Part * | GetPart (int index) |
| 選択された部品のオブジェクトを取得します。 [詳解] | |
| bool | IsAttached () |
| 選択箇所のハイライト機能のオン・オフ状態を取得します。 [詳解] | |
| bool | IsValid () |
| オブジェクトが有効であるとき、戻り値として True を取得します。 [詳解] | |
| int | NodeID (int index) |
| 選択された節点のIDを取得します。 [詳解] | |
| int | NumEdges () |
| 選択されているエッジの数を、整数で取得します。 [詳解] | |
| int | NumElementEdges () |
| 選択されている要素辺の数を、整数で取得します。 [詳解] | |
| int | NumElementFaces () |
| 選択されている要素面の数を、整数で取得します。 [詳解] | |
| int | NumElements () |
| 選択されている要素の数を、整数で取得します。 [詳解] | |
| int | NumFaces () |
| 選択されている面の数を、整数で取得します。 [詳解] | |
| int | NumNodes () |
| 選択されている節点の数を、整数で取得します。 [詳解] | |
| int | NumParts () |
| 選択されている部品の数を、整数で取得します。 [詳解] | |
| int | NumVertices () |
| 選択されている頂点の数を、整数で取得します。 [詳解] | |
| int | PartID (int index) |
| 選択中の部品の中から、指定されたインデックスをもつ部品のIDを取得します。未使用のインデックスが指定された場合、-1を取得します。 [詳解] | |
| void | SelectEdge (int edgeId) |
| IDを指定して、エッジを選択します。 [詳解] | |
| void | SelectEdgeByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれるエッジを選択します。 [詳解] | |
| void | SelectEdgeByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれるエッジを選択します。 [詳解] | |
| void | SelectEdgeByPosition (double x, double y, double z) |
| 座標を指定して、その点を含むエッジを選択します。 [詳解] | |
| void | SelectEdgeByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、エッジを選択します。 [詳解] | |
| void | SelectElement (int elementId) |
| IDを指定して、要素を選択します。 [詳解] | |
| void | SelectElementByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれる要素を選択します。 [詳解] | |
| void | SelectElementByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれる要素を選択します。 [詳解] | |
| void | SelectElementByPosition (double x, double y, double z) |
| 座標を指定して、その位置を内包する要素を選択します。 [詳解] | |
| void | SelectElementByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、要素を選択します。 [詳解] | |
| void | SelectElementEdge (int elementId, int index) |
| 要素IDと辺番号を指定して、要素辺を選択します。 [詳解] | |
| void | SelectElementEdgeByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれる要素辺を選択します。 [詳解] | |
| void | SelectElementEdgeByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれる要素辺を選択します。 [詳解] | |
| void | SelectElementEdgeByPosition (double x, double y, double z) |
| 座標を指定して、その位置を通る要素辺を選択します。 [詳解] | |
| void | SelectElementEdgeByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、要素辺を選択します。 [詳解] | |
| void | SelectElementFace (int elementId, int index) |
| 要素IDと面番号を指定して、要素面を選択します。 [詳解] | |
| void | SelectElementFaceByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれる要素面を選択します。 [詳解] | |
| void | SelectElementFaceByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれる要素面を選択します。 [詳解] | |
| void | SelectElementFaceByPosition (double x, double y, double z) |
| 座標を指定して、その位置を含む要素面を選択します。 [詳解] | |
| void | SelectElementFaceByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、要素面を選択します。 [詳解] | |
| void | SelectFace (int faceId) |
| IDを指定して、面を選択します。 [詳解] | |
| void | SelectFaceByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれる面を選択します。 [詳解] | |
| void | SelectFaceByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれる面を選択します。 [詳解] | |
| void | SelectFaceByPosition (double x, double y, double z) |
| 座標を指定して、その点を含む面を選択します。 [詳解] | |
| void | SelectFaceByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、面を選択します。 [詳解] | |
| void | SelectNode (int nodeId) |
| IDを指定して、節点を選択します。 [詳解] | |
| void | SelectNodeByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれる節点を選択します。 [詳解] | |
| void | SelectNodeByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれる節点を選択します。 [詳解] | |
| void | SelectNodeByPosition (double x, double y, double z) |
| 座標を指定して、そこに位置する節点を選択します。 [詳解] | |
| void | SelectNodeByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、節点を選択します。 [詳解] | |
| void | SelectPart (Variant &val) |
| 名称またはIDを指定して、部品を選択します。 [詳解] | |
| void | SelectPartByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれる部品を選択します。 [詳解] | |
| void | SelectPartByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれる部品を選択します。 [詳解] | |
| void | SelectPartByPosition (double x, double y, double z) |
| 座標を指定して、その点を内包している部品を選択します。 [詳解] | |
| void | SelectPartByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、部品を選択します。 [詳解] | |
| void | SelectVertex (int vertexId) |
| IDを指定して、頂点を選択します。 [詳解] | |
| void | SelectVertexByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible) |
| 円形または円筒形の範囲を指定して、その範囲に含まれる頂点を選択します。 [詳解] | |
| void | SelectVertexByCylinderObject (Cylinder *cylinder, bool visible) |
| 円形または円筒形のオブジェクトを指定して、その範囲に含まれる頂点を選択します。 [詳解] | |
| void | SelectVertexByPosition (double x, double y, double z) |
| 座標を指定して、その頂点を選択します。 [詳解] | |
| void | SelectVertexByRange (Point *lower, Point *upper, bool visible) |
| 指定した2点から決定される矩形の範囲内にある、頂点を選択します。 [詳解] | |
| void | SetBlockUpdateView (bool block) |
| モデル表示画面の描画更新を実行するかどうかを設定します。デフォルトは False です。 [詳解] | |
| int | VertexID (int index) |
| 選択された頂点のIDを取得します。 [詳解] | |
Selection クラスは 条件の設定対象となる部品や要素の選択に使用します。
Model クラスの他、 CalculationDefinition クラス、 Condition クラス、 MeshGroup クラス、 Set クラスから呼び出すことができます。
.
このクラスのオブジェクトを作成する例:
このクラスの関数の使用例:
このクラスには、事前に Attach() を実行する必要のある関数がいくつか存在します。
CreatePoint() については Application クラスの説明を参照してください。
部品、要素、節点などのIDは、JMAG-Designerのメニューから[表示]>[ID情報]を選択すると、画面上で確認できます。
| int Selection::EdgeID | ( | int | index | ) |
選択されたエッジのIDを取得します。
| index | 選択されたエッジのインデックス 0 <= index < NumEdges() |
| int Selection::ElementEdgeElementID | ( | int | index | ) |
選択された要素辺のIDを取得します。
| index | 選択された要素辺のインデックス 0 <= index < NumElementEdges() |
| int Selection::ElementEdgeIndex | ( | int | index | ) |
選択された要素辺のエッジのインデックスを取得します。
| index | 選択された要素辺のインデックス 0 <= index < NumElementEdges() |
| int Selection::ElementFaceElementID | ( | int | index | ) |
選択された要素面のIDを取得します。
| index | 選択された要素面のインデックス 0 <= index < NumElementFaces() |
| int Selection::ElementFaceIndex | ( | int | index | ) |
選択された要素面の面のインデックスを取得します。
| index | 選択された要素面のインデックス 0 <= index < NumElementFaces() |
| int Selection::ElementID | ( | int | index | ) |
選択された要素のIDを取得します。
| index | 選択された要素のインデックス 0 <= index < NumElements() |
| int Selection::FaceID | ( | int | index | ) |
選択された面のIDを取得します。
| index | 選択された面のインデックス 0 <= index < NumFaces() |
| Part * Selection::GetPart | ( | int | index | ) |
選択された部品のオブジェクトを取得します。
| index | 選択された部品のインデックス 0 <= index < NumParts() |
| bool Selection::IsAttached | ( | ) |
選択箇所のハイライト機能のオン・オフ状態を取得します。
| bool Selection::IsValid | ( | ) |
オブジェクトが有効であるとき、戻り値として True を取得します。
| int Selection::NodeID | ( | int | index | ) |
選択された節点のIDを取得します。
| index | 選択された節点のインデックス 0 <= index < NumNodes() |
| int Selection::NumEdges | ( | ) |
選択されているエッジの数を、整数で取得します。
| int Selection::NumElementEdges | ( | ) |
選択されている要素辺の数を、整数で取得します。
| int Selection::NumElementFaces | ( | ) |
選択されている要素面の数を、整数で取得します。
| int Selection::NumElements | ( | ) |
選択されている要素の数を、整数で取得します。
| int Selection::NumFaces | ( | ) |
選択されている面の数を、整数で取得します。
| int Selection::NumNodes | ( | ) |
選択されている節点の数を、整数で取得します。
| int Selection::NumParts | ( | ) |
選択されている部品の数を、整数で取得します。
| int Selection::NumVertices | ( | ) |
選択されている頂点の数を、整数で取得します。
| int Selection::PartID | ( | int | index | ) |
選択中の部品の中から、指定されたインデックスをもつ部品のIDを取得します。未使用のインデックスが指定された場合、-1を取得します。
| index | 選択された部品のインデックス 0 <= index < NumParts() |
| void Selection::SelectEdge | ( | int | edgeId | ) |
IDを指定して、エッジを選択します。
| edgeId | エッジのID |
| void Selection::SelectEdgeByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれるエッジを選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectEdgeByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれるエッジを選択します。
| cylinder | 円筒形オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectEdgeByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
座標を指定して、その点を含むエッジを選択します。
| x | X座標 |
| y | Y座標 |
| z | Z座標 |
| void Selection::SelectElement | ( | int | elementId | ) |
IDを指定して、要素を選択します。
| elementId | 要素のID |
| void Selection::SelectElementByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれる要素を選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれる要素を選択します。
| cylinder | 円筒形オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
指定した2点から決定される矩形の範囲内にある、要素を選択します。
| lower | 1点目の座標(x, y, z) |
| upper | 2点目の座標(x, y, z) |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementEdge | ( | int | elementId, |
| int | index | ||
| ) |
要素IDと辺番号を指定して、要素辺を選択します。
| elementId | 要素のID |
| index | 辺番号 |
| void Selection::SelectElementEdgeByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれる要素辺を選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementEdgeByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれる要素辺を選択します。
| cylinder | 円筒形オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementEdgeByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
指定した2点から決定される矩形の範囲内にある、要素辺を選択します。
| lower | 1点目の座標(x, y, z) |
| upper | 2点目の座標(x, y, z) |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementFace | ( | int | elementId, |
| int | index | ||
| ) |
要素IDと面番号を指定して、要素面を選択します。
| elementId | 要素のID |
| index | 面番号 |
| void Selection::SelectElementFaceByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれる要素面を選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementFaceByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれる要素面を選択します。
| cylinder | 円筒形オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectElementFaceByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
指定した2点から決定される矩形の範囲内にある、要素面を選択します。
| lower | 1点目の座標(x, y, z) |
| upper | 2点目の座標(x, y, z) |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectFace | ( | int | faceId | ) |
IDを指定して、面を選択します。
| faceId | 面のID |
| void Selection::SelectFaceByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれる面を選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectFaceByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれる面を選択します。
| cylinder | 円筒形オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectFaceByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
座標を指定して、その点を含む面を選択します。
| x | X座標 |
| y | Y座標 |
| z | Z座標 |
指定した2点から決定される矩形の範囲内にある、面を選択します。
| lower | 1点目の座標(x, y, z) |
| upper | 2点目の座標(x, y, z) |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectNode | ( | int | nodeId | ) |
IDを指定して、節点を選択します。
| nodeId | 節点のID |
| void Selection::SelectNodeByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれる節点を選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectNodeByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれる節点を選択します。
| cylinder | 円筒形オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectNodeByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
指定した2点から決定される矩形の範囲内にある、節点を選択します。
| lower | 1点目の座標(x, y, z) |
| upper | 2点目の座標(x, y, z) |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectPart | ( | Variant & | val | ) |
名称またはIDを指定して、部品を選択します。
| val | 部品の名称またはID |
| void Selection::SelectPartByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれる部品を選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectPartByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれる部品を選択します。
| cylinder | 円筒オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectPartByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
座標を指定して、その点を内包している部品を選択します。
| x | X座標 |
| y | Y座標 |
| z | Z座標 |
指定した2点から決定される矩形の範囲内にある、部品を選択します。
| lower | 1点目の座標(x, y, z) |
| upper | 2点目の座標(x, y, z) |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectVertex | ( | int | vertexId | ) |
IDを指定して、頂点を選択します。
| vertexId | 頂点のID |
| void Selection::SelectVertexByCylinder | ( | Point * | center, |
| Point * | center_axis, | ||
| Point * | x_axis, | ||
| double | inner, | ||
| double | outer, | ||
| double | startAngle, | ||
| double | endAngle, | ||
| bool | is_useheight, | ||
| double | top, | ||
| double | bottom, | ||
| bool | visible | ||
| ) |
円形または円筒形の範囲を指定して、その範囲に含まれる頂点を選択します。
| center | 中心位置 |
| center_axis | 軸の中心位置 |
| x_axis | X軸の位置 |
| inner | 内半径 |
| outer | 外半径 |
| startAngle | 開始角度 |
| endAngle | 終了角度 |
| is_useheight | 高さを使用するかどうか |
| top | 高さの上端 |
| bottom | 高さの下端 |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectVertexByCylinderObject | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
円形または円筒形のオブジェクトを指定して、その範囲に含まれる頂点を選択します。
| cylinder | 円筒形オブジェクト |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SelectVertexByPosition | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
座標を指定して、その頂点を選択します。
| x | X座標 |
| y | Y座標 |
| z | Z座標 |
指定した2点から決定される矩形の範囲内にある、頂点を選択します。
| lower | 1点目の座標(x, y, z) |
| upper | 2点目の座標(x, y, z) |
| visible | 0 : 非表示の対象も選択する
1 : 非表示の対象は選択しない
|
| void Selection::SetBlockUpdateView | ( | bool | block | ) |
モデル表示画面の描画更新を実行するかどうかを設定します。デフォルトは False です。
| block | True を指定すると、メソッド実行ごとに描画更新を行いません。 |
| int Selection::VertexID | ( | int | index | ) |
選択された頂点のIDを取得します。
| index | 選択された頂点のインデックス 0 <= index < NumVertices() |