LevelOfAConstruction.java
Go to the documentation of this file.
00001 
00002 package edu.tum.cs.ias.knowrob.vis.items;
00003 
00004 import javax.vecmath.Matrix4d;
00005 import javax.vecmath.Vector3d;
00006 
00007 import edu.tum.cs.ias.knowrob.vis.Canvas;
00008 
00009 
00010 public class LevelOfAConstruction extends Item {
00011 
00012         public LevelOfAConstruction(float m00, float m01, float m02, float m03, float m10,
00013                         float m11, float m12, float m13, float m20, float m21, float m22,
00014                         float m23, float m30, float m31, float m32, float m33, float xdim,
00015                         float ydim, float zdim) {
00016                 
00017       
00018       //super(m00, m01, m02, m23, m10, m11, m12, m13, m20, m21, m22, (float) (m03  / 20f), m30, m31, m32, m33, xdim, ydim, zdim);
00019       super(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33, xdim, ydim, zdim);
00020         }
00021         public LevelOfAConstruction(Matrix4d pose, Vector3d dim){
00022                 super(pose, dim);
00023         }
00024 
00025         @Override
00026         public void drawIt(Canvas c) {
00027 
00028       c.translate(0,0,-zdim/2 - 0.1f);
00029       c.stroke(150,150,150);
00030       c.strokeWeight((float)1.5);
00031       //c.fill(250,250,250,15);
00032       c.box(this.xdim, this.ydim, 0.02f);
00033       
00034       // PImage a = c.loadImage("/home/lars/tmp/eng2-7f.png");
00035       // a.filter(PConstants.OPAQUE);
00036       // c.noStroke();
00037       // c.textureMode(PConstants.NORMALIZED);
00038       // c.rotateX((float) Math.PI);
00039       // c.beginShape();
00040       // c.texture(a);
00041       // c.vertex(-xdim/2, -ydim/2, 0,  0, 0);
00042       // c.vertex( xdim/2, -ydim/2, 0,  1, 0);
00043       // c.vertex( xdim/2,  ydim/2, 0,  1, 1);
00044       // c.vertex(-xdim/2,  ydim/2, 0,  0, 1);
00045       // c.endShape();
00046       
00047         }
00048 }


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Sat Dec 28 2013 17:09:49