Package heronarts.lx.model
Class LXView
java.lang.Object
heronarts.lx.model.LXNormalizationBounds
heronarts.lx.model.LXModel
heronarts.lx.model.LXView
- All Implemented Interfaces:
LXSerializable
- Direct Known Subclasses:
LXView.Container,LXView.Empty
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumstatic enumNested classes/interfaces inherited from class heronarts.lx.model.LXModel
LXModel.Geometry, LXModel.GeometryFunction, LXModel.Listener, LXModel.Mesh, LXModel.TagNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LXViewcreate(LXModel model, String viewSelector, LXView.Normalization normalization, LXView.Orientation orientation) Constructs a view of the given model objectstatic LXViewcreate(LXModel model, String viewSelector, LXView.Normalization normalization, LXView.Orientation orientation, LXViewDefinition viewDefinition) Constructs a view of the given model objectvoiddispose()Gets the main root model.Methods inherited from class heronarts.lx.model.LXModel
addListener, ancestor, bang, child, children, computeGeometry, contains, debugPrint, getGeneration, getGeometry, getGeometry, getNormalizationBounds, getParent, getPath, getPoints, getRoot, load, meta, normalizePoints, reindexPoints, removeListener, save, sub, sub, toIndexBuffer, toIndexBuffer, update, update, update, validateTagsMethods inherited from class heronarts.lx.model.LXNormalizationBounds
getOrientation
-
Method Details
-
create
public static LXView create(LXModel model, String viewSelector, LXView.Normalization normalization, LXView.Orientation orientation) Constructs a view of the given model object- Parameters:
model- Model Parent model to create view ofviewSelector- View selection stringnormalization- What normalization mode to use for this vieworientation- Which orientation mode to use for this view- Returns:
- A view of the model that selects the elements in the selector string
-
create
public static LXView create(LXModel model, String viewSelector, LXView.Normalization normalization, LXView.Orientation orientation, LXViewDefinition viewDefinition) Constructs a view of the given model object- Parameters:
model- Model Parent model to create view ofviewSelector- View selection stringnormalization- What normalization mode to use for this vieworientation- Which orientation mode to use for this viewviewDefinition- View definition to pass feedback to- Returns:
- A view of the model that selects the elements in the selector string
-
getMainRoot
Description copied from class:LXModelGets the main root model. For basic models, this is the same as getRoot() - but for a LXView the result may be different. This method will return the top level master model in all cases- Overrides:
getMainRootin classLXModel- Returns:
- Top level main root model
-
dispose
public void dispose()
-