- Timestamp:
- May 29, 2010, 11:52:47 PM (14 years ago)
- Location:
- osgVisual
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/include/core/visual_core.h
r32 r55 130 130 */ 131 131 osg::ref_ptr<NodeTrackerSpaceMouse> mouseTrackerManip; 132 133 /** 134 * Space mouse hardware driver instance 135 */ 136 SpaceMouse* mouse; 132 137 #endif 133 138 … … 137 142 osg::ref_ptr<objectMountedManipulator> objectMountedCameraManip; 138 143 139 /**140 * Space mouse hardware driver instance141 */142 SpaceMouse* mouse;143 144 144 145 #ifdef USE_SKY_SILVERLINING -
osgVisual/include/extLink/manip_extLink.h
r32 r55 29 29 * @date Aug 2009 30 30 */ 31 class extLinkManipulator : public osgGA:: MatrixManipulator31 class extLinkManipulator : public osgGA::CameraManipulator 32 32 { 33 33 public: -
osgVisual/include/manip_ObjectMounted/manip_objectMounted.h
r32 r55 16 16 */ 17 17 18 #include <osgGA/ MatrixManipulator>18 #include <osgGA/CameraManipulator> 19 19 20 20 #include <osg/Quat> … … 33 33 * @date Aug 2009 34 34 */ 35 class objectMountedManipulator : public osgGA:: MatrixManipulator35 class objectMountedManipulator : public osgGA::CameraManipulator 36 36 { 37 37 public: -
osgVisual/include/manip_Spacemouse/manip_freeSpaceMouse.h
r32 r55 20 20 21 21 // OSG includes 22 #include <osgGA/ MatrixManipulator>22 #include <osgGA/CameraManipulator> 23 23 #include <osgGA/GUIEventAdapter> 24 24 #include <osgGA/GUIActionAdapter> … … 39 39 * @date Aug 2009 40 40 */ 41 class FreeManipulator : public osgGA:: MatrixManipulator41 class FreeManipulator : public osgGA::CameraManipulator 42 42 { 43 43 public: -
osgVisual/include/manip_Spacemouse/manip_nodeTrackerSpaceMouse.h
r32 r55 15 15 */ 16 16 17 #include <osgGA/ MatrixManipulator>17 #include <osgGA/OrbitManipulator> 18 18 19 19 #include <osg/ObserverNodePath> … … 49 49 * @date Apr 2010 50 50 */ 51 class NodeTrackerSpaceMouse : public osgGA:: MatrixManipulator51 class NodeTrackerSpaceMouse : public osgGA::OrbitManipulator 52 52 { 53 53 public: -
osgVisual/include/object/visual_object.h
r32 r55 27 27 #include <osgText/Text> 28 28 29 #include <osgGA/ MatrixManipulator>29 #include <osgGA/CameraManipulator> 30 30 31 31 #include <object_updater.h> -
osgVisual/src/core/visual_core.cpp
r31 r55 36 36 //double* test = new double[1000]; 37 37 38 mouse = NULL; 38 #ifdef USE_SPACENAVIGATOR 39 mouse = NULL; 40 #endif 41 42 //osg::DisplaySettings::instance()->setNumOfDatabaseThreadsHint( 8 ); 39 43 } 40 44 -
osgVisual/src/extLink/dataIO_extLinkDummy.cpp
r31 r55 16 16 17 17 #include "dataIO_extLinkDummy.h" 18 19 #include "memoryLeakDetection.h"20 18 21 19 dataIO_extLinkDummy::dataIO_extLinkDummy(std::vector<dataIOSlot>& dataSlots_) : dataIO_extLink(dataSlots_) -
osgVisual/src/manip_Spacemouse/manip_spaceMouse.cpp
r31 r55 37 37 using namespace osgVisual; 38 38 39 40 39 #import "progid:TDxInput.Device" no_namespace 41 40 -
osgVisual/src/sky_Silverlining/skySilverLining_skyDrawable.cpp
r53 r55 87 87 void skySilverLining_skyDrawable::setSceneFog(SilverLining::Atmosphere *atmosphere) const 88 88 { 89 //glEnable(GL_FOG);90 // glFogi(GL_FOG_MODE, GL_EXP);91 92 ////float hazeR, hazeG, hazeB;93 ////double hazeDepth, hazeDensity;94 ////atmosphere->GetHaze(hazeR, hazeG, hazeB, hazeDepth, hazeDensity);95 96 // //hazeDensity = 1.0 / 40000;97 ////hazeDensity = 0;98 //float hazeDensity = 1.0 / atmosphere->GetConditions()->GetVisibility();99 100 // // Decrease fog density with altitude, to avoid fog effects through the vacuum of space.101 // static const double H = 8435.0; // Pressure scale height of Earth's atmosphere102 // double isothermalEffect = exp(-(atmosphere->GetConditions()->GetLocation().GetAltitude() / H));103 // if (isothermalEffect <= 0) isothermalEffect = 1E-9;104 // if (isothermalEffect > 1.0) isothermalEffect = 1.0;105 // hazeDensity *= isothermalEffect;106 107 // bool silverLiningHandledTheFog = false;108 109 // if (atmosphere->GetFogEnabled())110 // {111 // float density, r, g, b;112 // // Note, the fog color returned is already lit113 // atmosphere->GetFogSettings(&density, &r, &g, &b);114 115 // if (density > hazeDensity)116 // {117 // glFogf(GL_FOG_DENSITY, density);118 119 // GLfloat fogColor[4] = {r, g, b, 1.0};120 // glFogfv(GL_FOG_COLOR, fogColor);121 122 // silverLiningHandledTheFog = true;123 // }124 // }125 //126 // if (!silverLiningHandledTheFog)127 // {128 // GLfloat fogColor[4];129 // //atmosphere->GetHorizonColor(yaw, &fogColor[0], &fogColor[1], &fogColor[2]); // New version of this call: SL_1.94 /** \todo transmit the yaw value of the center channel to all slaves for consistent fog color. */130 // atmosphere->GetHorizonColor( 0, &fogColor[0], &fogColor[1], &fogColor[2]);131 // glFogfv(GL_FOG_COLOR, fogColor);132 133 // glFogf(GL_FOG_DENSITY, hazeDensity);134 // }135 136 137 138 139 140 141 89 osg::ref_ptr<osg::Fog> fog = new osg::Fog; 142 90 fog->setMode(osg::Fog::EXP);
Note: See TracChangeset
for help on using the changeset viewer.