OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 
15 #include "visdata.h"
16 
17 class FontData;
18 namespace osgGeo{ class AxesNode; }
19 
20 namespace visBase
21 {
22 
23 class Camera;
24 
26 {
27 public:
28  static Axes* create()
30  void setRadius(float);
31  float getRadius() const;
32  void setLength(float);
33  float getLength() const;
34  void setPosition(float,float);
35  void setSize(float rad, float len);
36  void setAnnotationColor(const Color&);
37  void setAnnotationTextSize(int);
38  void setAnnotationFont(const FontData&);
39  void setPrimaryCamera(visBase::Camera*);
40 
41  virtual void setPixelDensity(float dpi);
42 
43 protected:
44  ~Axes();
45 
46  osgGeo::AxesNode* axesnode_;
47  // TODO: rename to primarycamera_
48  Camera* mastercamera_;
49  bool ison_;
50  float pixeldensity_;
51  int annottextsize_;
52 
53 public:
54  mDeprecated("Use setPrimaryCamera")
55  void setMasterCamera(visBase::Camera*);
56 
57 };
58 
59 } // namespace visBase
visBase
Definition: visannot.h:43
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
visBase::DataObject
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:63
mDeprecated
#define mDeprecated(msg)
Definition: plfdefs.h:215
visdata.h
visBase::Axes
Definition: visaxes.h:26
osgGeo
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
mCreateDataObj
#define mCreateDataObj(clss)
Definition: visdata.h:214
visBase::Camera
keep osg camera status and render info
Definition: viscamera.h:30
visBase::Axes::create
static Axes * create()
Definition: visaxes.h:28
FontData
Data needed to make an actual font.
Definition: fontdata.h:20
Color
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26

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