- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/LightPointRecords.cpp
r10283 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 132 132 { 133 133 lp._sector = new osgSim::DirectionalSector( 134 vertex._normal, 134 vertex._normal, 135 135 osg::DegreesToRadians(_lobeHorizontal), 136 136 osg::DegreesToRadians(_lobeVertical), … … 146 146 lp._blinkSequence->setDataVariance(osg::Object::DYNAMIC); 147 147 lp._blinkSequence->setPhaseShift(_animationPhaseDelay); 148 lp._blinkSequence->addPulse(_animationPeriod - _animationPeriodEnable, 148 lp._blinkSequence->addPulse(_animationPeriod - _animationPeriodEnable, 149 149 osg::Vec4f(0.0f, 0.0f, 0.0f, 0.0f)); 150 150 lp._blinkSequence->addPulse(_animationPeriodEnable, lp._color); … … 166 166 // back sector 167 167 lp._sector = new osgSim::DirectionalSector( 168 -vertex._normal, 168 -vertex._normal, 169 169 osg::DegreesToRadians(_lobeHorizontal), 170 170 osg::DegreesToRadians(_lobeVertical), … … 186 186 187 187 int32 backColorIndex = in.readInt32(); 188 189 _backColor = document.getColorPool() ? 190 document.getColorPool()->getColor(backColorIndex) : 188 189 _backColor = document.getColorPool() ? 190 document.getColorPool()->getColor(backColorIndex) : 191 191 osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f); 192 192 193 193 _displayMode = in.readInt32(); 194 194 _intensityFront = in.readFloat32(); … … 286 286 { 287 287 lp._sector = new osgSim::DirectionalSector( 288 vertex._normal, 288 vertex._normal, 289 289 osg::DegreesToRadians(_appearance->horizontalLobeAngle), 290 290 osg::DegreesToRadians(_appearance->verticalLobeAngle), … … 359 359 // back sector 360 360 lp._sector = new osgSim::DirectionalSector( 361 -vertex._normal, 361 -vertex._normal, 362 362 osg::DegreesToRadians(_appearance->horizontalLobeAngle), 363 363 osg::DegreesToRadians(_appearance->verticalLobeAngle),
