Changeset 231 for osgVisual/trunk/include/core
- Timestamp:
- Feb 13, 2011, 6:08:42 PM (14 years ago)
- Location:
- osgVisual/trunk/include/core
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/include/core/visual_core.h
r228 r231 24 24 #include <osg/Referenced> 25 25 #include <osg/Notify> 26 27 26 #include <osgViewer/Viewer> 28 29 27 #include <osgDB/ReadFile> 30 28 31 // OSGeventhandler32 #include < osgViewer/ViewerEventHandlers>29 // Manipulator and eventhandler 30 #include <core_manipulator.h> 33 31 34 // OSG manipulator35 #include <osgGA/TrackballManipulator>36 #include <osgGA/FlightManipulator>37 #include <osgGA/DriveManipulator>38 #include <osgGA/KeySwitchMatrixManipulator>39 #include <osgGA/StateSetManipulator>40 #include <osgGA/AnimationPathManipulator>41 #include <osgGA/TerrainManipulator>42 #include <osgGA/NodeTrackerManipulator>43 44 // Spacenavigator manipulator45 #ifdef USE_SPACENAVIGATOR46 #include <manip_spaceMouse.h>47 #include <manip_nodeTrackerSpaceMouse.h>48 #include <manip_freeSpaceMouse.h>49 #endif50 51 // Object mounted manipulator52 #include <manip_objectMounted.h>53 32 54 33 #ifdef USE_DISTORTION … … 85 64 #endif 86 65 66 67 87 68 // Test 88 69 #include <dataIO_transportContainer.h> … … 105 86 void shutdown(); 106 87 107 void addManipulators();108 88 void parseScenery(xmlNode * a_node); 109 89 bool loadTerrain(osg::ArgumentParser& arguments_); … … 111 91 112 92 void setupScenery(); 113 void trackNode( osg::Node* node_ );114 void trackNode( int trackingID );115 int getCurrentTrackingID(){return currentTrackingID;};116 93 117 94 protected: 95 /** 96 * \brief Destrcutor 97 * 98 */ 118 99 virtual ~visual_core(void); 119 100 120 121 101 private: 102 /** 103 * \brief This function starts the main rendering loop 104 * 105 */ 122 106 void mainLoop(); 123 107 … … 143 127 144 128 145 #ifdef USE_SPACENAVIGATOR146 /**147 * Spacemouse node tracker manipulator148 */149 osg::ref_ptr<NodeTrackerSpaceMouse> mouseTrackerManip;150 151 /**152 * Space mouse hardware driver instance153 */154 SpaceMouse* mouse;155 #endif156 157 /**158 * This Matrix manipulator is used for controlling Camera by Nodes.159 */160 osg::ref_ptr<objectMountedManipulator> objectMountedCameraManip;161 162 129 163 130 #ifdef USE_SKY_SILVERLINING … … 181 148 osg::ref_ptr<visual_object> testObj; 182 149 183 osg::ref_ptr<osgGA::NodeTrackerManipulator> nt;184 185 150 osg::ref_ptr<visual_debug_hud> hud; 186 151 187 int currentTrackingID;152 osg::ref_ptr<core_manipulator> manipulators; 188 153 }; 189 154
Note: See TracChangeset
for help on using the changeset viewer.