GrxHwcItem.java
Go to the documentation of this file.
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  */
00010 
00011 /*
00012  *  GrxHwclItem.java
00013  *
00014  *  @author Yuichiro Kawasumi (General Robotix, Inc.)
00015  *  @author Shin'ichiro Nakaoka (AIST)
00016  */
00017 
00018 package com.generalrobotix.ui.item;
00019 
00020 import jp.go.aist.hrp.simulator.HwcInfo;
00021 import com.generalrobotix.ui.GrxPluginManager;
00022 
00023 @SuppressWarnings("serial")
00024 public class GrxHwcItem extends GrxShapeTransformItem{
00025         //HwcInfo info_;
00026         
00031         protected GrxHwcItem(String name, GrxPluginManager manager, GrxModelItem model, HwcInfo info) {
00032                 super(name, manager, model);
00033                 //info_ = info;
00034                 
00035         setProperty("id", String.valueOf(info.id));
00036         translation(info.translation);
00037         rotation(info.rotation);
00038         setURL(info.url);
00039 
00040         setIcon("camera.png");
00041         
00042         int n = info.shapeIndices.length;
00043         for(int i=0; i<n; i++)
00044                 addTransformedShapeIndex(info.shapeIndices[i]);
00045         buildShapeTransforms(info.inlinedShapeTransformMatrices);
00046 
00047     }
00048 }


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:53