Class ElementSurface

All Implemented Interfaces:
Element, ElementSurface, InteractionSource

public class ElementSurface extends AbstractTile implements ElementSurface

Title: ElementBox

Description: Painter's algorithm implementation of a Surface

Version:
March 2005
Author:
Francisco Esquembre
  • Field Details

    • data

      protected double[][][] data
    • nu

      protected int nu
    • nv

      protected int nv
  • Constructor Details

    • ElementSurface

      public ElementSurface()
  • Method Details

    • setData

      public void setData(double[][][] data)
      Description copied from interface: ElementSurface
      Sets the data of the surface.
      Specified by:
      setData in interface ElementSurface
      Parameters:
      data - the double[nu][nv][3] array of coordinates for the surface.
    • getData

      public double[][][] getData()
      Description copied from interface: ElementSurface
      Gets the data of the surface.
      Specified by:
      getData in interface ElementSurface
      Returns:
      the double[nu][nv][3] array of coordinates of the surface.
    • getExtrema

      public void getExtrema(double[] min, double[] max)
    • computeCorners

      protected void computeCorners()
      Description copied from class: AbstractTile
      This will be used by subclasses whenever there is a need to recompute the actual values of the corners before drawing. Synchronization is recomended.
      Specified by:
      computeCorners in class AbstractTile
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save and load object data.
      Returns:
      the XML.ObjectLoader