GrxHwcItem.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  */
10 
11 /*
12  * GrxHwclItem.java
13  *
14  * @author Yuichiro Kawasumi (General Robotix, Inc.)
15  * @author Shin'ichiro Nakaoka (AIST)
16  */
17 
18 package com.generalrobotix.ui.item;
19 
20 import jp.go.aist.hrp.simulator.HwcInfo;
22 
23 @SuppressWarnings("serial")
24 public class GrxHwcItem extends GrxShapeTransformItem{
25  //HwcInfo info_;
26 
31  protected GrxHwcItem(String name, GrxPluginManager manager, GrxModelItem model, HwcInfo info) {
32  super(name, manager, model);
33  //info_ = info;
34 
35  setProperty("id", String.valueOf(info.id));
36  translation(info.translation);
37  rotation(info.rotation);
38  setURL(info.url);
39 
40  setIcon("camera.png");
41 
42  int n = info.shapeIndices.length;
43  for(int i=0; i<n; i++)
44  addTransformedShapeIndex(info.shapeIndices[i]);
45  buildShapeTransforms(info.inlinedShapeTransformMatrices);
46 
47  }
48 }
png_infop png_charpp name
Definition: png.h:2382
item corresponds to a robot model
png_uint_32 i
Definition: png.h:2735
GrxHwcItem(String name, GrxPluginManager manager, GrxModelItem model, HwcInfo info)
Definition: GrxHwcItem.java:31
backing_store_ptr info
Definition: jmemsys.h:181
プラグイン管理クラス 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:21