Search in sources :

Example 1 with AxisAngleField

use of maspack.widgets.AxisAngleField in project artisynth_core by artisynth.

the class FemModel3dAgent method createLocationPanel.

private void createLocationPanel() {
    positionField = new VectorField("position", 3);
    positionField.setStretchable(true);
    positionField.addValueChangeListener(this);
    orientationField = new AxisAngleField("orientiation", new AxisAngle());
    orientationField.setStretchable(true);
    orientationField.addValueChangeListener(this);
    LabeledComponentPanel locationPanel = new LabeledComponentPanel();
    locationPanel.addWidget(positionField);
    locationPanel.addWidget(orientationField);
    addWidget(locationPanel);
    locationPanel.setBorder(GuiUtils.createTitledPanelBorder("Location"));
}
Also used : AxisAngle(maspack.matrix.AxisAngle) VectorField(maspack.widgets.VectorField) AxisAngleField(maspack.widgets.AxisAngleField) LabeledComponentPanel(maspack.widgets.LabeledComponentPanel)

Example 2 with AxisAngleField

use of maspack.widgets.AxisAngleField in project artisynth_core by artisynth.

the class RigidBodyAgent method createLocationPanel.

private void createLocationPanel() {
    positionField = new VectorField("position", 3);
    positionField.setStretchable(true);
    positionField.addValueChangeListener(this);
    orientationField = new AxisAngleField("orientiation", new AxisAngle());
    orientationField.setStretchable(true);
    orientationField.addValueChangeListener(this);
    LabeledComponentPanel locationPanel = new LabeledComponentPanel();
    locationPanel.addWidget(positionField);
    locationPanel.addWidget(orientationField);
    addWidget(locationPanel);
    locationPanel.setBorder(GuiUtils.createTitledPanelBorder("Location"));
}
Also used : AxisAngle(maspack.matrix.AxisAngle) VectorField(maspack.widgets.VectorField) AxisAngleField(maspack.widgets.AxisAngleField) LabeledComponentPanel(maspack.widgets.LabeledComponentPanel)

Aggregations

AxisAngle (maspack.matrix.AxisAngle)2 AxisAngleField (maspack.widgets.AxisAngleField)2 LabeledComponentPanel (maspack.widgets.LabeledComponentPanel)2 VectorField (maspack.widgets.VectorField)2