Saving 3d objects and retrieving back

I'm using XMLEncoders ....
its working fine for simple datatypes..but when I tried for Java3D objects.....
its not saving.....
For eg :-
I've variable defined in my class Point.java
private Point3d first;
public Point()
public Point(Point3d f)
first = new Point3d(f);
//then get and set methods.....
public Point3d getFirst()
return first;
public void setFirst(Point3d m)
first = new Point3d(m);
now the main....when I'm trying to write the Point3d object
using XMLEncoder.....its internal co-ordinates are not saved
I mean...first.x,first.y.first.y......
although I've set these values before writing the object...
XML file generated says :-
<void property="first">
<object class = "javax.vecmath.Point3d>
</void>
I've also tried to create a class MyPoint3d.java which extends Point3d and defined getX(),Y,Z and setX(),Y,Z there....and my class Point.java extends MyPoint.java but in that case xml file which is coming is :-<void property="first">
<object class = "MyPoint3d>
<void property="x">
<double>10</double>
</void>
same for y and z
</object>
</void>
</void>

Hi
This is not an answer, but was wondering how succesful your attempts to use XML Encoder and Decoder were.
I am about to impliment the xmlencoder on a large java3d scengraph, is it possible to use xml with the top branch group and expect it to save from there?
Any advice would be greatfully recieved.
Thanks
PJ

Similar Messages

  • I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a

    I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a second copy, but this is identic with the one I already had in Lightroom, and I can see noe result of the clone process.

    At the moment I would say it is uncertain whether Acrobat is completely ignoring the change, or whether the changes you are making aren't affecting the ink density. I have a suggestion for a test you could make to see which is the case.
    When editing in Photoshop just add a box or mark on the image, for your tests.
    - If this box does not appear in Acrobat, you know Acrobat is not seeing the edit
    - If this box does appear in Acrobat, you know the problem is that your tool for changing ink densities is not taking effect.

  • Saving in USB and retrieving file problem?

    My file was able to be previewed in my computer (imac). However, when file is saved in USB, and reopened, linkage to other pages and pictures were lost. How to solve this?

    Check the links in your site to verify they are not absolute paths. You should be using Document Relative paths instead.
    So if you see something like...
    c://computer/user/site/folder/image.jpg
    You'll need to fix them in DW first so they look more like
    folder/image.jpg
    If the site was set up correctly locally, and your links are no longer absolute paths, you will be able to save it onto a USB and have those files viewable from in IE, Firefox or other browsers.
    If you are attempting to modify the USB files from DW, you'll want to create a site from them in DW first or you could end up in the same situation you were in to begin with.
    Site > New Site > give it a name > for Local Root Folder, browse to the site's root folder on the USB device.

  • Agent route call to IVR and retrieve back

    Hi all,
    I'm currently using UCCE with CVP v8.5. In this scenario, i would like the agent to transfer the current call to the IVR for the caller to perform authentication. The agent shouldn't be allowed to hear the dtmf tones that is being entered by the caller. During the IVR process, the agent should not be allowed to receive any other call. Once completed, the caller will go back to the same agent.
    Other than using conference (where the agent will hear the dtmf tones), is there any other method to achieve this?
    Thanks!
    -JT-

    Hi Loh,
    Hope you are doing well.
    Create an enterprise skill group and assoiciate it with the skill group you want for this flow. In ICM script there is a node called queue to agent. Under that node use agent selection by skill target ID. and in the expression use the prefered agent id variable. It will make sure that tha call goes to the same agent. just before the queue node set the priority highest for this caller. For this you can use the priority node. Below link will help to configure it properly.
    http://docwiki.cisco.com/wiki/Sticky_Agent_Configuration
    Now in the agent desktop setting change the wrapup time accordingly. Let say for pin authentication you need 20 sec then make the wrapup time 25 sec. This extra 5 sec will allow the caller in the queue (to hear pls wait while we transfer to the agent) and the call will land to the same agent.
    Thanks and Regards,
    Ashfaque

  • Shared Object - Not retrieving and or saving correctly.

    Hello again,
    I've got big trouble this time using a SharedObject - a weird thing is - the same code / way of doing it - like saving and retrieving data from a SharedObject worked flawlessly in CS3.
    What I try to archive:
    Putting a byte array (screenshot data) in an array (images) and save this one in a SharedObject (data_vault).
    I can see from the size of the SharedObject that something is saved to it - but - everytime I try to load I get errors.
    From what I see when using "trace (images.length)" - the array has the length of X (=screenhots) - but when using the loadscreenshots() function, I just get error #1009 ("attribute of a null object is not possible") back and I cant read out the saved data.
    This problem also occurs with numbers and other saved data like coordinates (Array like [ [x1, y1], [x2, y2] ]).
    As I said, in an earlier version of Flash Player / CS3 with Actionscript 3 this code worked as it was.
    I was even able to load Screenshots from the SharedObject which had been made at another computer.
    Here what my code is looking like:
    Frame 1:
    import flash.net.SharedObject;
    var data_vault:SharedObject = SharedObject.getLocal('ProgramData', '/');
    Frame 3:
    var images:Array = new Array();
    images = data_vault.data.screenshots;
    if (images != null) { loadscreenshots(); }
    else { images = []; }
    ------------ Function makeScreenshots
            images[screen_z] = img_copy_bin;  // img_copy_bin = ByteArray!
            data_vault.data.screenshots = images;
            data_vault.flush();
    ------------ Function loadscreenshots
    function loadscreenshots():void {
        for (screen_z=0;screen_z < images.length; screen_z++) {
            trace(screen_z); show_screenshots();
    ------------ Function show_screenshots
    function show_screenshots():void {
        data_vault = SharedObject("ProgramData", "/");
        images = data_vault.data.screenshots;
        var img_dis_bin:ByteArray =  images[screen_z];
    Please let me know if you need more information / code examples.
    Thank you a lot in advance,
    Jan

    No, I have allowed unlimited diskspace usage by using the settings.sol (Sys and Local).
    Those files permit it.
    Also I see that the data becomes saved, but when I restart the flash file or switch back to the frame, where the loading function becomes executed even when the active session has not been ended, nothing becomes loaded and the error #1009 is raised.
    With the same code, even with activated compression (compress/uncompress routine of the ByteArray Class) the data became perfectly loaded and the screenshots displayed almost instantly without any trouble using CS3 with Flash Player 9.
    Just to mention, I recreated the SharedObject and Im not trying to use the one created in CS3, Flash Player 9.
    Any more ideas? - This problem drives me crazy

  • Problem with Retrieving objects and using info...

    Ok heres my problem.
    I have implemented a Queue using a linkedlist in java. Ok then i created a new object(in its own class - called Data) with two values, amount and price. I want the queue to store these two values in one Node. So i pass the values to it like this:
    Data A = new Data();
    A.price = Intger.parseInt(jTextField.getText());
    A.amount = Integer.ParseInt(jTextField.getText());
    Now I pass the Queue like this
    Queue B = new Queue ();
    B.enqueue(A);
    Which seems to work fine, the problem is that I need to work with the numbers in the Queue, update them, put them back and retrieve them.
    So I create a new Data object and try to dequeue like this:
    Data C = new Data();
    C = B.dequeue(); //So i can work with the two values
    but this doest work. It gives me the error that it needs an object.
    Am I doing it right?
    Anyone got any better ideas on how to do this? - Passing and retrieving two values to one Node.
    Plz help, im a newbie in Java, and cant find any tutorials on the internet.

    why don't you use vector.
    Vector queue = new Vector();
    Data a = new Data();
    a.price = Intger.parseInt(jTextField.getText());
    a.amount = Integer.ParseInt(jTextField.getText());
    queue.addElement(a);
    Data c = new Data();
    c.price = Intger.parseInt(jTextField.getText());
    c.amount = Integer.ParseInt(jTextField.getText());
    queue.addElement(c);

  • How to save and retrieve an excel file as an object into lob column?

    Hi ,
    I need to save and retrieve the whole excel file with 3 or more sheets as an object into the lob column of table.
    For example:
    t_docments
    (doc_id number,
    excel_data clob
    All excel files need to be saved to excel_data column.
    What should I do?
    Thanks

    Did you check the asktom thread posted by Jens?
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P1
    1_QUESTION_ID:232814159006
    There's example of varies file types.Yes, I did try some examples.
    Those work for .doc/.pdf/.jpg files, BUT NOT for excel file.
    The following error happened when retrieving excel file(retrieving .doc/.pdf are OK)
    ORA-29285: file write error
    ORA-06512: at "SYS.UTL_FILE", line 18
    ORA-06512: at "SYS.UTL_FILE", line 375
    ORA-06512: at "SYS.UTL_FILE", line 990

  • Update and Write Back DataTable in Object Variable Using Script Component

    Hi All..
    I'm trying to update an Object Type Variable [ReadWrite] with a Data Flow Task Script Component. Variable is already holding a record set with Column(s) like, ID, Name, IsProcessed.
    Now in my Data Flow Script Component, I'm trying to 1st) Fill a DataTable with my variables value then 2nd) Loop through each Input Rows in Data Flow Component and accordingly if there is a match of ID then updating IsProcessed Column in DataTable. 3rd &Finally,
    Copy datatable back to Object Type Variable.
    Below is the code used and just for your ref. I tried Printing content of whole DataTable after Update. This looks perfect but not sure why my variable is able to capture it.
    using System;
    using System.Data;
    using System.Data.OleDb;
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System.Windows.Forms;
    using System.Collections.Generic;
    using System.Text;
    [Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
    public class ScriptMain : UserComponent
    DataTable dt = new DataTable();
    OleDbDataAdapter adapter = new OleDbDataAdapter();
    List<string> listriuid = new List<string>();
    public override void PreExecute()
    base.PreExecute();
    public override void PostExecute()
    base.PostExecute();
    adapter.Fill(dt, this.Variables.varobjChildPackageLog);
    dt.AcceptChanges();
    foreach (DataRow row in dt.Rows)
    if (listriuid.Contains(row["ID"].ToString()))
    row["IsProcessed"] = "Y";
    // Just to see the Final Data Table Output
    //StringBuilder b = new StringBuilder();
    //foreach (System.Data.DataRow r in dt.Rows)
    // foreach (DataColumn c in dt.Columns)
    // b.Append(c.ColumnName.ToString() + ":" + r[c.ColumnName].ToString());
    //MessageBox.Show(b.ToString());
    this.Variables.varobjChildPackageLog = dt;
    dt.Dispose();
    adapter.Dispose();
    public override void RIUIDInput_ProcessInputRow(RIUIDInputBuffer Row)
    try
    listriuid.Add(Row.ID.ToString());
    catch (Exception ex)
    MessageBox.Show(ex.Message.ToString());
    Regards, Avik M.

    why do you need to do this in script task.
    This is just a matter of using lookup task while you retrive data from source itself to find the matches and use a derived column transform to check and set appropriate value for IsProcessed column. The object variable itself is not required and you dont
    even require a looping statement either!
    If both source and lookup tables are in same server then you can just wrap them inside source sql query itself to do matching and retrieve the value for IsProcessed within select statement itself in OLEDB Source inside data flow.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • I purchased an iPhone 3 and had photos on it. Started having issues within 30 days and could replace it. Moved photos to back up on iCloud. did not restore new phone from back up how can i save the new photos and retrieve the old ones?

    I purchased an iPhone 3 and had taken some photos on it. I started having issues within 30 days and could replace it. So I created an iCloud account and  saved those photos as a back up on iCloud. I did not restore my new phone from back up because I did not realize I needed to restore and not just activitate it. How can I save the new photos, apps, and other stuff but retrieve the old photos?

    If all you want is your old photos, you could backup your new phone using iTunes, then restore it from your iCloud backup, import the old photos to your computer, then restore it from the backup your made in iTunes returning your newer data to your phone.  If you want your old photos on your phone, sync them there from your computer using iTunes.  The process would look like this:
    Connect your phone to your computer, when it appears in iTunes on the left sidebar right-click on it and select Transfer Purchases; right-click again and select Backup.
    Disconnect from your computer and go to Settings>General>Reset>Erase All Content and Settings to return it to new
    Go through the activation setup, choosing to Restore from iCloud backup.  Make sure your phone is plugged into a charger and has access to wi-fi as this can take hours to complete.
    When complete, without connecting your phone to your computer, open iTunes and go to Preferences.  On the Devices tab check "Prevent...from syncing automatically"
    Now import the old photos to your computer (see http://support.apple.com/kb/HT4083)
    When done, open iTunes, right-click on the name of your phone on the left sidebar and select Restore from Backup, choose the backup you made in step 1.
    Go to the Photos tab and select the photos you want to sync to your phone and sync.

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • Creating remote objects and passing the retrieved data to modules

    I found at this Adobe tutorial a nice "RemoteService" class that  creates a RemoteObject and contains the functions for handling the  result and fault events. If I wanted to use this approach, how could I  pass the data from the result handler to interfaces that modules from  the main application could use?
    I could put the RemoteService/RemoteObject in the modules, but (in my  opinion- and I could be wrong) the best design seems to be using the  remote calls in the main app and passing the data along to the modules.
    Ultimately, I would like to know what the "best practices" are for creating remote objects and passing the retrieved data to modules
    Thanks!

    public void mouseClicked(MouseEvent e) {
      X x = new X(e.getX(), e.getY());
    }I don't see the difficulty.

  • OLE object storage and retrieval FORMS 6.0

    Hello All,
    Iam using forms 6.0 and iam using OLE object to store the data object into the database, using the block wizard i created the object and from the
    action->Save iam saving the ole object to the database....
    Now i want to retrive the ole object from the database....
    my sql is
    declare
    ol long raw;
    begin
    select ole_object into ol from drawing_files where draw_no=1;
    drawing_files.ole_object:=ol;
    end;
    Its showing error in "Bad bind variable"
    How to solve the error
    and if possible i need the sql coding for storage and retreival of OLE object data..
    Thanks......

    I have re-applied the patch and the problem has vanished??
    Everything appears to function properly.

  • Synced firefox, saved firefix sync key and made format to my computer, now I can't get it synced with formated computer - what can I do to get my passwords and bookmarks back?

    I synced my firefox and made format to my computer. I was hoping I can sync formated computer with my user. I even saved "firefox sync key". But now I can only make new sync and can' get my old passwords and bookmarks back. Is there any way i could get my passwords and bookmarks back?

    Add that computer to the Sync service as a new device.

  • My partner deleted my itunes (10) library. I use a WD external back-up and retrieved my itunes library, but when i try to play a song i get the message 'could not be used because the original file could not be found Would you like to locate it?'

    My partner deleted, by accident my itunes library. I have an iMac 10.6.7, Itunes 10. I use an WD passport as an external back up and retrieved my itunes library but now get the message "could not be used because the original file could not be found. Would you like to locate it?" so itunes is not recognised the exclamation marked songs, how do i get the retrieved files recognised. At times I get fed-up with Apple blocking files being used, although I like the product its restrictions are so silly!

    You not only have to retrieve the library file from the backup drive but the actual music files (usually stored within the "iTunes Media" folder) as well.

  • So i had my ipod stolen and i backed up everythink on to my itunes before, i cant really afford another one and all i really want is the notes what i saved. is there a way to get to them???

    so i had my ipod stolen and i backed up everythink on to my itunes before, i cant really afford another one and all i really want is the notes what i saved. is there a way to get to them???

    No. If you had configured Find My Phone in icloud.com, then you can lock it or erase it, but you cannot recover data from it.
    There probably are third-party utilities that might be able to extract data from the backup file itself. Look for them at MacUpdate.

Maybe you are looking for