Module m3DCS

Class BlockScale

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

public class BlockScale extends Null
See Also:
  • Field Details

  • Constructor Details

    • BlockScale

      public BlockScale()
      Creates a new BlockScale node whose scaling factors are set to one.
    • BlockScale

      public BlockScale(double scale)
      Creates a new BlockScale node whose scaling factors are set to scale. This is a uniform scaling.
      Parameters:
      scale - scaling factor
    • BlockScale

      public BlockScale(String scale)
      Creates a new BlockScale node whose scaling factors are set to scale. This is a uniform scaling.
      Parameters:
      scale - scalingfunction
    • BlockScale

      public BlockScale(String scaleX, String scaleY, String scaleZ)
      Creates a new BlockScale node whose scaling factors are set to the specified values.
      Parameters:
      scaleX - scalingfunction in x-direction
      scaleY - scalingfunction in y-direction
      scaleZ - scalingfunction in z-direction
    • BlockScale

      public BlockScale(double scaleX, double scaleY, double scaleZ)
      Creates a new BlockScale node whose scaling factors are set to the specified values.
      Parameters:
      scaleX - scaling factor in x-direction
      scaleY - scaling factor in y-direction
      scaleZ - scaling factor in z-direction
  • Method Details

    • instantiate

      public void instantiate(Instantiation state)
    • setScale

      public void setScale(double scale)
    • setScale

      public void setScale(String scale)
    • setScale

      public void setScale(double scaleX, double scaleY, double scaleZ)
    • setScale

      public void setScale(String scaleX, String scaleY, String scaleZ)
    • setScaleX

      public void setScaleX(double scaleX)
    • setScaleY

      public void setScaleY(double scaleY)
    • setScaleZ

      public void setScaleZ(double scaleZ)
    • setScaleX

      public void setScaleX(String scaleX)
    • setScaleY

      public void setScaleY(String scaleY)
    • setScaleZ

      public void setScaleZ(String scaleZ)
    • getParentId

      public int getParentId()
    • getThisId

      public int getThisId()
    • getDensity

      public float getDensity()
    • getAbsoluteHeight

      public float getAbsoluteHeight()
    • getLocalHeight

      public float getLocalHeight()
    • getN1

      public float getN1()
    • getN2

      public float getN2()
    • getN3

      public float getN3()
    • 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 Null
      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 Null
      Returns:
      new instance of class of this node