Package org.geppetto.core.visualisation.model

Examples of org.geppetto.core.visualisation.model.Point


    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);
    visualization.setModified(true);

    SphereNode sphere = new SphereNode("sphere");
    Point p = new Point();
    p.setX(new Double(3.3));
    p.setY(new Double(4));
    p.setZ(new Double(-1.444));
    sphere.setPosition(p);
    sphere.setRadius(new Double(33));

    CylinderNode cylinder = new CylinderNode("cylinder");
    Point p2 = new Point();
    p2.setX(new Double(6.3));
    p2.setY(new Double(8));
    p2.setZ(new Double(-3.999));
    cylinder.setPosition(p2);
    Point p3 = new Point();
    p3.setX(new Double(6.3));
    p3.setY(new Double(8));
    p3.setZ(new Double(-3.999));
    cylinder.setDistal(p3);
    cylinder.setRadiusBottom(new Double(34.55));
    cylinder.setRadiusTop(new Double(34.55));

    CylinderNode cylinder2 = new CylinderNode("cylinder");
View Full Code Here


    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);
    visualization.setModified(true);

    SphereNode sphere = new SphereNode("sphere");
    Point p = new Point();
    p.setX(new Double(3.3));
    p.setY(new Double(4));
    p.setZ(new Double(-1.444));
    sphere.setPosition(p);
    sphere.setRadius(new Double(33));

    CylinderNode cylinder = new CylinderNode("cylinder");
    Point p2 = new Point();
    p2.setX(new Double(6.3));
    p2.setY(new Double(8));
    p2.setZ(new Double(-3.999));
    cylinder.setPosition(p2);
    Point p3 = new Point();
    p3.setX(new Double(6.3));
    p3.setY(new Double(8));
    p3.setZ(new Double(-3.999));
    cylinder.setDistal(p3);
    cylinder.setRadiusBottom(new Double(34.55));
    cylinder.setRadiusTop(new Double(34.55));

    CylinderNode cylinder2 = new CylinderNode("cylinder");
View Full Code Here

    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);
    visualization.setModified(true);

    SphereNode sphere = new SphereNode("sphere");
    Point p = new Point();
    p.setX(new Double(3.3));
    p.setY(new Double(4));
    p.setZ(new Double(-1.444));
    sphere.setPosition(p);
    sphere.setRadius(new Double(33));

    CylinderNode cylinder = new CylinderNode("cylinder");
    Point p2 = new Point();
    p2.setX(new Double(6.3));
    p2.setY(new Double(8));
    p2.setZ(new Double(-3.999));
    cylinder.setPosition(p2);
    Point p3 = new Point();
    p3.setX(new Double(6.3));
    p3.setY(new Double(8));
    p3.setZ(new Double(-3.999));
    cylinder.setDistal(p3);
    cylinder.setRadiusBottom(new Double(34.55));
    cylinder.setRadiusTop(new Double(34.55));

    CylinderNode cylinder2 = new CylinderNode("cylinder");
View Full Code Here

  @Override
  public boolean outEntityNode(EntityNode node) {
    if (node.isModified()) {
      String commonProperties = this.commonProperties(node);

      Point position = node.getPosition();
      String positionString = "";

      if (position != null) {
        positionString = "\"position\":{" + "\"x\":"
            + position.getX().toString() + "," + "\"y\":"
            + position.getY().toString() + "," + "\"z\":"
            + position.getZ().toString() + "},";
      }

      _serialized.append(positionString + commonProperties + "},");
      return super.outEntityNode(node);
    }
View Full Code Here

  @Override
  public boolean visitSphereNode(SphereNode node) {
    String commonProperties = this.commonProperties(node);

    Point position = node.getPosition();
    String name = node.getId();
    String positionString = "";

    if (position != null) {
      positionString = "\"x\":" + position.getX().toString() + ","
          + "\"y\":" + position.getY().toString() + "," + "\"z\":"
          + position.getZ().toString() + "";
    }

    Double radius = node.getRadius();
    String radiusString = null;
    if (radius != null) {
View Full Code Here

  @Override
  public boolean visitCylinderNode(CylinderNode node) {
    String commonProperties = this.commonProperties(node);

    Point position = node.getPosition();
    String name = node.getId();
    String positionString = "";

    if (position != null) {
      positionString = "\"x\":" + position.getX().toString() + ","
          + "\"y\":" + position.getY().toString() + "," + "\"z\":"
          + position.getZ().toString() + "";
    }

    Point distal = node.getDistal();
    String distalString = "";

    if (distal != null) {
      distalString = "\"x\":" + distal.getX().toString() + "," + "\"y\":"
          + distal.getY().toString() + "," + "\"z\":"
          + distal.getZ().toString() + "";
    }

    Double radiusBottom = node.getRadiusBottom();
    String radiusBottomString = "";
    if (radiusBottom != null) {
View Full Code Here

  @Override
  public boolean visitParticleNode(ParticleNode node) {
    String commonProperties = this.commonProperties(node);

    Point position = node.getPosition();
    String name = node.getId();
    String positionString = "";

    if (position != null) {
      positionString = "\"x\":" + position.getX().toString() + ","
          + "\"y\":" + position.getY().toString() + "," + "\"z\":"
          + position.getZ().toString() + "";
    }

    _serialized.append("\"" + name + "\":{\"position\":{" + positionString
        + "}," + commonProperties + "},");
View Full Code Here

  @Override
  public boolean visitColladaNode(ColladaNode node) {
    String commonProperties = this.commonProperties(node);

    Point position = node.getPosition();
    String name = node.getId();
    String positionString = "";

    if (position != null) {
      positionString = "\"x\":" + position.getX().toString() + ","
          + "\"y\":" + position.getY().toString() + "," + "\"z\":"
          + position.getZ().toString() + "";
    }

    String model = "";
    if (node.getModel() != null) {
      JsonObject obj = new JsonObject();
View Full Code Here

  @Override
  public boolean visitObjNode(OBJNode node) {
    String commonProperties = this.commonProperties(node);
   
    Point position = node.getPosition();
    String name = node.getId();
    String positionString = "";

    if (position != null) {
      positionString = "\"x\":" + position.getX().toString() + ","
          + "\"y\":" + position.getY().toString() + "," + "\"z\":"
          + position.getZ().toString() + "";
    }

    String model = "";
    if (node.getModel() != null) {
      JsonObject obj = new JsonObject();
View Full Code Here

TOP

Related Classes of org.geppetto.core.visualisation.model.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.