Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
メーターコンポーネント
メーターコンポーネントは Maple の Standard ワークシートまたはドキュメントにメーターを定義します。メーターの針が調整されると、このコンポーネントは他の埋め込みコンポーネントを呼び出すための動作、または一連の動作を実行します。(必ずしもコンポーネントに動作が割り当てられている必要はありません。)
メーターが調整されたときに動作を実行するには、Meter Properties から開く値が変わったときの動作ダイアログに実行したいコマンドを入力します。Meter Properties を表示するには、メーターを右クリック (Macintosh の場合は Control+クリック) してコンポーネントプロパティを選択します。入力するコマンドには、メーターの針が調整されたときの出力を表示する埋め込みコンポーネントが 1 つまたは複数指定されている必要があります。
名前プロパティは DocumentTools パッケージのルーチンからメーターのゲージを参照するために使用されます。
選択された場合、目盛りの値を表示および目盛り線を表示プロパティはそれぞれ、メーターの目盛りのラベルおよび目盛り線を表示します。
選択されている場合、ドラッグ時に値を自動更新プロパティは 1 つまたは複数のコンポーネントを連続動作させます。値が変わったときの動作プロパティに関連付けられる Maple コマンドはこの連続動作を実行するようにプログラムされる必要があります。
メーターが調整されたときの出力を表示するには、追加のコンポーネントが 1 つ必要です。
メーターコンポーネントをカスタマイズするには、Meter Properties のオプションを設定します。動作は DocumentTools パッケージのルーチンを使用するコンポーネントに関連付けられます。
コンポーネントパレット上の画像
挿入箇所に表示される画像
メーターのプロパティ
下記表はメーターコンポーネントのオプションによって制御されるプロパティとその用途の説明です。
G 列の x はそのオプションが読み取り可能、すなわち、DocumentTools[GetProperty] ツールで取得可能であることを示します。
S 列の x はそのオプションが書き込み可能、すなわち、DocumentTools[SetProperty] ツールで設定可能であることを示します。
Option G S Option Type enabled x x true or false lower x x integer majorTicks x x positive integer minorTicks x x positive integer pixelHeight x x positive integer pixelWidth x x positive integer showLabels x x true or false showTicks x x true or false tooltip x x string upper x x integer value x x positive integer or floating point number (negative or positive) visible x x true or false
enabled
コンポーネントを有効にするかしないかを示します。有効にされている場合、マウスでメーターの針を動かすことができます。デフォルトでは偽 (false) です。
lower
メーターの下限。デフォルトでは 0 です。
majorTicks
メーターの大目盛りの間隔。デフォルトでは 20 です。
minorTicks
メーターの小目盛りの間隔。デフォルトでは 10 です。
pixelHeight
メーターの画像の高さ (ピクセル単位)。デフォルトでは 97 です。
pixelWidth
メーターの画像の幅 (ピクセル単位)。デフォルトでは 207 です。
showLabels
目盛りの値を表示するかしないかを示します。デフォルトでは真 (true) です。
showTicks
目盛り線を表示するかしないかを示します。デフォルトでは真 (true) です。
tooltip
カーソルをコンポーネント上に移動すると表示されるテキストです。
upper
メーターの上限。デフォルトでは 100 です。
value
メーターの針の現在の位置。デフォルトでは 0 です。
visible
メーターを表示するかしないかを指定します。デフォルトでは真 (true) です。
例
この例ではメーターコンポーネントを使用して 3-D プロットの透明度を変更します。
1. プロットおよびメーターコンポーネントを挿入します。
2. プロットコンポーネントを右クリックし、コンポーネントプロパティを選択します。
3. プロット式のフィールドに plot3d(x^2*cos(y), x =-1 .. 1, y=-2*Pi .. 2*Pi); と入力し、この設定を確定します。
4. メーターコンポーネントを右クリックし、コンポーネントプロパティを選択します。
5. 最大値に 1 と入力します。
6. 大目盛りの間隔フィールドに 0.25 と入力します。
7. 小目盛りの間隔フィールドに 0.125 と入力します。
8. 値が変わったときの動作の編集ボタンをクリックします。固定のステートメントおよび埋め込みコンポーネント間の動作の設定方法に関する追加情報が含まれているダイアログが開きます。
9. ダイアログ内の end use; ステートメントの前に以下を入力します。
Do(%Plot0=plot3d(x^2*cos(y), x = -1 .. 1, y = -2*Pi .. 2*Pi, transparency =%Meter0));
コンポーネントの名前が正しく入力されていることを確認します。
10. 入力を許可を選択します。
11. ドラッグ時に値を自動更新を選択します。
12. OK をクリックしてすべての変更を確定します。
参照
ButtonComponent, CheckBoxComponent, ComboBoxComponent, DialComponent, DocumentTools, DocumentTools[Do], DocumentTools[GetProperty], DocumentTools[SetProperty], EmbeddedComponents, LabelComponent, ListBoxComponent, MathExpressionComponent, PlotComponent, RadioButtonComponent, RotaryGaugeComponent, SliderComponent, TextAreaComponent, ToggleButtonComponent, VolumeGaugeComponent
Download Help Document