BehaviorInfo.java
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
3  * All rights reserved. This program is made available under the terms of the
4  * Eclipse Public License v1.0 which accompanies this distribution, and is
5  * available at http://www.eclipse.org/legal/epl-v10.html
6  * Contributors:
7  * General Robotix Inc.
8  * National Institute of Advanced Industrial Science and Technology (AIST)
9  */
17 package com.generalrobotix.ui.view.tdview;
18 
21 import com.sun.j3d.utils.picking.PickCanvas;
22 
26 class BehaviorInfo {
27  //--------------------------------------------------------------------
28  // インスタンス変数
29  private boolean timerEnabled_;
30  public GrxPluginManager manager_;
31 
32  final PickCanvas pickCanvas;
33  //final TransformGroup tgView;
34  final ThreeDDrawable drawable;
35 
36  BehaviorInfo(
37  GrxPluginManager manager,
38  PickCanvas pickCanvas,
39  ThreeDDrawable drawable
40  //TransformGroup tgView
41  ) {
42  manager_ = manager;
43  this.pickCanvas = pickCanvas;
44  this.drawable = drawable;
45  //this.tgView = tgView;
46  }
47 
48  void setTimerEnabled(boolean enabled) {
49  timerEnabled_ = enabled;
50  }
51 
52  boolean isTimerEnabled() {
53  return timerEnabled_;
54  }
55 
56  Manipulatable getManipulatable(String name) {
57  return (Manipulatable) manager_.<GrxModelItem>getSelectedItem(GrxModelItem.class, name);
58  /*
59  SimulationNode node = world_.getChild(name);
60  if (node instanceof Manipulatable) {
61  return (Manipulatable)node;
62  } else {
63  return null;
64  }
65  */
66  }
67 }
png_infop png_charpp name
Definition: png.h:2382
item corresponds to a robot model
プラグイン管理クラス GrxUIの核になるクラス。プラグインのロード等の、初期化を実行する。 プラグインとそ...


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:18