Open Inventor Reference
SbBasic.h File Reference
#include <Inventor/system/SbSystem.h>
#include "SbTypeDefs.h"
#include <sys/types.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define SO_VERSION   2
 These symbols can be used to determine what version of Inventor your application is compiling against. More...
 
#define SO_VERSION_REVISION   5
 
#define SO_VERSION_PATCHLEVEL   1
 
#define SGI_VERSION   20501
 
#define TRUE   1
 
#define FALSE   0
 
#define SoEXTENDER
 Provide inline template functions for abs, swap, min, max, and clamp. More...
 
#define SoINTERNAL
 
#define M_E   2.7182818284590452354
 
#define M_LOG2E   1.4426950408889634074
 
#define M_LOG10E   0.43429448190325182765
 
#define M_LN2   0.69314718055994530942
 
#define M_LN10   2.30258509299404568402
 
#define M_PI   3.14159265358979323846
 
#define M_PI_2   1.57079632679489661923
 
#define M_PI_4   0.78539816339744830962
 
#define M_1_PI   0.31830988618379067154
 
#define M_2_PI   0.63661977236758134308
 
#define M_2_SQRTPI   1.12837916709551257390
 
#define M_SQRT2   1.41421356237309504880
 
#define M_SQRT1_2   0.70710678118654752440
 
#define MAXFLOAT   ((float)3.40282346638528860e+38)
 

Typedefs

typedef bool SbBool
 The original OIV version used SbBool as a typedef to int. More...
 
typedef size_t SbNodeIdType
 Type of unique ids of SoNode, used in the notification/change detection handling. More...
 

Macro Definition Documentation

◆ FALSE

#define FALSE   0

Definition at line 79 of file SbBasic.h.

◆ M_1_PI

#define M_1_PI   0.31830988618379067154

Definition at line 182 of file SbBasic.h.

◆ M_2_PI

#define M_2_PI   0.63661977236758134308

Definition at line 185 of file SbBasic.h.

◆ M_2_SQRTPI

#define M_2_SQRTPI   1.12837916709551257390

Definition at line 188 of file SbBasic.h.

◆ M_E

#define M_E   2.7182818284590452354

Definition at line 158 of file SbBasic.h.

◆ M_LN10

#define M_LN10   2.30258509299404568402

Definition at line 170 of file SbBasic.h.

◆ M_LN2

#define M_LN2   0.69314718055994530942

Definition at line 167 of file SbBasic.h.

◆ M_LOG10E

#define M_LOG10E   0.43429448190325182765

Definition at line 164 of file SbBasic.h.

◆ M_LOG2E

#define M_LOG2E   1.4426950408889634074

Definition at line 161 of file SbBasic.h.

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 173 of file SbBasic.h.

◆ M_PI_2

#define M_PI_2   1.57079632679489661923

Definition at line 176 of file SbBasic.h.

◆ M_PI_4

#define M_PI_4   0.78539816339744830962

Definition at line 179 of file SbBasic.h.

◆ M_SQRT1_2

#define M_SQRT1_2   0.70710678118654752440

Definition at line 194 of file SbBasic.h.

◆ M_SQRT2

#define M_SQRT2   1.41421356237309504880

Definition at line 191 of file SbBasic.h.

◆ MAXFLOAT

#define MAXFLOAT   ((float)3.40282346638528860e+38)

Definition at line 197 of file SbBasic.h.

◆ SGI_VERSION

#define SGI_VERSION   20501

Definition at line 68 of file SbBasic.h.

◆ SO_VERSION

#define SO_VERSION   2

These symbols were first added with Inventor 2.1 (SO_VERSION==2, SO_VERSION_REVISION==1); they were undefined in previous revisions of Inventor.

Definition at line 65 of file SbBasic.h.

◆ SO_VERSION_PATCHLEVEL

#define SO_VERSION_PATCHLEVEL   1

Definition at line 67 of file SbBasic.h.

◆ SO_VERSION_REVISION

#define SO_VERSION_REVISION   5

Definition at line 66 of file SbBasic.h.

◆ SoEXTENDER

#define SoEXTENDER

These symbols are used in Inventor header files to distinguish between varying levels of use of classes and members.

Types of classes are:

 "class" means a public class intended for use by all users.
 "SoEXTENDER class" indicates a class that is used only by
         people extending the set of Inventor classes.
 "SoINTERNAL class" means that the class is used only by
         Inventor developers at Silicon Graphics.

Types of member variables and methods are:

 "public:" members are used by everybody.
 "SoEXTENDER public:" members are used when extending Inventor.
 "SoINTERNAL public:" members are for SGI Inventor developers only.

 "protected:" members are for people extending Inventor
         classes. (The "SoEXTENDER" is implied.)
 "SoINTERNAL protected:" members are for SGI use only.

 "private:" members are private, dammit.

Definition at line 154 of file SbBasic.h.

◆ SoINTERNAL

#define SoINTERNAL

Definition at line 155 of file SbBasic.h.

◆ TRUE

#define TRUE   1

Definition at line 76 of file SbBasic.h.

Typedef Documentation

◆ SbBool

typedef bool SbBool

The MeVis version changed this to bool and we replaced the usage of SbBool to bool on the whole OIV interface. SbBool stays around to keep old code working.

Definition at line 85 of file SbBasic.h.

◆ SbNodeIdType

typedef size_t SbNodeIdType

We use size_t so that node ids can still be stored in SbPList when using 32bit targets

Definition at line 90 of file SbBasic.h.