Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #pragma once
0002 /**
0003 SOpticks.hh
0004 ==============
0005 
0006 * HMM : LOOKS IRRELEVANT NOW : TODO: REMOVE 
0007 
0008 Collecting the subset of Opticks API needed in CSGOptiX as it 
0009 would be helpful to be able to build CSGOptiXRenderTest with 
0010 a really minimal install excluding : brap, NPY, optickscore
0011 
0012 The major difficulty with that is Composition which brings in a large number of classes. 
0013 TODO: review Composition and dependents and see how difficult to relocate to sysrap 
0014 
0015 
0016 Wavelength Domain
0017 -------------------
0018 
0019 ::
0020 
0021     In [17]: np.arange(60., 820.1, 20. ).shape
0022     Out[17]: (39,)
0023 
0024     In [18]: np.arange(60., 820.1, 1. ).shape
0025     Out[18]: (761,)
0026 
0027 
0028 **/
0029 
0030 #include <vector>
0031 #include "plog/Severity.h"
0032 #include "SYSRAP_API_EXPORT.hh"
0033 
0034 struct SArgs ; 
0035 class Composition ; 
0036 
0037 
0038 struct SYSRAP_API SOpticks
0039 {
0040     static const plog::Severity LEVEL ; 
0041 
0042     static const char* CFBaseScriptPath() ; 
0043     static std::string CFBaseScriptString(const char* cfbase, const char* msg); 
0044     static void WriteCFBaseScript(const char* cfbase, const char* msg);
0045     static void WriteOutputDirScript(const char* outdir); 
0046     static void WriteOutputDirScript(); 
0047 
0048     SOpticks(int argc, char** argv, const char* argforced ) ; 
0049 
0050     bool                          hasArg(const char* arg) const ; 
0051     bool                          isEnabledMergedMesh(unsigned ridx); 
0052     std::vector<unsigned>&        getSolidSelection() ;
0053     const std::vector<unsigned>&  getSolidSelection() const ;
0054     int                           getRaygenMode() const ; 
0055 
0056     Composition*                  getComposition() const ; 
0057     const char*                   getOutDir() const ;  
0058 
0059     SArgs*                        m_sargs ;
0060     std::vector<unsigned>         m_solid_selection ; 
0061 };
0062 
0063 
0064 
0065