public class OpenSimParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.io.File |
DEFAULT_GEOMETRY_PATH |
Constructor and Description |
---|
OpenSimParser(java.io.File osimFile) |
OpenSimParser(java.io.File file,
java.io.File geometryPath,
OpenSimObjectFactoryStore factories)
Creates a new parser
|
Modifier and Type | Method and Description |
---|---|
MechModel |
createModel() |
MechModel |
createModel(MechModel mech)
Populates the provided model, creating one if it doesn't exist
|
java.io.File |
getGeometryPath() |
void |
load() |
void |
setGeometryPath(java.io.File path) |
public OpenSimParser(java.io.File file, java.io.File geometryPath, OpenSimObjectFactoryStore factories)
file
- file to parsegeometryPath
- path to search for geometriesfactories
- factory storage for generating OpenSim objects from filepublic OpenSimParser(java.io.File osimFile)
public void load()
public void setGeometryPath(java.io.File path)
public java.io.File getGeometryPath()
public MechModel createModel(MechModel mech)
mech
- mechanical modelpublic MechModel createModel()