Ignore:
Timestamp:
Nov 11, 2010, 9:03:48 PM (13 years ago)
Author:
Torben Dannhauer
Message:

visual2D enhanced to use XML config file.
todo: test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/include/vista2D/visual_vista2D.h

    r32 r153  
    1717
    1818#include "VistaView.h"
     19
     20#include <string>
    1921
    2022#include <osg/Drawable>
     
    7072         * @return : True if successful.
    7173         */
    72         static bool createVistaOverlay( std::string vista2DFilename_, osg::CoordinateSystemNode *sceneGraphRoot_ );
     74        static bool init( osg::CoordinateSystemNode *sceneGraphRoot_, std::string configFileName );
    7375
    7476        /**
     
    8890
    8991private:
     92
     93        bool processXMLConfiguration();
     94
    9095        /**
    9196         * \brief This function initialized the visual_vista2D object after instantiation by createVistaOverlay()
    92          *
    93          * @param vista2DFilename_ : Vista2D project file to instantiate.
    9497         */
    95         void init(std::string vista2DFilename_);
     98        void startVista2D();
    9699
    97100        /**
     
    109112         */
    110113        Vista2D::VistaView* view;
     114
     115        /**
     116         * XML config filename
     117         */
     118        std::string configFileName;
     119
     120        /**
     121         * Filename of the Vista2D project file.
     122         */
     123        std::string filename;
     124
     125        /**
     126         * Should the background of the Vista2D project be painted?
     127         */
     128        bool paintBackground;
     129
     130        /**
     131         * X-Position to draw.
     132         */
     133        int position_x;
     134
     135        /**
     136         * Y-Position to draw.
     137         */
     138        int position_y;
     139
     140        /**
     141         * Zoom factor to draw the project.
     142         */
     143        double zoom;
    111144};
    112145
Note: See TracChangeset for help on using the changeset viewer.