Hi Matt,
just call SceneFileHandler::the().setReadProgressCB(progress);
where progress is something like this:
static void progress(UInt32 p)
{
std::cerr << "Loading " << p << "%" << '\r';
}
look into OpenSG/Source/System/FileIO/Base/testLoaderRender.cpp for an
example. In my app I do the file loading in a extra thread, to abort I
kill the loading thread. I'll send you a small example later.
Andreas
I am trying to retrieve the progress from the SceneFileHandler read()
function, and I noticed there's a private var _readProgressFP. I
created a thread to update a progress bar on my client from that data,
but I was unable to read it due to the variable being private. Am I
missing an accessors function, or is there another way to tell what
percent of the file is loaded?
Also, is there a way I could send a signal to abort a very long read if
a user clicks a button choosing to stop loading a file?
Thanks,
Matt Stone
PSU Advanced Visualization Labs
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users