SketchArc クラス
ここでは、 SketchArc クラスのコマンドを紹介します。
.
[詳解]
SketchItemを継承しています。
SketchArc クラス
ここでは、 SketchArc クラスのコマンドを紹介します。
.
SketchArc クラスには次の操作に対応したコマンドが含まれます。
このクラスで使用するプロパティについては、 こちら を参照してください。
| void ItemObject::AddPropertyByReference |
( |
const String & |
name, |
|
|
ReferenceObject * |
value |
|
) |
| |
|
virtualslotinherited |
| ItemObject * ItemObject::GetItem |
( |
const Variant & |
value | ) |
const |
|
slotinherited |
アセンブリやパート、スケッチなどの[モデルマネージャ]ツリーに表示される各項目を取得します。 インデックスは、ツリーに表示される各項目に対して上から順番に番号が割り振られています。
- 引数
-
- 戻り値
- ItemObject オブジェクト
| String ItemObject::GetName |
( |
| ) |
const |
|
slotinherited |
| Variant ItemObject::GetProperty |
( |
const String & |
name | ) |
const |
|
virtualslotinherited |
指定した名前をもつプロパティの値を取得します。
- 引数
-
- 戻り値
- 各プロパティの型
| double SketchArc::GetRadius |
( |
| ) |
const |
|
slot |
| String ItemObject::GetScriptTypeName |
( |
| ) |
const |
|
slotinherited |
オブジェクトのタイプ名の文字列を取得します。
- 戻り値
- オブジェクトのタイプ名
| int ItemObject::NumItems |
( |
| ) |
const |
|
slotinherited |
| void SketchArc::SetCenter |
( |
double |
center_x, |
|
|
double |
center_y |
|
) |
| |
|
slot |
円弧の中心の座標を指定します。
- 引数
-
| center_x | 中心のX座標 |
| center_y | 中心のY座標 |
円弧の中心を、既存の点と同じ位置に指定します。
- 引数
-
| void SketchArc::SetData |
( |
double |
center_x, |
|
|
double |
center_y, |
|
|
double |
radius |
|
) |
| |
|
slot |
円弧の中心の座標、半径を指定します。
- 引数
-
| center_x | 中心のX座標 |
| center_y | 中心のY座標 |
| radius | 半径 |
- 非推奨:
- SetProperty() を使用してください。
| void SketchArc::SetEnd |
( |
double |
end_x, |
|
|
double |
end_y |
|
) |
| |
|
slot |
円弧の終点を、既存の点と同じ位置に指定します。
- 引数
-
| void ItemObject::SetName |
( |
const String & |
name | ) |
|
|
slotinherited |
| void ItemObject::SetPropertyByReference |
( |
const String & |
name, |
|
|
ReferenceObject * |
value |
|
) |
| |
|
virtualslotinherited |
| void SketchArc::SetRadius |
( |
double |
r | ) |
|
|
slot |
| void SketchArc::SetStart |
( |
double |
start_x, |
|
|
double |
start_y |
|
) |
| |
|
slot |
円弧の始点の座標を指定します。
- 引数
-
| start_x | 始点のX座標 |
| start_y | 始点のY座標 |
円弧の始点を、既存の点と同じ位置に指定します。
- 引数
-