public override bool doTool() { newSide = trajectory.addSide(startNode.getID(), endNode.getID(), -1); if (newSide != null) { newSideDataControl = new SideDataControl(sceneDataControl, trajectoryDataControl, newSide); trajectoryDataControl.getSides().Add(newSideDataControl); return(true); } return(false); }
public DeleteTrajectorySideTool(SideDataControl dataControl, Trajectory trajectory, TrajectoryDataControl trajectoryDataControl) { this.sideDataControl = dataControl; this.trajectory = trajectory; this.trajectoryDataControl = trajectoryDataControl; }