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"));
}
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"));
}
Aggregations