20 package com.generalrobotix.ui.view;
23 import org.eclipse.jface.action.IAction;
24 import org.eclipse.swt.SWT;
25 import org.eclipse.swt.widgets.Composite;
36 @SuppressWarnings(
"serial")
38 public static final String TITLE =
"OpenHRP";
44 super(name, manager,vp,parent);
49 setScrollMinSize(SWT.DEFAULT,SWT.DEFAULT);
57 if(currentWorld_ !=
null)
61 if(currentWorld_!=
null)
74 GrxWorldStateItem witem = (GrxWorldStateItem) item;
77 if(currentWorld_!=witem){
79 currentWorld_ = witem;
85 if(currentWorld_==witem){
95 GrxSimulationItem simItem = (GrxSimulationItem) item;
98 if(simItem_!=simItem){
106 if(simItem_==simItem){
119 if(simItem_==plugin){
120 if((String)
arg[0]==
"StartSimulation")
122 else if((String)
arg[0]==
"StopSimulation")
124 else if((String)
arg[0]==
"PropertyChange")
126 }
else if(currentWorld_==plugin){
127 if((String)
arg[0]==
"PropertyChange")
133 if(currentWorld_!=
null)
154 manager_.setSelectedItem(simItem_,
true);
175 manager_.setSelectedItem(simItem_,
true);
189 manager_.setSelectedItem(simItem_,
true);
199 manager_.setSelectedItem(simItem_,
true);
void registerItemChange(GrxBaseItem item, int event)
boolean initDynamicsSimulator()
void updateLogTime(GrxBaseItem item)
void stopSimulation()
stop simulation
void addObserver(GrxObserver v)
#define null
our own NULL pointer
DynamicsSimulator getDynamicsSimulator(boolean update)
png_infop png_charpp name
void deleteObserver(GrxObserver v)
static final int ADD_ITEM
GrxOpenHRPView(String name, GrxPluginManager manager, GrxBaseViewPart vp, Composite parent)
SimulationParameterPanel simParamPane_
static final int SELECTED_ITEM
void update(GrxBasePlugin plugin, Object... arg)
void waitStopSimulation()
static final int REMOVE_ITEM
void waitStopSimulation()
boolean initDynamicsSimulator()
boolean startSimulation(boolean isInteractive)
GrxWorldStateItem currentWorld_
void setEnabled(boolean flag)
プラグイン管理クラス GrxUIの核になるクラス。プラグインのロード等の、初期化を実行する。 プラグインとそ...
void updateItem(GrxBaseItem item)
DynamicsSimulator getDynamicsSimulator(boolean update)
static final int NOTSELECTED_ITEM
void startSimulation(boolean isInteractive, IAction action)
start simulation