use of org.twak.tweed.gen.FeatureCache in project chordatlas by twak.
the class Tweed method initFrom.
public void initFrom(String dataDir) {
if (JME != null) {
assetManager.unregisterLocator(JME, FileLocator.class);
deleteScratch();
}
// = System.getProperty("user.home")+"/data/regent"
DATA = dataDir;
SCRATCH = DATA + File.separator + "scratch" + File.separator;
new File(SCRATCH).mkdirs();
JME = DATA + File.separator;
cam.setLocation(TweedSettings.settings.cameraLocation);
cam.setRotation(TweedSettings.settings.cameraOrientation);
assetManager.registerLocator(Tweed.JME, FileLocator.class);
features = new FeatureCache(new File(dataDir, FeatureCache.FEATURE_FOLDER), this);
setFov(0);
setCameraSpeed(0);
frame.setGens(TweedSettings.settings.genList);
WindowManager.setTitle(TweedFrame.APP_NAME + " " + new File(dataDir).getName());
}
Aggregations