00001 package de.tum.in.fipm.kipm.gui.visualisation.items;
00002
00003 import edu.tum.cs.vis.Canvas;
00004
00005 public class Table extends Item {
00006
00007
00008 public Table(float m00, float m01, float m02, float m03, float m10,
00009 float m11, float m12, float m13, float m20, float m21, float m22,
00010 float m23, float m30, float m31, float m32, float m33, float xdim,
00011 float ydim, float zdim) {
00012
00013 super(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31,
00014 m32, m33, xdim, ydim, zdim);
00015 }
00016
00017
00018 @Override
00019 public void drawIt(Canvas c) {
00020
00021
00022 float depth = xdim;
00023 float width = ydim;
00024 float height= zdim;
00025
00026 float legs = 0.05f;
00027 float ttop = 0.02f;
00028
00029 c.translate(0, 0, 0.5f*height);
00030 c.box(depth, width, -ttop);
00031
00032 c.translate( 0.45f*depth, 0.45f*width, -0.5f*height); c.box(-legs, legs, height);
00033 c.translate(-0.9f*depth, 0, 0); c.box(-legs, legs, height);
00034 c.translate( 0, -0.9f*width, 0); c.box(-legs, legs, height);
00035 c.translate( 0.9f*depth, 0, 0); c.box(-legs, legs, height);
00036
00037 }
00038
00039 }