Search in sources :

Example 1 with MakeGableCommand

use of org.concord.energy3d.undo.MakeGableCommand in project energy3d by concord-consortium.

the class Roof method setGable.

public void setGable(final int roofPartIndex, final boolean isGable, final UndoManager undoManager) {
    final ArrayList<ReadOnlyVector3> roofPartMeshUpperPoints = new ArrayList<ReadOnlyVector3>();
    final Wall wall = findGableWall(roofPartIndex, roofPartMeshUpperPoints);
    if (wall != null) {
        if (undoManager != null) {
            undoManager.addEdit(new MakeGableCommand(this, wall, roofPartMeshUpperPoints));
        }
        setGable(wall, isGable, true, roofPartMeshUpperPoints);
    }
}
Also used : ReadOnlyVector3(com.ardor3d.math.type.ReadOnlyVector3) ArrayList(java.util.ArrayList) MakeGableCommand(org.concord.energy3d.undo.MakeGableCommand)

Aggregations

ReadOnlyVector3 (com.ardor3d.math.type.ReadOnlyVector3)1 ArrayList (java.util.ArrayList)1 MakeGableCommand (org.concord.energy3d.undo.MakeGableCommand)1