Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 package edu.tum.cs.ias.knowrob.vis.items.transform;
00008
00009 import edu.tum.cs.ias.knowrob.vis.Canvas;
00010
00015 public class PoseColor implements Cloneable, DrawingTransformation {
00016
00017 public Pose pose;
00018 public int color;
00019
00020 public PoseColor(float x, float y, float z, float rot, float rot2,
00021 float rot3, float scale, int color) {
00022 pose = new Pose(x, y, z, rot, rot2, rot3, scale);
00023 this.color = color;
00024 }
00025
00026 public PoseColor(Pose pose, int color) {
00027 this.pose = pose;
00028 this.color = color;
00029 }
00030
00031 public void applyTransformation(Canvas c) {
00032 pose.applyTransformation(c);
00033 c.fill(color);
00034 }
00035
00036 public boolean equals(PoseColor o) {
00037 return pose.equals(o.pose) && color==o.color;
00038 }
00039
00040 public PoseColor clone() {
00041 return new PoseColor(pose.clone(), color);
00042 }
00043 }