OpendTect  6.3
visaxes.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Ranojay Sen
8  Date: January 2013
9 ________________________________________________________________________
10 
11 -*/
12 
13 
14 #include "visdata.h"
15 
16 class FontData;
17 namespace osgGeo{ class AxesNode; }
18 
19 namespace visBase
20 {
21 
22 class Camera;
23 
25 {
26 public:
27  static Axes* create()
29  void setRadius(float);
30  float getRadius() const;
31  void setLength(float);
32  float getLength() const;
33  void setPosition(float,float);
34  void setSize(float rad, float len);
35  void setAnnotationColor(const Color&);
36  void setAnnotationText(int dim,const uiString&);
37  void setAnnotationTextSize(int);
38  void setAnnotationFont(const FontData&);
39 
40  void setMasterCamera(visBase::Camera*);
41 
42  virtual void setPixelDensity(float dpi);
43 
44 protected:
45  ~Axes();
46 
47  osgGeo::AxesNode* axesnode_;
48  Camera* mastercamera_;
49  bool ison_;
50  float pixeldensity_;
51  int annottextsize_;
52 };
53 
54 } // namespace visBase
#define mExpClass(module)
Definition: commondefs.h:157
keep osg camera status and render info
Definition: viscamera.h:27
static Axes * create()
Definition: visaxes.h:27
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:59
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:35
Definition: uistring.h:88
Data needed to make an actual font.
Definition: fontdata.h:18
Definition: visaxes.h:24
Definition: visannot.h:40
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
#define mCreateDataObj(clss)
Definition: visdata.h:210

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017