-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathBaseLocator.h
47 lines (36 loc) · 1.77 KB
/
BaseLocator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/***********************************************************************
BaseLocator - Base class for locators in visualizer application.
Copyright (c) 2005-2012 Oliver Kreylos
This file is part of the 3D Data Visualizer (Visualizer).
The 3D Data Visualizer is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
The 3D Data Visualizer is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with the 3D Data Visualizer; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***********************************************************************/
#ifndef BASELOCATOR_INCLUDED
#define BASELOCATOR_INCLUDED
#include <Vrui/LocatorToolAdapter.h>
/* Forward declarations: */
class GLRenderState;
class Visualizer;
class BaseLocator:public Vrui::LocatorToolAdapter
{
/* Elements: */
protected:
Visualizer* application;
/* Constructors and destructors: */
public:
BaseLocator(Vrui::LocatorTool* sTool,Visualizer* sApplication);
/* New methods: */
virtual void highlightLocator(GLRenderState& renderState) const; // Renders the locator itself
virtual void renderLocator(GLRenderState& renderState) const; // Renders opaque elements and other objects controlled by the locator
virtual void renderLocatorTransparent(GLRenderState& renderState) const; // Renders transparent elements and other objects controlled by the locator
};
#endif