Package heronarts.lx.model
Class LXModelBuilder
java.lang.Object
heronarts.lx.model.LXModelBuilder
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 Summary
ConstructorDescriptionDeprecated.Construct a model-builder with the default model tagLXModelBuilder
(String... tags) Deprecated.Construct a model-builder with the given set of model tags -
Method Summary
Modifier and TypeMethodDescriptionaddChild
(LXModelBuilder child) Deprecated.Add a child builder to this model.Deprecated.Add a output to this modelDeprecated.Add a point to the modelDeprecated.Add a list of points to the modelDeprecated.Add a tag to the list of this model's tag typesDeprecated.Set the model type tags arrayint[]
Deprecated.Converts this builder into an index buffer of all its pointstoModel()
Deprecated.Converts the builder into an immutable model
-
Constructor Details
-
LXModelBuilder
public LXModelBuilder()Deprecated.Construct a model-builder with the default model tag -
LXModelBuilder
Deprecated.Construct a model-builder with the given set of model tags- Parameters:
tags
- Model type tags
-
-
Method Details
-
addTag
Deprecated.Add a tag to the list of this model's tag types- Parameters:
tag
- Model tag type- Returns:
- this
-
setTags
Deprecated.Set the model type tags array- Parameters:
tags
- Tag types- Returns:
- this
-
addPoint
Deprecated.Add a point to the model- Parameters:
p
- Point- Returns:
- this
-
addPoints
Deprecated.Add a list of points to the model- Parameters:
points
- Points- Returns:
- this
-
addChild
Deprecated.Add a child builder to this model.- Parameters:
child
- Child- Returns:
- this
-
addOutput
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
Deprecated.Converts the builder into an immutable model- Returns:
- LXModel instantiation of this builder
-