openscenegraph
TabPlaneDragger
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
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
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13//osgManipulator - Copyright (C) 2007 Fugro-Jason B.V.
14
15#ifndef OSGMANIPULATOR_TABPLANEDRAGGER
16#define OSGMANIPULATOR_TABPLANEDRAGGER 1
17
21
22namespace osgManipulator {
23
29{
30 public:
31
32 TabPlaneDragger(float handleScaleFactor=20.0f);
33
35
36 virtual bool handle(const PointerInfo& pi, const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);
37
39 void setupDefaultGeometry(bool twoSidedHandle = true);
40
41 void setPlaneColor(const osg::Vec4& color) { _translateDragger->setColor(color); }
42
43 protected:
44
46
51
53};
54
55
56}
57
58#endif
Definition Dragger:319
Definition Dragger:84
Definition TabPlaneDragger:29
META_OSGMANIPULATOR_Object(osgManipulator, TabPlaneDragger) virtual bool handle(const PointerInfo &pi
osg::ref_ptr< Scale2DDragger > _cornerScaleDragger
Definition TabPlaneDragger:48
float _handleScaleFactor
Definition TabPlaneDragger:52
osg::ref_ptr< Scale1DDragger > _horzEdgeScaleDragger
Definition TabPlaneDragger:49
osg::ref_ptr< TranslatePlaneDragger > _translateDragger
Definition TabPlaneDragger:47
osg::ref_ptr< Scale1DDragger > _vertEdgeScaleDragger
Definition TabPlaneDragger:50
TabPlaneDragger(float handleScaleFactor=20.0f)
Definition ref_ptr:32
Definition Callback:21
Definition AntiSquish:23
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSGMANIPULATOR_EXPORT
Definition osgManipulator/Export:27