root/OpenSceneGraph/trunk/include/osgManipulator/TranslateAxisDragger @ 9899

Revision 9899, 1.4 kB (checked in by robert, 6 years ago)

From David Callu, "osgManipulator Object have not META_Object macro call in class definition.

I add META_OSGMANIPULATOR_Object macro which define className, libraryName,
isSameKindAs methods.
Clone method is not appropriate for osgManipulator Object."

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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_TRANSLATEAXISDRAGGER
16#define OSGMANIPULATOR_TRANSLATEAXISDRAGGER 1
17
18#include <osgManipulator/Translate1DDragger>
19
20namespace osgManipulator {
21
22/**
23 * Dragger for performing translation in all three axes.
24 */
25class OSGMANIPULATOR_EXPORT TranslateAxisDragger : public CompositeDragger
26{
27    public:
28
29        TranslateAxisDragger();
30
31        META_OSGMANIPULATOR_Object(osgManipulator,TranslateAxisDragger)
32
33        /** Setup default geometry for dragger. */
34        void setupDefaultGeometry();
35
36    protected:
37
38        virtual ~TranslateAxisDragger();
39
40        osg::ref_ptr< Translate1DDragger >  _xDragger;
41        osg::ref_ptr< Translate1DDragger >  _yDragger;
42        osg::ref_ptr< Translate1DDragger >  _zDragger;
43};
44
45
46}
47
48#endif
Note: See TracBrowser for help on using the browser.