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
SoText2Set.cpp File Reference
#include <config.h>
#include "SoText2Set.h"
#include <Inventor/nodes/SoSubNode.h>
#include <Inventor/errors/SoDebugError.h>
#include <GL/gl.h>
#include <Inventor/elements/SoViewVolumeElement.h>
#include <Inventor/elements/SoModelMatrixElement.h>
#include <Inventor/elements/SoViewingMatrixElement.h>
#include <Inventor/elements/SoProjectionMatrixElement.h>
#include <Inventor/elements/SoViewportRegionElement.h>
#include <Inventor/elements/SoFontNameElement.h>
#include <Inventor/elements/SoFontSizeElement.h>
#include <Inventor/elements/SoLazyElement.h>
#include <Inventor/elements/SoCullElement.h>
#include <Inventor/elements/SoGLCacheContextElement.h>
#include <Inventor/elements/SoGLLazyElement.h>
#include <Inventor/actions/SoGLRenderAction.h>
#include <Inventor/actions/SoRayPickAction.h>
#include <Inventor/bundles/SoMaterialBundle.h>
#include <Inventor/actions/SoGetPrimitiveCountAction.h>
#include <Inventor/details/SoTextDetail.h>
#include <Inventor/SoPickedPoint.h>
#include <Inventor/SbPlane.h>
#include <Inventor/SbLine.h>
#include <Inventor/SbString.h>
#include <Inventor/SbBox2s.h>
#include <Inventor/misc/SoGlyph.h>
#include <Inventor/elements/SoClipPlaneElement.h>
#include "../misc/SbList.h"
#include <climits>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <cfloat>

Macros

#define PRIVATE(obj)   ((obj)->pimpl)
 
#define PUBLIC(obj)   ((obj)->master)
 
#define RENDER_TEXT(offx, offy)
 

Functions

static int sotext2set_sortcompare (const void *element1, const void *element2)
 
 SO_NODE_SOURCE (SoText2Set)
 

Variables

static const unsigned int NOT_AVAILABLE = UINT_MAX
 

Macro Definition Documentation

◆ PRIVATE

#define PRIVATE (   obj)    ((obj)->pimpl)

◆ PUBLIC

#define PUBLIC (   obj)    ((obj)->master)

◆ RENDER_TEXT

#define RENDER_TEXT (   offx,
  offy 
)
Value:
do { \
const float rasterx = xpos + fx + float(offx); \
const float rpx = rasterx >= 0 ? rasterx : 0; \
unsigned int offvp = rasterx < 0 ? 1 : 0; \
const float offsetx = rasterx >= 0 ? 0 : rasterx; \
const float rastery = ypos + fy + float(offy); \
const float rpy = rastery >= 0 ? rastery : 0; \
offvp = offvp || rastery < 0 ? 1 : 0; \
const float offsety = rastery >= 0 ? 0 : rastery; \
glRasterPos3f(rpx, rpy, -nilpoint[2]); \
if (offvp) glBitmap(0,0,0,0,offsetx,offsety,NULL); \
if (buffer) glBitmap(ix,iy,0,0,0,0,(const GLubyte *)buffer); \
} while (0);

Function Documentation

◆ SO_NODE_SOURCE()

SO_NODE_SOURCE ( SoText2Set  )

◆ sotext2set_sortcompare()

static int sotext2set_sortcompare ( const void *  element1,
const void *  element2 
)
static

Variable Documentation

◆ NOT_AVAILABLE

const unsigned int NOT_AVAILABLE = UINT_MAX
static