Changeset 13041 for OpenSceneGraph/trunk/include/osg/View
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/View (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/View
r12404 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 */ … … 36 36 37 37 META_Object(osg,View); 38 38 39 39 /** Take all the settings, Camera and Slaves from the passed in view, leaving it empty. */ 40 40 virtual void take(View& rhs); … … 58 58 SKY_LIGHT 59 59 }; 60 60 61 61 /** Set the global lighting to use for this view. 62 62 * Defaults to headlight. */ … … 75 75 const osg::Light* getLight() const { return _light.get(); } 76 76 77 /** Set the master camera of the view. */ 77 /** Set the master camera of the view. */ 78 78 void setCamera(osg::Camera* camera); 79 79 80 /** Get the master camera of the view. */ 80 /** Get the master camera of the view. */ 81 81 osg::Camera* getCamera() { return _camera.get(); } 82 82 83 /** Get the const master camera of the view. */ 83 /** Get the const master camera of the view. */ 84 84 const osg::Camera* getCamera() const { return _camera.get(); } 85 85 86 /** Set the frame stamp of the view. */ 86 /** Set the frame stamp of the view. */ 87 87 void setFrameStamp(osg::FrameStamp* fs) { _frameStamp = fs; } 88 88 89 /** Get the frame stamp of the view. */ 89 /** Get the frame stamp of the view. */ 90 90 osg::FrameStamp* getFrameStamp() { return _frameStamp.get(); } 91 91 92 /** Get the frame stamp of the view. */ 92 /** Get the frame stamp of the view. */ 93 93 const osg::FrameStamp* getFrameStamp() const { return _frameStamp.get(); } 94 94 … … 99 99 Slave(bool useMastersSceneData=true): 100 100 _useMastersSceneData(useMastersSceneData) {} 101 101 102 102 Slave(osg::Camera* camera, const osg::Matrixd& projectionOffset, const osg::Matrixd& viewOffset, bool useMastersSceneData=true): 103 _camera(camera), 104 _projectionOffset(projectionOffset), 103 _camera(camera), 104 _projectionOffset(projectionOffset), 105 105 _viewOffset(viewOffset), 106 106 _useMastersSceneData(useMastersSceneData) {} 107 107 108 108 Slave(const Slave& rhs) : 109 _camera(rhs._camera), 110 _projectionOffset(rhs._projectionOffset), 109 _camera(rhs._camera), 110 _projectionOffset(rhs._projectionOffset), 111 111 _viewOffset(rhs._viewOffset), 112 112 _useMastersSceneData(rhs._useMastersSceneData), … … 135 135 else updateSlaveImplementation(view); 136 136 } 137 137 138 138 virtual void updateSlaveImplementation(View& view); 139 139 … … 174 174 175 175 osg::ref_ptr<osg::Camera> _camera; 176 176 177 177 typedef std::vector<Slave> Slaves; 178 178 Slaves _slaves;
