公開メンバ関数 | 全メンバ一覧
CircuitComponentInstance クラス

CircuitComponentInstance クラスは 素子の位置や向きなどを操作するときに使用します。
Circuit または DynamicCircuit クラスから呼び出すことができます。
. [詳解]

公開メンバ関数

double GetAngle ()
 素子の角度を取得します。 [詳解]
 
String GetName ()
 素子の名称を文字列で取得します。 [詳解]
 
PointGetPosition ()
 素子の位置を Point オブジェクトで取得します。 [詳解]
 
String GetType ()
 素子のタイプを文字列で取得します。 [詳解]
 
bool IsValid ()
 オブジェクトが有効であるとき、戻り値として True を取得します。 [詳解]
 
void Move (int dx, int dy)
 移動量を指定して素子を移動します。 [詳解]
 
void MoveTo (int x, int y)
 指定した位置に、素子を移動します。 [詳解]
 
void ReverseRotate ()
 素子を反時計回りに90°回転させます。
 
void Rotate ()
 素子を時計回りに90°回転させます。
 
void RotateTo (double angle)
 素子を指定した角度分、回転させます。 [詳解]
 
void SetComponent (Variant &component)
 素子を指定します。 [詳解]
 

詳解

CircuitComponentInstance クラスは 素子の位置や向きなどを操作するときに使用します。
Circuit または DynamicCircuit クラスから呼び出すことができます。
.

このクラスのオブジェクトを取得する例:

app.GetModel(0).GetStudy(0).GetCircuit().GetInstance("Ground", 0)

関数詳解

double CircuitComponentInstance::GetAngle ( )

素子の角度を取得します。

戻り値
素子の角度
String CircuitComponentInstance::GetName ( )

素子の名称を文字列で取得します。

戻り値
素子の名称
Point * CircuitComponentInstance::GetPosition ( )

素子の位置を Point オブジェクトで取得します。

戻り値
Point オブジェクト
String CircuitComponentInstance::GetType ( )

素子のタイプを文字列で取得します。

戻り値
素子のタイプ名
bool CircuitComponentInstance::IsValid ( )

オブジェクトが有効であるとき、戻り値として True を取得します。

戻り値
CircuitComponentInstance オブジェクトの有効・無効
void CircuitComponentInstance::Move ( int  dx,
int  dy 
)

移動量を指定して素子を移動します。

引数
dxX軸方向の移動量
dyY軸方向の移動量
void CircuitComponentInstance::MoveTo ( int  x,
int  y 
)

指定した位置に、素子を移動します。

引数
xX座標
yY座標
void CircuitComponentInstance::RotateTo ( double  angle)

素子を指定した角度分、回転させます。

引数
angle回転角度
void CircuitComponentInstance::SetComponent ( Variant &  component)

素子を指定します。

引数
component素子