OpendTect  7.0
Public Types | Public Member Functions | Protected Attributes | List of all members
visBase::Text Class Reference

Public Types

enum  AxisAlignment {
  XY , ReversedXY , XZ , ReversedXZ ,
  YZ , ReversedYZ , OnScreen , User
}
 
enum  CharacterSizeMode { Object , Screen , ObjectWithScreenMaximum }
 
enum  Justification {
  Left , Right , Center , Top ,
  Bottom , TopLeft , TopRight , BottomLeft ,
  BottomRight
}
 

Public Member Functions

 Text ()
 
 ~Text ()
 
OD::Color getColor () const
 
osg::Drawable & getDrawable ()
 
const osg::Drawable & getDrawable () const
 
const FontDatagetFontData () const
 
int getJustification () const
 
Coord3 getPosition () const
 
const uiStringgetText () const
 
void setAxisAlignment (AxisAlignment)
 
void setCharacterSizeMode (CharacterSizeMode)
 
void setColor (const OD::Color &)
 
void setDisplayTransformation (const visBase::Transformation *)
 
void setFontData (const FontData &, float pixeldens)
 
void setJustification (Justification)
 
void setPosition (const Coord3 &, bool scenespace=false)
 
void setPosition (const osg::Vec3f &)
 
void setRotation (float radangle, const Coord3 &axis)
 
void setText (const uiString &)
 
void updateFontSize (float pixeldensity)
 

Protected Attributes

const visBase::Transformationdisplaytrans_
 
FontData fontdata_
 
osgGeo::Text * osgtext_
 
uiString text_
 

Detailed Description

<>

Member Enumeration Documentation

◆ AxisAlignment

Enumerator
XY 
ReversedXY 
XZ 
ReversedXZ 
YZ 
ReversedYZ 
OnScreen 
User 

◆ CharacterSizeMode

Enumerator
Object 
Screen 
ObjectWithScreenMaximum 

◆ Justification

Enumerator
Left 
Right 
Center 
Top 
Bottom 
TopLeft 
TopRight 
BottomLeft 
BottomRight 

Constructor & Destructor Documentation

◆ Text()

visBase::Text::Text ( )

◆ ~Text()

visBase::Text::~Text ( )

Member Function Documentation

◆ getColor()

OD::Color visBase::Text::getColor ( ) const

◆ getDrawable() [1/2]

osg::Drawable& visBase::Text::getDrawable ( )

◆ getDrawable() [2/2]

const osg::Drawable& visBase::Text::getDrawable ( ) const

◆ getFontData()

const FontData& visBase::Text::getFontData ( ) const
inline

◆ getJustification()

int visBase::Text::getJustification ( ) const

◆ getPosition()

Coord3 visBase::Text::getPosition ( ) const

◆ getText()

const uiString& visBase::Text::getText ( ) const
inline

◆ setAxisAlignment()

void visBase::Text::setAxisAlignment ( AxisAlignment  )

◆ setCharacterSizeMode()

void visBase::Text::setCharacterSizeMode ( CharacterSizeMode  )

◆ setColor()

void visBase::Text::setColor ( const OD::Color )

◆ setDisplayTransformation()

void visBase::Text::setDisplayTransformation ( const visBase::Transformation )

◆ setFontData()

void visBase::Text::setFontData ( const FontData ,
float  pixeldens 
)

◆ setJustification()

void visBase::Text::setJustification ( Justification  )

◆ setPosition() [1/2]

void visBase::Text::setPosition ( const Coord3 ,
bool  scenespace = false 
)

◆ setPosition() [2/2]

void visBase::Text::setPosition ( const osg::Vec3f &  )

◆ setRotation()

void visBase::Text::setRotation ( float  radangle,
const Coord3 axis 
)

◆ setText()

void visBase::Text::setText ( const uiString )

◆ updateFontSize()

void visBase::Text::updateFontSize ( float  pixeldensity)

Member Data Documentation

◆ displaytrans_

const visBase::Transformation* visBase::Text::displaytrans_
protected

◆ fontdata_

FontData visBase::Text::fontdata_
protected

◆ osgtext_

osgGeo::Text* visBase::Text::osgtext_
protected

◆ text_

uiString visBase::Text::text_
protected

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