Class ElementTessellation

All Implemented Interfaces:
Element, ElementTessellation, InteractionSource

public class ElementTessellation extends AbstractTile implements ElementTessellation

Title: ElementBox

Description: Painter's algorithm implementation of a Surface

Version:
March 2005
Author:
Francisco Esquembre
  • Field Details

    • data

      protected double[][][] data
  • Constructor Details

    • ElementTessellation

      public ElementTessellation()
  • Method Details

    • setTiles

      public void setTiles(double[][][] data)
      Description copied from interface: ElementTessellation
      Sets the data of the tiles.
      Specified by:
      setTiles in interface ElementTessellation
      Parameters:
      data - the double[nTiles][nVertex][3] array of coordinates for the tiles. The number of vertex of the tiles may vary.
    • getTiles

      public double[][][] getTiles()
      Description copied from interface: ElementTessellation
      Gets the data of the surface.
      Specified by:
      getTiles in interface ElementTessellation
      Returns:
      the double[nTiles][nVertex][3] array of coordinates for the tiles.
    • 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