Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:17

0001 /**
0002 SGLM_set_frame_test.cc
0003 =======================
0004 
0005 1. load sframe from $SFRAME_FOLD/sframe.npy
0006 2. instanciate SGLM
0007 3. set the frame into SGLM 
0008 4. write SGLM description to $SFRAME_FOLD/SGLM_set_frame_test.log
0009 
0010 ::
0011 
0012     ~/o/sysrap/tests/SGLM_set_frame_test.sh info_build_run_cat
0013 
0014 **/
0015 
0016 #include "SGLM.h"
0017 
0018 int main(int argc, char** argv)
0019 {
0020     sframe fr = sframe::Load("$SFRAME_FOLD") ; 
0021 
0022     std::cout << "//SGLM_set_frame_test.main load sframe from SFRAME_FOLD " << std::endl ; 
0023 
0024     SGLM* sglm = new SGLM  ; 
0025 
0026     sglm->addlog("CSGOptiX::init", "start");
0027 
0028     sglm->set_frame(fr) ; 
0029 
0030     sglm->addlog("CSGOptiX::render_snap", "from SGLM_set_frame_test.cc" );
0031 
0032     sglm->writeDesc("$SFRAME_FOLD", "SGLM_set_frame_test", ".log" ); 
0033 
0034     std::cout << "//SGLM_set_frame_test.main write frame description to SFRAME_FOLD/SGLM_set_frame_test.log" << std::endl ; 
0035 
0036     return 0 ; 
0037 }