by Phill » Wed Jul 28, 2010 11:19 pm
Olivier
My understanding is the markups are sort of like a cookie, and are stored somewhere in your temp directory. As a solution to this problem if you add the following code to your CycloneXUI.xslt at line 134, on loading the truview will load the Markup.xml file from the local truview folder. What I mean is markup the truview and then save the markups to a file called "Markup.xml" under the folder the truview is stored in (with all the dat, jpg and png files). If you then add the following line of code
CX_Control.LoadMarks("Markup.xml", true )
in the CycloneXUI.xslt file as shown below it should autoload the markups on the way in.
<script language="javascript" for="CX_Control" event="ControlInitialized()">
if ( !controlLoading )
{
controlLoading = true;
loadingStarted = true;
CX_Control.src = "CubeMapMeta.xml";
activateTab('Measure');
CX_Control.LoadMarks(markupFilename, false ); // Do not force server version of markup to load
if ( CX_Control.MarksLocal )
MarkupFileNameText.innerHTML = "Client side marks: " + markupFilename;
else
MarkupFileNameText.innerHTML = "Server side marks: " + markupFilename;
Mark3DXNameTxt.innerHTML = "ΔX:";
Mark3DYNameTxt.innerHTML = "ΔY:";
Mark3DZNameTxt.innerHTML = "ΔZ:";
updateToolBar();
setMaxNeighborsFromCookie();
CX_Control.LoadMarks("Markup.xml", true )
}
</script>
Good luck, and p.s. I only did minimal testing to get this to work, and I am not a java guru.
Cheers
Phill