Examples of loadFromData()


Examples of com.l2client.navigation.TiledNavMesh.loadFromData()

    return m;
    }
   
    private TiledNavMesh getNavMesh(String name, Vector3f worldtrans){
      TiledNavMesh m = new TiledNavMesh();
      m.loadFromData(new Vector3f[] {new Vector3f(-IArea.TERRAIN_SIZE_HALF,0,IArea.TERRAIN_SIZE_HALF),new Vector3f(-IArea.TERRAIN_SIZE_HALF,0,-IArea.TERRAIN_SIZE_HALF), new Vector3f(IArea.TERRAIN_SIZE_HALF,0,-IArea.TERRAIN_SIZE_HALF), new Vector3f(IArea.TERRAIN_SIZE_HALF,0,IArea.TERRAIN_SIZE_HALF)}, new short[][] {{0,2,1},{0,3,2}}, worldtrans);
      return m;
    }

}
View Full Code Here

Examples of com.l2client.navigation.TiledNavMesh.loadFromData()

    return m;
    }
   
    private TiledNavMesh getNavMesh(String name, Vector3f worldtrans){
      TiledNavMesh m = new TiledNavMesh();
      m.loadFromData(new Vector3f[] {new Vector3f(-64,0,64),new Vector3f(-64,0,-64), new Vector3f(64,0,-64), new Vector3f(64,0,64)}, new short[][] {{0,2,1},{0,3,2}}, worldtrans);
      return m;
    }

}
View Full Code Here

Examples of com.l2client.navigation.TiledNavMesh.loadFromData()

     * @param worldtrans  center position of quad
     * @return
     */
    private TiledNavMesh getNavMesh(String name, Vector3f worldtrans){
      TiledNavMesh m = new TiledNavMesh();
      m.loadFromData(new Vector3f[] {new Vector3f(0,0,IArea.TERRAIN_SIZE),
          new Vector3f(0,0,0),
          new Vector3f(IArea.TERRAIN_SIZE,0,0),
          new Vector3f(IArea.TERRAIN_SIZE,0,IArea.TERRAIN_SIZE)},
          new short[][] {{0,2,1},{0,3,2}}, worldtrans);
      return m;
View Full Code Here

Examples of com.l2client.navigation.TiledNavMesh.loadFromData()

    }
  }
 
    private TiledNavMesh getNavMesh(String name, Vector3f worldtrans){
      TiledNavMesh m = new TiledNavMesh();
      m.loadFromData(new Vector3f[] {new Vector3f(-64,0,64),new Vector3f(-64,0,-64), new Vector3f(64,0,-64), new Vector3f(64,0,64)}, new short[][] {{0,2,1},{0,3,2}}, worldtrans);
      return m;
    }

}
View Full Code Here

Examples of com.trolltech.qt.gui.QImage.loadFromData()

      int sequence = 0;
      if (currentNote.getResources() != null || currentNote.getResources().size() > 0)
        sequence = currentNote.getResources().size();
      newRes = createResource(path,sequence ,"image/gif", false);
      QImage pix = new QImage();
      pix.loadFromData(image);
      newRes.setHeight(new Integer(pix.height()).shortValue());
      newRes.setWidth(new Integer(pix.width()).shortValue());
      logger.log(logger.EXTREME, "Renaming temporary file to " +newRes.getGuid()+".gif");
      path = Global.getFileManager().getResDirPath(newRes.getGuid()+".gif");
      tfile.rename(path);
View Full Code Here

Examples of com.trolltech.qt.gui.QImage.loadFromData()

          newRes.getData().setBodyHash(hash);
      } catch (NoSuchAlgorithmException e) {
        e.printStackTrace();
      }
      QImage pix = new QImage();
      pix.loadFromData(image);
      newRes.setHeight(new Integer(pix.height()).shortValue());
      newRes.setWidth(new Integer(pix.width()).shortValue());
      conn.getNoteTable().noteResourceTable.updateNoteResource(newRes, true);
    }
View Full Code Here

Examples of com.trolltech.qt.gui.QImage.loadFromData()

    String thumbnailName = Global.getFileManager().getResDirPath("thumbnail-" + currentNoteGuid + ".png");
    QFile thumbnail = new QFile(thumbnailName);
    if (!thumbnail.exists()) {
     
      QImage img = new QImage();
      img.loadFromData(conn.getNoteTable().getThumbnail(currentNoteGuid));
      thumbnailViewer.setThumbnail(img);
    } else
      thumbnailViewer.setThumbnail(thumbnailName);
    if (!thumbnailViewer.isVisible())
      thumbnailViewer.showFullScreen();
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap.loadFromData()

  public QPixmap getThumbnailPixmap(String guid) {
//    if (getThumbnails().containsKey(guid))
//      return getThumbnails().get(guid);
   
    QPixmap img = new QPixmap();
    img.loadFromData(conn.getNoteTable().getThumbnail(guid));
    if (img == null || img.isNull())
      return null;
    //getThumbnails().put(guid, img);
    return img;
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap.loadFromData()

    while (query.next())  {
      try {
        if (query.getBlob(1) != null) {
          QByteArray data = new QByteArray(query.getBlob(1));
          QPixmap img = new QPixmap();
          if (img.loadFromData(data)) {
            img = img.scaled(Global.largeThumbnailSize);
            map.put(query.valueString(0), img);
          }
        } 
      } catch (java.lang.IllegalArgumentException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.