Ignore:
Timestamp:
03/12/10 09:55:04 (2 years ago)
Author:
ddangelo
Message:

Python function to calculate the bounding box of a av::osg::Node added.
The LoadFile? node now outputs the filename of the loaded object in the field "FilenameLoaded?", as soon as the file is actually loaded. This is useful to trigger actions which depend on the presence of the loaded object (e.g. the calculation of the bounding box).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/src/avango/osg/LoadFile.cpp

    r154 r347  
    4747{ 
    4848  AV_FC_ADD_FIELD(Filename, mFilename); 
     49  AV_FC_ADD_FIELD(FilenameLoaded, ""); 
    4950} 
    5051 
     
    119120      // add new geometry 
    120121      getOsgMatrixTransform()->addChild(mLoadedNode.get()); 
     122      FilenameLoaded.setValue(mFilename); 
    121123    } 
    122124 
Note: See TracChangeset for help on using the changeset viewer.