Knife.java
Go to the documentation of this file.
00001 package edu.tum.cs.ias.knowrob.vis.items;
00002 
00003 import javax.vecmath.Matrix4d;
00004 import javax.vecmath.Vector3d;
00005 
00006 import javax.vecmath.Vector3f;
00007 
00008 import edu.tum.cs.ias.knowrob.vis.Canvas;
00009 
00010 public class Knife extends Item {
00011 
00012 
00013         public Knife(float m00, float m01, float m02, float m03, float m10,
00014                         float m11, float m12, float m13, float m20, float m21, float m22,
00015                         float m23, float m30, float m31, float m32, float m33, float xdim,
00016                         float ydim, float zdim) {
00017                 
00018                 super(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31,
00019                                 m32, m33, xdim, ydim, zdim);
00020         }
00021         
00022         public Knife(Matrix4d pose, Vector3d dim){
00023                 super(pose, dim);
00024         }
00025         
00026         @Override
00027         public void drawIt(Canvas c) {
00028         
00029                 (new ConePrimitive(new Vector3f(-0.078f, 0f, -0.0104f), new Vector3f(0.013f, 0f, -0.0104f), 0.0104f)).draw(c); // handle
00030                 c.translate(0.039f, 0f, -0.0104f);
00031                 c.box(0.0845f, 0.0234f, 0.0052f);
00032                 
00033         }
00034 
00035 }


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Mon Oct 6 2014 01:30:00