Changeset 144 for osgVisual/include


Ignore:
Timestamp:
Nov 1, 2010, 6:24:56 PM (14 years ago)
Author:
Torben Dannhauer
Message:

start to move osgVisual from argument based configuratiobn to xml file based configuration

Location:
osgVisual/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/include/core/visual_core.h

    r129 r144  
    139139
    140140        /**
    141          * XML File valid?
     141         * XML configuration filename.
    142142         */
    143         bool configFileValid;
     143        std::string configFilename;
     144
    144145
    145146#ifdef USE_SPACENAVIGATOR
  • osgVisual/include/dataIO/visual_dataIO.h

    r118 r144  
    145145        static visual_dataIO* getInstance();
    146146
    147         void init(osgViewer::Viewer* viewer_,osg::ArgumentParser& arguments_);
     147        void init(osgViewer::Viewer* viewer_,osg::ArgumentParser& arguments_, std::string configFileName);
    148148        void shutdown();
    149149        bool isMaster(){if (clusterMode==osgVisual::dataIO_cluster::MASTER) return true; else return false;};
  • osgVisual/include/sky_Silverlining/visual_skySilverLining.h

    r139 r144  
    6565         * @param viewer_ : Pointer to the applications viewer
    6666         */
    67         visual_skySilverLining(osgViewer::Viewer* viewer_);
     67        visual_skySilverLining(osgViewer::Viewer* viewer_, std::string configFileName);
    6868
    6969        /**
  • osgVisual/include/util/visual_util.h

    r88 r144  
    1818#include <string.h>
    1919#include <iostream>
    20 
     20#include <libxml/parser.h>
     21#include <libxml/tree.h>
    2122
    2223#include <osg/Node>
     
    2728
    2829#include <osgViewer/Viewer>
     30
     31#include <OpenThreads/ReentrantMutex>
     32
     33#include <osgUtil/LineSegmentIntersector>
    2934
    3035#ifdef FUNFUNCTIONS_ENABLED
     
    3641#endif
    3742
    38 #include <OpenThreads/ReentrantMutex>
    39 
    40 #include <osgUtil/LineSegmentIntersector>
     43
    4144
    4245namespace osgVisual
     
    216219         */
    217220        static bool setTransparentWindowBackground(osgViewer::Viewer* viewer_);
     221
     222        // Parses for the XML node of the specified module. The caller has to clean up if ret_value!=NULL, otherwise this function cleans up.
     223        // nötige cleanup-Schritte:       xmlFreeDoc(doc); xmlCleanupParser();
     224        static xmlNode* getModuleXMLConfig(std::string configFilename, std::string moduleName, xmlDoc*& doc);
     225
     226private:
     227        static xmlNode* checkXMLNodeChildrenForModule(xmlNode* node, std::string moduleName);
    218228};
    219229
Note: See TracChangeset for help on using the changeset viewer.