Changeset 13041 for OpenSceneGraph/trunk/include/osg/ClipPlane
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/ClipPlane (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/ClipPlane
r11808 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 */ … … 52 52 _clipPlaneNum=cp._clipPlaneNum; 53 53 } 54 54 55 55 virtual osg::Object* cloneType() const { return new ClipPlane( _clipPlaneNum ); } 56 56 virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new ClipPlane(*this,copyop); } … … 59 59 virtual const char* className() const { return "ClipPlane"; } 60 60 virtual Type getType() const { return CLIPPLANE; } 61 61 62 62 /** Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */ 63 63 virtual int compare(const StateAttribute& sa) const … … 87 87 88 88 /** Set the clip plane with the given Plane. */ 89 void setClipPlane(const Plane& plane) 89 void setClipPlane(const Plane& plane) 90 90 { 91 91 _clipPlane.set(plane[0],plane[1],plane[2],plane[3]); … … 115 115 116 116 protected : 117 117 118 118 virtual ~ClipPlane(); 119 119 120 120 Vec4d _clipPlane; 121 121 unsigned int _clipPlaneNum;
