Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SmTextureText2CollectorElement Class Reference

#include <SmTextureText2Collector.h>

Inherits SoElement.

Classes

struct  TextItem
 

Public Member Functions

virtual void init (SoState *state)
 
virtual SbBool matches (const SoElement *elt) const
 
virtual SoElementcopyMatchInfo (void) const
 
- Public Member Functions inherited from SoElement
const SoType getTypeId (void) const
 
int getStackIndex (void) const
 
virtual void push (SoState *state)
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 
void setDepth (const int depth)
 
int getDepth (void) const
 
virtual void print (FILE *file=stdout) const
 
virtual ~SoElement ()
 

Static Public Member Functions

static void initClass (void)
 
static void startCollecting (SoState *state, const bool storeitems=true)
 
static void add (SoState *state, const SbString &text, const SmTextureFont::FontImage *font, const SbVec3f &worldpos, const float maxdist, const SbColor4f &color, SmTextureText2::Justification j, SmTextureText2::VerticalJustification vj)
 
static const std::vector< TextItem > & finishCollecting (SoState *state)
 
static bool isCollecting (SoState *state)
 
- Static Public Member Functions inherited from SoElement
static void initClass (void)
 
static SoType getClassTypeId (void)
 
static int getClassStackIndex (void)
 
static void initElements (void)
 
static int getNumStackIndices (void)
 
static SoType getIdFromStackIndex (const int stackIndex)
 

Protected Member Functions

virtual ~SmTextureText2CollectorElement ()
 
- Protected Member Functions inherited from SoElement
 SoElement (void)
 
void capture (SoState *const state) const
 
virtual void captureThis (SoState *state) const
 
void setTypeId (const SoType typeId)
 
void setStackIndex (const int index)
 
SoElementgetNextInStack (void) const
 
SoElementgetNextFree (void) const
 

Additional Inherited Members

- Static Protected Member Functions inherited from SoElement
static SoElementgetElement (SoState *const state, const int stackIndex)
 
static const SoElementgetConstElement (SoState *const state, const int stackIndex)
 
static int createStackIndex (const SoType id)
 
- Protected Attributes inherited from SoElement
SoType typeId
 
int stackIndex
 
int depth
 
- Static Protected Attributes inherited from SoElement
static int classStackIndex
 
static SoTypeListstackToType
 

Constructor & Destructor Documentation

◆ ~SmTextureText2CollectorElement()

SmTextureText2CollectorElement::~SmTextureText2CollectorElement ( )
protectedvirtual

Member Function Documentation

◆ add()

void SmTextureText2CollectorElement::add ( SoState state,
const SbString text,
const SmTextureFont::FontImage font,
const SbVec3f worldpos,
const float  maxdist,
const SbColor4f color,
SmTextureText2::Justification  j,
SmTextureText2::VerticalJustification  vj 
)
static

◆ copyMatchInfo()

SoElement * SmTextureText2CollectorElement::copyMatchInfo ( void  ) const
virtual

Implements SoElement.

◆ finishCollecting()

const std::vector< SmTextureText2CollectorElement::TextItem > & SmTextureText2CollectorElement::finishCollecting ( SoState state)
static

◆ init()

void SmTextureText2CollectorElement::init ( SoState state)
virtual

Reimplemented from SoElement.

◆ initClass()

void SmTextureText2CollectorElement::initClass ( void  )
static

◆ isCollecting()

bool SmTextureText2CollectorElement::isCollecting ( SoState state)
static

◆ matches()

SbBool SmTextureText2CollectorElement::matches ( const SoElement elt) const
virtual

Implements SoElement.

◆ startCollecting()

void SmTextureText2CollectorElement::startCollecting ( SoState state,
const bool  storeitems = true 
)
static

The documentation for this class was generated from the following files: