Module imp3d

Class GWedge

All Implemented Interfaces:
Transformation, Pickable, Polygonizable, Renderable, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class GWedge extends MeshNode implements Pickable, Polygonizable, Renderable
See Also:
  • Field Details

    • length

      protected float length
    • width

      protected float width
    • height

      protected float height
    • x1

      protected float x1
    • x2

      protected float x2
    • y1

      protected float y1
    • y2

      protected float y2
    • $TYPE

      public static final Node.NType $TYPE
    • length$FIELD

      public static final Node.NType.Field length$FIELD
    • width$FIELD

      public static final Node.NType.Field width$FIELD
    • height$FIELD

      public static final Node.NType.Field height$FIELD
    • x1$FIELD

      public static final Node.NType.Field x1$FIELD
    • x2$FIELD

      public static final Node.NType.Field x2$FIELD
    • y1$FIELD

      public static final Node.NType.Field y1$FIELD
    • y2$FIELD

      public static final Node.NType.Field y2$FIELD
  • Constructor Details

    • GWedge

      public GWedge()
    • GWedge

      public GWedge(float length, float width, float height, float x1, float x2, float y1, float y2)
  • Method Details

    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class MeshNode
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class MeshNode
      Returns:
      new instance of class of this node
    • getLength

      public float getLength()
    • setLength

      public void setLength(float value)
    • getWidth

      public float getWidth()
    • setWidth

      public void setWidth(float value)
    • getHeight

      public float getHeight()
    • setHeight

      public void setHeight(float value)
    • getX1

      public float getX1()
    • setX1

      public void setX1(float value)
    • getX2

      public float getX2()
    • setX2

      public void setX2(float value)
    • getY1

      public float getY1()
    • setY1

      public void setY1(float value)
    • getY2

      public float getY2()
    • setY2

      public void setY2(float value)
    • getSurfaceArea

      public double getSurfaceArea()
      Calculates the area of an object. Intersection with other object are not considered.The total area will be calculated.
      Overrides:
      getSurfaceArea in class MeshNode
      Returns:
      area
    • getVolume

      public double getVolume()
      Calculates the volume. Intersection with other object are not considered.The total volume will be calculated. V=tbd
      Overrides:
      getVolume in class MeshNode
      Returns:
      volume