Package shapes

Class STLModel

java.lang.Object
shapes.STLModel

public class STLModel extends Object
This class represent a stl model. It has the MehsView, the name, the color and the position of the model
  • Constructor Details

    • STLModel

      public STLModel(javafx.scene.shape.MeshView mv)
    • STLModel

      public STLModel(javafx.scene.shape.MeshView mv, String name, String hex, boolean visible)
  • Method Details

    • setName

      public void setName(String n)
    • getName

      public String getName()
    • setColor

      public void setColor(String hex)
      A method to set the color of the model.
      Parameters:
      hex - a hex value as a string
    • setColor

      public void setColor(javafx.scene.paint.PhongMaterial material)
    • setMeshView

      public void setMeshView(javafx.scene.shape.MeshView mv)
    • getMeshView

      public javafx.scene.shape.MeshView getMeshView()
    • setVisible

      public void setVisible(boolean val)
    • isVisible

      public boolean isVisible()