Class GridFixture

All Implemented Interfaces:
LXComponent.Renamable, LXPath, LXSerializable, LXParameterListener, LXFixtureContainer

@LXCategory("Core") public class GridFixture extends LXBasicFixture
  • Field Details

  • Constructor Details

    • GridFixture

      public GridFixture(LX lx)
  • Method Details

    • toSubmodels

      public LXFixture.Submodel[] toSubmodels()
      Description copied from class: LXFixture
      Subclasses may override when they specify submodels
      Overrides:
      toSubmodels in class LXFixture
      Returns:
      Array of submodel objects
    • computePointGeometry

      protected void computePointGeometry(LXMatrix matrix, List<LXPoint> points)
      Description copied from class: LXFixture
      This method should be implemented by subclasses to generate the geometry of the fixture any time its geometry parameters have changed. The correct number of points will have already been computed, and merely need to have their positions set.
      Specified by:
      computePointGeometry in class LXFixture
      Parameters:
      matrix - A transform matrix representing the fixture's position
      points - The list of points that need to have their positions set
    • size

      protected int size()
      Description copied from class: LXFixture
      Subclasses must implement to specify the number of points in the fixture. This does not include the number of points that are in children.
      Specified by:
      size in class LXFixture
      Returns:
      number of points immediately in the fixture
    • getDefaultTags

      protected String[] getDefaultTags()
      Description copied from class: LXFixture
      Subclasses may override to return an array of default tag types for this fixture in the model hierarchy
      Overrides:
      getDefaultTags in class LXFixture
      Returns:
      List of model tag types for this fixture
    • buildSegment

      protected LXFixture.Segment buildSegment()
      Overrides:
      buildSegment in class LXBasicFixture
    • addModelMetaData

      public void addModelMetaData(Map<String,String> metaData)
      Description copied from class: LXFixture
      Subclasses may override to add additiona metadata fields for inclusion in the model
      Overrides:
      addModelMetaData in class LXFixture
      Parameters:
      metaData - Map to add meta-data fields to