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 ()=default |
void | Build () |
Adds the FEM elements described by calls to this builder to this associated FemModel. More... | |
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. More... | |
Builder (FemModel< T > *model) | |
Constructs a new builder that builds into the given model . More... | |
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. More... | |
|
virtualdefault |
Constructs a new builder that builds into the given model
.
model
pointer is persisted and the pointed to FemModel must outlive this
*Builder. 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.