Class LXModelBuilder

java.lang.Object
heronarts.lx.model.LXModelBuilder

@Deprecated public class LXModelBuilder extends Object
Deprecated.
A utility class with a simple interface, used to procedurally construct model objects. Each instance of a builder should only be used to produce one model. After it's been produced, methods cannot be called to modify the contents anymore. This class is significantly simpler than LXModel in the amount of functionality exported, with only the components needed for construction. It is mutable up until the moment it has been converted into a model, at which point no further modifications are allowed.
  • Constructor Details

    • LXModelBuilder

      public LXModelBuilder()
      Deprecated.
      Construct a model-builder with the default model tag
    • LXModelBuilder

      public LXModelBuilder(String... tags)
      Deprecated.
      Construct a model-builder with the given set of model tags
      Parameters:
      tags - Model type tags
  • Method Details

    • addTag

      public LXModelBuilder addTag(String tag)
      Deprecated.
      Add a tag to the list of this model's tag types
      Parameters:
      tag - Model tag type
      Returns:
      this
    • setTags

      public LXModelBuilder setTags(String... tags)
      Deprecated.
      Set the model type tags array
      Parameters:
      tags - Tag types
      Returns:
      this
    • addPoint

      public LXModelBuilder addPoint(LXPoint p)
      Deprecated.
      Add a point to the model
      Parameters:
      p - Point
      Returns:
      this
    • addPoints

      public LXModelBuilder addPoints(LXPoint... points)
      Deprecated.
      Add a list of points to the model
      Parameters:
      points - Points
      Returns:
      this
    • addChild

      public LXModelBuilder addChild(LXModelBuilder child)
      Deprecated.
      Add a child builder to this model.
      Parameters:
      child - Child
      Returns:
      this
    • addOutput

      public LXModelBuilder addOutput(LXOutput output)
      Deprecated.
      Add a output to this model
      Parameters:
      output - Output object
      Returns:
      this
    • toIndexBuffer

      public int[] toIndexBuffer()
      Deprecated.
      Converts this builder into an index buffer of all its points
      Returns:
      Index buffer of points in this model builder
    • toModel

      public LXModel toModel()
      Deprecated.
      Converts the builder into an immutable model
      Returns:
      LXModel instantiation of this builder