00001 /* 00002 * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc. 00003 * All rights reserved. This program is made available under the terms of the 00004 * Eclipse Public License v1.0 which accompanies this distribution, and is 00005 * available at http://www.eclipse.org/legal/epl-v10.html 00006 * Contributors: 00007 * General Robotix Inc. 00008 * National Institute of Advanced Industrial Science and Technology (AIST) 00009 */ 00017 package com.generalrobotix.ui.view.tdview; 00018 00019 import com.generalrobotix.ui.GrxPluginManager; 00020 import com.generalrobotix.ui.item.GrxModelItem; 00021 import com.sun.j3d.utils.picking.PickCanvas; 00022 00026 class BehaviorInfo { 00027 //-------------------------------------------------------------------- 00028 // インスタンス変数 00029 private boolean timerEnabled_; 00030 public GrxPluginManager manager_; 00031 00032 final PickCanvas pickCanvas; 00033 //final TransformGroup tgView; 00034 final ThreeDDrawable drawable; 00035 00036 BehaviorInfo( 00037 GrxPluginManager manager, 00038 PickCanvas pickCanvas, 00039 ThreeDDrawable drawable 00040 //TransformGroup tgView 00041 ) { 00042 manager_ = manager; 00043 this.pickCanvas = pickCanvas; 00044 this.drawable = drawable; 00045 //this.tgView = tgView; 00046 } 00047 00048 void setTimerEnabled(boolean enabled) { 00049 timerEnabled_ = enabled; 00050 } 00051 00052 boolean isTimerEnabled() { 00053 return timerEnabled_; 00054 } 00055 00056 Manipulatable getManipulatable(String name) { 00057 return (Manipulatable) manager_.<GrxModelItem>getSelectedItem(GrxModelItem.class, name); 00058 /* 00059 SimulationNode node = world_.getChild(name); 00060 if (node instanceof Manipulatable) { 00061 return (Manipulatable)node; 00062 } else { 00063 return null; 00064 } 00065 */ 00066 } 00067 }