Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDMap.containsKey()


                        Vector3 posMax;
                        Vector3 posMin;

                        // If PositionDomain is not specified, the default is from -0.5 to 0.5
                        if (subMeshMap.containsKey("PositionDomain"))
                        {
                            posMax = ((OSDMap)subMeshMap.get("PositionDomain")).get("Max").asVector3();
                            posMin = ((OSDMap)subMeshMap.get("PositionDomain")).get("Min").asVector3();
                        }
                        else
View Full Code Here


                        // Vertex positions
                        byte[] posBytes = subMeshMap.get("Position").asBinary();

                        // Normals
                        byte[] norBytes = null;
                        if (subMeshMap.containsKey("Normal"))
                        {
                            norBytes = subMeshMap.get("Normal").asBinary();
                        }

                        // UV texture map
View Full Code Here

                        // UV texture map
                        Vector2 texPosMax = Vector2.Zero;
                        Vector2 texPosMin = Vector2.Zero;
                        byte[] texBytes = null;
                        if (subMeshMap.containsKey("TexCoord0"))
                        {
                            texBytes = subMeshMap.get("TexCoord0").asBinary();
                            texPosMax = ((OSDMap)subMeshMap.get("TexCoord0Domain")).get("Max").asVector2();
                            texPosMin = ((OSDMap)subMeshMap.get("TexCoord0Domain")).get("Min").asVector2();
                        }
View Full Code Here

            public static TextureEntryFace FromOSD(OSD osd, TextureEntryFace defaultFace, int[] faceNumber)
            {
                OSDMap map = (OSDMap)osd;

                TextureEntryFace face = new TextureEntryFace(defaultFace);
                faceNumber[0] = (map.containsKey("face_number")) ? map.get("face_number").asInteger() : -1;
                Color4 rgba = face.getRGBA();
                rgba = ((OSDArray)map.get("colors")).asColor4();
                face.setRGBA(rgba);
                face.setRepeatU((float)map.get("scales").asReal());
                face.setRepeatV((float)map.get("scalet").asReal());
View Full Code Here

          block.CanVoiceChat = agentPermsMap.get("can_voice_chat").asBoolean();
          block.IsModerator = agentPermsMap.get("is_moderator").asBoolean();

          block.Transition = infoMap.get("transition").asString();

          if (agentPermsMap.containsKey("mutes"))
          {
            OSDMap mutesMap = (OSDMap)agentPermsMap.get("mutes");
            block.MuteText = mutesMap.get("text").asBoolean();
            block.MuteVoice = mutesMap.get("voice").asBoolean();
          }
View Full Code Here

      OSDMap paramsMap = (OSDMap)map.get("params");
      OSDMap muteMap = (OSDMap)paramsMap.get("mute_info");

      AgentID = paramsMap.get("agent_id").asUUID();

      if (muteMap.containsKey("text"))
        RequestKey = "text";
      else if (muteMap.containsKey("voice"))
        RequestKey = "voice";

      RequestValue = muteMap.get(RequestKey).asBoolean();
View Full Code Here

      AgentID = paramsMap.get("agent_id").asUUID();

      if (muteMap.containsKey("text"))
        RequestKey = "text";
      else if (muteMap.containsKey("voice"))
        RequestKey = "voice";

      RequestValue = muteMap.get(RequestKey).asBoolean();
    }
  }
View Full Code Here

    }
    else if (status.equals("complete"))
    {
      JLogger.debug("CreateItemFromAsset: completed");

      if (contents.containsKey("new_inventory_item") && contents.containsKey("new_asset"))
      {
        // Request full update on the item in order to update the local store
        RequestFetchInventory(contents.get("new_inventory_item").asUUID(), Client.self.getAgentID());

        try { callback.handleEvent(null, new ItemCreatedFromAssetCallbackArg(true, "", contents.get("new_inventory_item").asUUID(), contents.get("new_asset").asUUID())); }
View Full Code Here

    }
    else if (status.equals("complete"))
    {
      JLogger.debug("CreateItemFromAsset: completed");

      if (contents.containsKey("new_inventory_item") && contents.containsKey("new_asset"))
      {
        // Request full update on the item in order to update the local store
        RequestFetchInventory(contents.get("new_inventory_item").asUUID(), Client.self.getAgentID());

        try { callback.handleEvent(null, new ItemCreatedFromAssetCallbackArg(true, "", contents.get("new_inventory_item").asUUID(), contents.get("new_asset").asUUID())); }
View Full Code Here

          catch (Exception e) { JLogger.error(Utils.getExceptionStackTraceAsString(e)); }
        }
      }
      else if (status.equals("complete"))
      {
        if (contents.containsKey("new_asset"))
        {
          // Request full item update so we keep store in sync
          RequestFetchInventory((UUID)userData[2], contents.get("new_asset").asUUID());

          try { callback.handleEvent(null, new InventoryUploadedAssetCallbackArg(true, "", (UUID)userData[2], contents.get("new_asset").asUUID())); }
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.