Exemplo n.º 1
0
 /** (To do )(Add code here) */
 public Model3dIndexEntry getIndexEntryByModelFilename(String givModelFilename) {
   for (int i = 0; i < this.getListofAllMetaEntries().size(); i++) {
     Model3dIndexEntry tmpIndexEntry = this.getListofAllMetaEntries().elementAt(i);
     if (tmpIndexEntry.getModelFileName().equals(givModelFilename)) return tmpIndexEntry;
   }
   return null;
 }
Exemplo n.º 2
0
 /**
  * Checks if there is an existing entry in the Model3dIndex with the same Model filename as the
  * given one.
  *
  * @param givModelFilename The model filename that will be matched against the existing entries in
  *     the Index.
  * @return null if no match was found, or the Model3dIndexEntry found else.
  */
 private static synchronized Model3dIndexEntry checkforGivenEntry(String givModelFilename) {
   Model3dIndex.getModel3dIndex();
   for (int i = 0; i < Model3dIndex.getListofAllMetaEntries().size(); i++) {
     Model3dIndexEntry tmpIdxEntry = Model3dIndex.getListofAllMetaEntries().elementAt(i);
     if (tmpIdxEntry.getModelFileName().equals(givModelFilename)) {
       return tmpIdxEntry;
     }
   }
   return null;
 }