MiltonParams.h

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @class  MiltonParams
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006    
00007    @brief
00008       MiltonApp parameters parsed from the commandline and overrideable by 
00009    MiltonApp users / subclasses
00010    <!-------------------------------------------------------------------->**/
00011 
00012 #ifndef MILTON_PARAMS_H_
00013 #define MILTON_PARAMS_H_
00014 
00015 #include <common/common.h>
00016 
00017 DECLARE_STL_TYPEDEF(std::vector<std::string>, StringList);
00018 
00019 class RenderOutput;
00020 
00021 struct MiltonParams {
00022    bool enableGui;     // enable / disable Qt gui
00023                        // note: X11 will not be started if gui is disabled
00024    bool startRender;   // whether or not to initiate renders right away
00025    bool forcePreview;  // whether or not to force OpenGL previews
00026                        // (disables rendering)
00027    bool verbose;       // extra debugging printouts (disabled by default)
00028    
00029    std::string output; // if gui is disabled, default output
00030    
00031    StringList scenefiles;
00032    
00033    inline MiltonParams()
00034       : enableGui(true), startRender(true), forcePreview(false), 
00035         verbose(false), output("out.png")
00036    { }
00037 };
00038 
00039 #endif // MILTON_PARAMS_H_
00040 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6