Ignore:
Timestamp:
Nov 12, 2010, 9:13:14 AM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

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

    r155 r156  
    8282         * @return : True if successful.
    8383         */
    84         static bool init( osg::CoordinateSystemNode *sceneGraphRoot_, std::string configFileName );
     84        bool init( osg::CoordinateSystemNode *sceneGraphRoot_, std::string configFileName );
    8585
    8686        /**
     
    101101private:
    102102
    103         static bool processXMLConfiguration(std::string& configFileName, std::string& vistaProjectfile, bool& paintBackground, int& position_x, int& position_y, float& zoom);
     103        bool processXMLConfiguration();
    104104
    105105        /**
    106106         * \brief This function initialized the visual_vista2D object after instantiation by createVistaOverlay()
    107107         */
    108         void startVista2D(std::string vistaProjectfile, bool paintBackground, int posX, int posY, float zoom);
     108        void startVista2D();
    109109
    110110        /**
    111111         * \brief This function implements the pure OpenGL draw by calling Vista2D's draw funtion.
    112112         *
    113          * Because Visrta2D manipulates OpenGLs stateset, this function saves the
     113         * Because Vista2D manipulates OpenGLs stateset, this function saves the
    114114         * OSG statset at the beginning and restores it after the drawing of Vista2D
    115115         *
     
    123123        Vista2D::VistaView* view;
    124124
    125         ///**
    126         // * XML config filename
    127         // */
    128         //std::string configFileName;
     125        /**
     126        * XML config filename
     127        */
     128        std::string configFileName;
    129129
    130         ///**
    131         // * Filename of the Vista2D project file.
    132         // */
    133         //std::string filename;
     130        /**
     131        * Filename of the Vista2D project file.
     132        */
     133        std::string vistaProjectfile;
    134134
    135         ///**
    136         // * Should the background of the Vista2D project be painted?
    137         // */
    138         //bool paintBackground;
     135        /**
     136        * Should the background of the Vista2D project be painted?
     137        */
     138        bool paintBackground;
    139139
    140         ///**
    141         // * X-Position to draw.
    142         // */
    143         //int position_x;
     140        /**
     141        * X-Position to draw.
     142        */
     143        int position_x;
    144144
    145         ///**
    146         // * Y-Position to draw.
    147         // */
    148         //int position_y;
     145        /**
     146        * Y-Position to draw.
     147        */
     148        int position_y;
    149149
    150         ///**
    151         // * Zoom factor to draw the project.
    152         // */
    153         //double zoom;
     150        /**
     151         * Zoom factor to draw the project.
     152         */
     153        double zoom;
     154
     155        /**
     156         * Flag if Vista2D should animate the project according to it's data sources.
     157         */
     158        bool playanimation;
    154159};
    155160
Note: See TracChangeset for help on using the changeset viewer.