Builder that builds the FemModel.
Each concrete FemModel must define its own builder, subclassing this class, to add new elements to the model.
#include <drake/multibody/fem/fem_model.h>
Public Member Functions | |
| virtual | ~Builder () |
| void | Build () |
| Adds the FEM elements described by calls to this builder to this associated FemModel. | |
Does not allow copy, move, or assignment | |
| Builder (const Builder &)=delete | |
| Builder & | operator= (const Builder &)=delete |
| Builder (Builder &&)=delete | |
| Builder & | operator= (Builder &&)=delete |
Protected Member Functions | |
| void | ThrowIfBuilt () const |
| Throws an exception if Build() has been called on this Builder. | |
| Builder (FemModel< T > *model) | |
| Constructs a new builder that builds into the given model. | |
| virtual void | DoBuild ()=0 |
| Derived builders must provide implementations for this function to add the FEM elements described by calls to the builder to the associated FemModel. | |
|
virtual |
Constructs a new builder that builds into the given model.
| void Build | ( | ) |
|
protectedpure virtual |
Derived builders must provide implementations for this function to add the FEM elements described by calls to the builder to the associated FemModel.
|
protected |
Throws an exception if Build() has been called on this Builder.