ModelObj.java :  » Graphics-3D-2D-OpenGL » xrace-sa » com » sa » xrace » client » objects » Android Open Source

Android Open Source » Graphics 3D 2D OpenGL » xrace sa 
xrace sa » com » sa » xrace » client » objects » ModelObj.java
package com.sa.xrace.client.objects;



import com.sa.xrace.client.math.Point3f;

public class ModelObj {
  private String Filename;
  private String ID;
  private String Type;
  private float Radius;
  private Point3f scale = new Point3f();
  
  private LocationObj location ;
  public String getFilename() {
    return Filename;
  }
  public void setFilename(String filename) {
    Filename = filename;
  }
  public String getID() {
    return ID;
  }
  public void setID(String id) {
    ID = id;
  }
  public String getType() {
    return Type;
  }
  public void setType(String type) {
    Type = type;
  }
  public float getRadius() {
    return Radius;
  }
  public void setRadius(float radius) {
    Radius = radius;
  }
  
  public LocationObj getLocation() {
    if(this.location != null){
      return location;
    }else{
      return null;
    }
  }
  public void setLocation(LocationObj location) {
    this.location = location;
  }
  public void setScale(Point3f scale) {
    this.scale = scale;
  }
  public Point3f getScale() {
    return scale;
  }
  public void setScale(String floatValues) {
    
    String[] xyz = floatValues.split(",");
    this.scale.x = Float.parseFloat(xyz[0]);
    this.scale.y = Float.parseFloat(xyz[1]);
    this.scale.z = Float.parseFloat(xyz[2]);
    
  }
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.