Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * Copyright (c) 2004-2013 HUBzero Foundation, LLC |
---|
4 | * |
---|
5 | * Author: Leif Delgass <ldelgass@purdue.edu> |
---|
6 | */ |
---|
7 | #ifndef ORIENTATION_INDICATOR_H |
---|
8 | #define ORIENTATION_INDICATOR_H |
---|
9 | |
---|
10 | namespace nv { |
---|
11 | class OrientationIndicator |
---|
12 | { |
---|
13 | public: |
---|
14 | enum Representation { |
---|
15 | LINES, |
---|
16 | ARROWS |
---|
17 | }; |
---|
18 | |
---|
19 | OrientationIndicator(); |
---|
20 | virtual ~OrientationIndicator(); |
---|
21 | |
---|
22 | void setRepresentation(Representation rep); |
---|
23 | |
---|
24 | void render(); |
---|
25 | |
---|
26 | bool isVisible() const |
---|
27 | { |
---|
28 | return _visible; |
---|
29 | } |
---|
30 | |
---|
31 | void setVisible(bool state) |
---|
32 | { |
---|
33 | _visible = state; |
---|
34 | } |
---|
35 | |
---|
36 | private: |
---|
37 | Representation _rep; |
---|
38 | bool _visible; |
---|
39 | float _lineWidth; |
---|
40 | void *_quadric; |
---|
41 | }; |
---|
42 | } |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.