Module imp3d

Class ShadedNull

All Implemented Interfaces:
Transformation, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable
Direct Known Subclasses:
AxisBase, CSGNode, Instance3D, MeshNode, NullWithShaderNode, NURBSSurface, Patch, Plane, Polygon, PrismRectangular, Sky, Sphere, SphereSegmentSolid, Supershape, TextBlock

public class ShadedNull extends Null
See Also:
  • Field Details

  • Constructor Details

    • ShadedNull

      public ShadedNull()
    • ShadedNull

      public ShadedNull(Transform3D transform)
  • Method Details

    • getSymbolColor

      public int getSymbolColor()
      Overrides:
      getSymbolColor in class Node
    • setColor

      public void setColor(int rgb)
    • getSurfaceArea

      public double getSurfaceArea()
      Calculates the area of an object. Keep in mind, that this function is only implemented for basic primitive object. For all other objects it will return zero.
      Returns:
      area
    • getVolume

      public double getVolume()
      Calculates the volume of an object. Keep in mind, that this function is only implemented for basic primitive object. For all other objects it will return zero.
      Returns:
      volume
    • setColor

      public void setColor(float r, float g, float b)
    • setMaterial

      public void setMaterial(Shader mat)
    • setFrontShader

      public void setFrontShader(Shader mat)
    • setBackShader

      public void setBackShader(Shader mat)
    • setShaders

      public void setShaders(Shader front, Shader back)
    • setShader

      public void setShader(Shader shader)
    • 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
    • isRenderAsWireframe

      public boolean isRenderAsWireframe()
    • setRenderAsWireframe

      public void setRenderAsWireframe(boolean value)
    • getShader

      public Shader getShader()
    • getInterior

      public Interior getInterior()
    • setInterior

      public void setInterior(Interior value)
    • isTreatedAsInfinite

      public boolean isTreatedAsInfinite()
    • setTreatedAsInfinite

      public void setTreatedAsInfinite(boolean v)