Examples of OSDArray


Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

        Position = map.get("pos").asVector3();
        Rotation = map.get("rotation").asQuaternion();
        Scale = map.get("scale").asVector3();

        // Extra params
        OSDArray extraParams = (OSDArray) map.get("extra_parameters");
        if (extraParams != null)
        {
          ExtraParams = new ExtraParam[extraParams.count()];
          for (int i = 0; i < extraParams.count(); i++)
          {
            ExtraParam extraParam = new ExtraParam();
            extraParam.Deserialize((OSDMap)extraParams.get(i));
            ExtraParams[i] = extraParam;
          }
        }
        else
        {
          ExtraParams = new ExtraParam[0];
        }

        // Faces
        OSDArray faces = (OSDArray)map.get("facelist");
        if (faces != null)
        {
          Faces = new Face[faces.count()];
          for (int i = 0; i < faces.count(); i++)
          {
            Face face = new Face();
            face.Deserialize((OSDMap)faces.get(i));
            Faces[i] = face;
          }
        }
        else
        {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

    /// </summary>
    /// <returns>Serialized OSD</returns>
    public OSDMap Serialize()
    {
      OSDMap ret = new OSDMap();
      OSDArray array = new OSDArray();

      for (int i = 0; i < ObjectPhysicsProperties.length; i++)
      {
        array.add(ObjectPhysicsProperties[i].GetOSD());
      }

      ret.put("ObjectData", array);
      return ret;
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

    /// Deseializes the message
    /// </summary>
    /// <param name="map">Incoming data to deserialize</param>
    public void Deserialize(OSDMap map)
    {
      OSDArray array = (OSDArray)map.get("ObjectData");
      if (array != null)
      {
        ObjectPhysicsProperties = new PhysicsProperties[array.count()];

        for (int i = 0; i < array.count(); i++)
        {
          ObjectPhysicsProperties[i] = PhysicsProperties.FromOSD(array.get(i));
        }
      }
      else
      {
        ObjectPhysicsProperties = new PhysicsProperties[0];
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

  }

  protected void MapLayerResponseHandler(CapsHttpClient client, OSD result, Exception error)
  {
    OSDMap body = (OSDMap)result;
    OSDArray layerData = (OSDArray)body.get("LayerData");

    if (OnGridLayer != null)
    {
      for (int i = 0; i < layerData.count(); i++)
      {
        OSDMap thisLayerData = (OSDMap)layerData.get(i);

        GridLayer layer = new GridLayer();
        layer.Bottom = thisLayerData.get("Bottom").asInteger();
        layer.Left = thisLayerData.get("Left").asInteger();
        layer.Top = thisLayerData.get("Top").asInteger();
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

  @Override
  public OSD GetOSD()
  {
    OSDMap Avi = (OSDMap)super.GetOSD();

    OSDArray grp = new OSDArray();
    for(UUID u :Groups)
    {
      grp.add(OSD.FromUUID(u));
    }

    //              Groups.ForEach(delegate(UUID u) { grp.Add(OSD.FromUUID(u)); });

    OSDArray vp = new OSDArray();

    for (int i = 0; i < VisualParameters.length; i++)
    {
      vp.add(OSD.FromInteger(VisualParameters[i]));
    }

    Avi.put("groups", grp);
    Avi.put("profile_statistics", ProfileStatistics.GetOSD());
    Avi.put("profile_properties", ProfileProperties.GetOSD());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

    A.ProfileStatistics = Statistics.FromOSD(tex.get("profile_statistics"));
    A.ProfileProperties = AvatarProperties.FromOSD(tex.get("profile_properties"));
    A.ProfileInterests = Interests.FromOSD(tex.get("profile_interest"));
    A.ControlFlags = AgentManager.ControlFlags.get(tex.get("control_flags").asLong());

    OSDArray vp = (OSDArray)tex.get("visual_parameters");
    A.VisualParameters = new byte[vp.count()];

    for (int i = 0; i < vp.count(); i++)
    {
      A.VisualParameters[i] = (byte)vp.get(i).asInteger();
    }

    // *********************From Code Above *******************************
    /*if (NameValues[i].Name == "FirstName" && NameValues[i].Type == NameValue.ValueType.String)
                                firstName = (string)NameValues[i].Value;
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

  {
    if (Simulator == null || !Simulator.Client.network.getConnected())
      return;

    // Create a request list
    OSDArray req = new OSDArray();
    // This list can be updated by using the following command to obtain a current list of capabilities the official linden viewer supports:
    // wget -q -O - http://bitbucket.org/lindenlab/viewer-development/raw/default/indra/newview/llviewerregion.cpp | grep 'capabilityNames.append'  | sed 's/^[ \t]*//;s/capabilityNames.append("/req.add(OSD.FromString("/'
    req.add(OSD.FromString("AttachmentResources"));
    req.add(OSD.FromString("AvatarPickerSearch"));
    req.add(OSD.FromString("ChatSessionRequest"));
    req.add(OSD.FromString("CopyInventoryFromNotecard"));
    req.add(OSD.FromString("DispatchRegionInfo"));
    req.add(OSD.FromString("EstateChangeInfo"));
    req.add(OSD.FromString("EventQueueGet"));
    req.add(OSD.FromString("ObjectMedia"));
    req.add(OSD.FromString("ObjectMediaNavigate"));
    req.add(OSD.FromString("FetchLib2"));
    req.add(OSD.FromString("FetchLibDescendents2"));
    req.add(OSD.FromString("FetchInventory2"));
    req.add(OSD.FromString("FetchInventoryDescendents2"));
    req.add(OSD.FromString("GetDisplayNames"));
    req.add(OSD.FromString("GetTexture"));
    req.add(OSD.FromString("GetMesh"));
    req.add(OSD.FromString("GetObjectCost"));
    req.add(OSD.FromString("GetObjectPhysicsData"));
    req.add(OSD.FromString("GroupProposalBallot"));
    req.add(OSD.FromString("HomeLocation"));
    req.add(OSD.FromString("LandResources"));
    req.add(OSD.FromString("MapLayer"));
    req.add(OSD.FromString("MapLayerGod"));
    req.add(OSD.FromString("NewFileAgentInventory"));
    req.add(OSD.FromString("NewFileAgentInventoryVariablePrice"));
    req.add(OSD.FromString("ObjectAdd"));
    req.add(OSD.FromString("ParcelPropertiesUpdate"));
    req.add(OSD.FromString("ParcelMediaURLFilterList"));
    req.add(OSD.FromString("ParcelNavigateMedia"));
    req.add(OSD.FromString("ParcelVoiceInfoRequest"));
    req.add(OSD.FromString("ProductInfoRequest"));
    req.add(OSD.FromString("ProvisionVoiceAccountRequest"));
    req.add(OSD.FromString("RemoteParcelRequest"));
    req.add(OSD.FromString("RequestTextureDownload"));
    req.add(OSD.FromString("SearchStatRequest"));
    req.add(OSD.FromString("SearchStatTracking"));
    req.add(OSD.FromString("SendPostcard"));
    req.add(OSD.FromString("SendUserReport"));
    req.add(OSD.FromString("SendUserReportWithScreenshot"));
    req.add(OSD.FromString("ServerReleaseNotes"));
    req.add(OSD.FromString("SimConsole"));
    req.add(OSD.FromString("SimulatorFeatures"));
    req.add(OSD.FromString("SetDisplayName"));
    req.add(OSD.FromString("SimConsoleAsync"));
    req.add(OSD.FromString("StartGroupProposal"));
    req.add(OSD.FromString("TextureStats"));
    req.add(OSD.FromString("UntrustedSimulatorMessage"));
    req.add(OSD.FromString("UpdateAgentInformation"));
    req.add(OSD.FromString("UpdateAgentLanguage"));
    req.add(OSD.FromString("UpdateGestureAgentInventory"));
    req.add(OSD.FromString("UpdateNotecardAgentInventory"));
    req.add(OSD.FromString("UpdateScriptAgent"));
    req.add(OSD.FromString("UpdateGestureTaskInventory"));
    req.add(OSD.FromString("UpdateNotecardTaskInventory"));
    req.add(OSD.FromString("UpdateScriptTask"));
    req.add(OSD.FromString("UploadBakedTexture"));
    req.add(OSD.FromString("UploadObjectAsset"));
    req.add(OSD.FromString("ViewerMetrics"));
    req.add(OSD.FromString("ViewerStartAuction"));
    req.add(OSD.FromString("ViewerStats"));

    _SeedRequest = new CapsHttpClient(new URI(_SeedCapsURI));
    _SeedRequest.addRequestCompleteObserver(new EventObserver<CapsHttpRequestCompletedArg>()
        {
      public void handleEvent(Observable arg0, CapsHttpRequestCompletedArg arg1) {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

      loginLLSD.put("read_critical",  OSD.FromBoolean(loginParams.ReadCritical));
      loginLLSD.put("viewer_digest",  OSD.FromString(loginParams.ViewerDigest));
      loginLLSD.put("id0",  OSD.FromString(loginParams.ID0));

      // Create the options LLSD array
      OSDArray optionsOSD = new OSDArray();
      for (int i = 0; i < loginParams.Options.length; i++)
        optionsOSD.add(OSD.FromString(loginParams.Options[i]));

      for(String[] callbackOpts :CallbackOptions.values())
      {
        if (callbackOpts != null)
        {
          for (int i = 0; i < callbackOpts.length; i++)
          {
            if (!optionsOSD.contains(callbackOpts[i]))
              optionsOSD.add(OSD.FromString(callbackOpts[i]));
          }
        }
      }
      loginLLSD.put("options",  optionsOSD);
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

            ///
            /// </summary>
            /// <returns></returns>
            public OSD GetOSD()
            {
                OSDArray array = new OSDArray();

                // If DefaultTexture is null, assume the whole TextureEntry is empty
                if (DefaultTexture == null)
                    return array;

                // Otherwise, always add default texture
                array.add(DefaultTexture.GetOSD(-1));

                for (int i = 0; i < MAX_FACES; i++)
                {
                    if (FaceTextures[i] != null)
                        array.add(FaceTextures[i].GetOSD(i));
                }

                return array;
            }
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDArray

            public static TextureEntry FromOSD(OSD osd)
            {
                if (osd.getType() == OSDType.Array)
                {
                    OSDArray array = (OSDArray)osd;
                    OSDMap faceSD;

                    if (array.count() > 0)
                    {
                        int[] faceNumber = new int[1];
                        faceSD = (OSDMap)array.get(0);
                        TextureEntryFace defaultFace = TextureEntryFace.FromOSD(faceSD, null, faceNumber);
                        TextureEntry te = new TextureEntry(defaultFace);

                        for (int i = 1; i < array.count(); i++)
                        {
                            TextureEntryFace tex = TextureEntryFace.FromOSD(array.get(i), defaultFace, faceNumber);
                            if (faceNumber[0] >= 0 && faceNumber[0] < te.FaceTextures.length)
                                te.FaceTextures[faceNumber[0]] = tex;
                        }

                        return te;
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.