Public Member Functions | |
ModelParser | getParser () |
String | getPath () |
ItemModel (String path) | |
boolean | parseModel () |
void | setParser (ModelParser parser) |
void | setPath (String path) |
Private Attributes | |
ModelParser | parser |
String | path |
Holds information about the 3D Model of an ItemBase object.
Definition at line 21 of file ItemModel.java.
edu.tum.cs.vis.model.ItemModel.ItemModel | ( | String | path | ) | [inline] |
Constructor. The model will immediately be parsed and hold in RAM.
path | Path to the model |
Definition at line 39 of file ItemModel.java.
ModelParser edu.tum.cs.vis.model.ItemModel.getParser | ( | ) | [inline] |
Get associated model parser which contains the model for this item
Definition at line 50 of file ItemModel.java.
String edu.tum.cs.vis.model.ItemModel.getPath | ( | ) | [inline] |
Get physical file path of model
Definition at line 59 of file ItemModel.java.
boolean edu.tum.cs.vis.model.ItemModel.parseModel | ( | ) | [inline] |
Selects automagically the correct parser for the file (by file extension) and parses the model with the selected parser.
Definition at line 69 of file ItemModel.java.
void edu.tum.cs.vis.model.ItemModel.setParser | ( | ModelParser | parser | ) | [inline] |
Set associated model parser which contains the model for this item
parser | the model parser |
Definition at line 95 of file ItemModel.java.
void edu.tum.cs.vis.model.ItemModel.setPath | ( | String | path | ) | [inline] |
Set physical file path of model
path | physical file path |
Definition at line 105 of file ItemModel.java.
The parser for the model.
Definition at line 31 of file ItemModel.java.
String edu.tum.cs.vis.model.ItemModel.path [private] |
Physical file path to the model
Definition at line 26 of file ItemModel.java.