16 #include "visbasemod.h" 28 namespace osg {
class Drawable;
class Vec3f;
class Geode; }
47 void setPosition(
const osg::Vec3f&);
48 void setPosition(
const Coord3&,
49 bool scenespace =
false);
50 Coord3 getPosition()
const;
52 void setFontData(
const FontData&,
float pixeldens);
55 void updateFontSize(
float pixeldensity);
60 void setColor(
const Color&);
61 Color getColor()
const;
64 int getJustification()
const;
66 osg::Drawable& getDrawable();
67 const osg::Drawable& getDrawable()
const;
69 void setDisplayTransformation(
const mVisTrans*);
88 static void setCreator(OsgFontCreator*);
89 virtual osgText::Font* createFont(
const FontData&) = 0;
99 int nrTexts()
const {
return texts_.size();}
101 void removeText(
const Text*);
106 const Text* text(
int idx=0)
const;
107 Text* text(
int idx=0);
109 void setDisplayTransformation(
const mVisTrans*);
110 void setPixelDensity(
float);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
osgGeo::Text * osgtext_
Definition: vistext.h:75
static Text2 * create()
Definition: vistext.h:96
virtual ~OsgFontCreator()
Definition: vistext.h:85
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
uiString text_
Definition: vistext.h:76
Definition: uistring.h:89
FontData fontdata_
Definition: vistext.h:78
Data needed to make an actual font.
Definition: fontdata.h:20
AxisAlignment
Definition: vistext.h:44
ManagedObjectSet< Text > texts_
Definition: vistext.h:117
const visBase::Transformation * displaytransform_
Definition: vistext.h:119
#define mVisTrans
Definition: visdata.h:31
const uiString & getText() const
Definition: vistext.h:58
A cartesian coordinate in 3D space.
Definition: coord.h:72
Definition: visannot.h:43
const visBase::Transformation * displaytrans_
Definition: vistext.h:74
static uiHor3DInterpol * create(uiParent *)
osg::Geode * geode_
Definition: vistext.h:116
CharacterSizeMode
Definition: vistext.h:42
Open Scene Graph.
Definition: visannot.h:29
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
float getPixelDensity() const
Definition: vistext.h:111
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visobject.h:72
Justification
Definition: vistext.h:39
const FontData & getFontData() const
Definition: vistext.h:53
ObjectSet where the objects contained are owned by this set.
Definition: manobjectset.h:23
float pixeldensity_
Definition: vistext.h:118