ModelBuilder
Description
The ModelBuilder builds optimal IModel object hierarchies from iterative build steps.
The model builder is state based (see ModelBuilderState). Model hierarchies are built by and calling Begin1 and End, while modifying the builder state along the way.
- See also
Public / Methods
Begin
2 overloads
Begins to build a new model.
This method will save the current builder state and then reset all state to default values. Use Copy to inherit values from the saved builder state.
Begins to build a new model.
This method will save the current builder state and then reset all state to default values. Use Copy to inherit values from the saved builder state.
Build
Finishes building and returns the final model.
This method will call End as many times as there are unmatched calls to any of the Begin
methods.
After this method has returned, the builder will be in its initial state and may be used for building another model.
End
Finishes building of the current model.
This method will restore the builder state after building the model or part.
The calls to the Begin
and End methods must be balanced and may be nested.
FadeIn
2 overloads
Returns the current value for IModel.FadeIn.
Defaults to Fade.AlwaysOne.
Specifies the current value for IModel.FadeIn
FadeOut
2 overloads
Returns the current value for IModel.FadeOut.
Defaults to Fade.AlwaysZero.
Specifies the current value for IModel.FadeOut
FlagsModel
2 overloads
Returns the current value for IModel.Flags.
Defaults to ModelFlags.None.
Specifies the current value for IModel.Flags
Name
2 overloads
Returns the current value for IModel.Name.
Defaults to null
.
Specifies the current value for IModel.Name
Unit
2 overloads
Returns the current value for IModel.Unit.
Defaults to null
.
Specifies the current value for IModel.Unit