コード例 #1
0
ファイル: BrepNode.java プロジェクト: GaneshPatil/jCAE
  @Override
  public Action[] getActions(boolean arg0) {
    ArrayList<Action> l = new ArrayList<Action>();
    if (isLoaded()) {
      l.add(SystemAction.get(ExplodeAction.class));
      l.add(SystemAction.get(ViewAction.class));
      l.add(SystemAction.get(NewAction.class));
      l.add(SystemAction.get(BooleanAction.AllActions.class));
      l.add(SystemAction.get(TransformAction.AllActions.class));
      l.add(SystemAction.get(ShapeNode.UpgradeActions.class));
      l.add(SystemAction.get(FreeBoundsAction.class));
      l.add(SystemAction.get(BoundingBoxAction.class));

      if (GeomUtils.getShape(this).getType() == TopAbs_ShapeEnum.FACE) {
        l.add(SystemAction.get(ReverseAction.class));
      }
    } else l.add(SystemAction.get(OpenAction.class));
    l.add(null);
    l.add(SystemAction.get(RenameAction.class));
    l.add(SystemAction.get(CutAction.class));
    l.add(SystemAction.get(CopyAction.class));
    l.add(SystemAction.get(DeleteAction.class));
    if (isLoaded()) {
      l.add(null);
      l.add(closeAction);
    }
    return l.toArray(new Action[l.size()]);
  }
コード例 #2
0
ファイル: BrepNode.java プロジェクト: GaneshPatil/jCAE
 @Override
 public Sheet createSheet() {
   Sheet sheet = super.createSheet();
   if (isLoaded()) {
     sheet.put(GeomUtils.createSheetSet(this));
   }
   return sheet;
 }