source: nanovis/branches/1.2/OrientationIndicator.h @ 5500

Last change on this file since 5500 was 5498, checked in by ldelgass, 9 years ago

Officially merge r3605 -- picks up OrientationIndicator?, but is disabled for
now.

  • Property svn:eol-style set to native
File size: 734 bytes
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
10namespace nv {
11class OrientationIndicator
12{
13public:
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
36private:
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.