osg Namespace Reference

The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes. More...


Classes

class  AlphaFunc
 Encapsulates OpenGL glAlphaFunc. More...
class  AnimationPath
 AnimationPath encapsulates a time varying transformation pathway. More...
class  AnimationPathCallback
class  ApplicationUsage
class  ApplicationUsageProxy
class  ArgumentParser
class  Array
class  TemplateArray
class  IndexArray
class  TemplateIndexArray
class  ArrayVisitor
class  ConstArrayVisitor
class  ValueVisitor
class  ConstValueVisitor
class  AutoTransform
 AutoTransform is a derived form of Transform that automatically scales or rotates to keep its children aligned with screen coordinates. More...
class  Billboard
 Billboard is a derived form of Geode that orients its osg::Drawable children to face the eye point. More...
class  BlendColor
 Encapsulates OpenGL blend/transparency state. More...
class  BlendEquation
 Encapsulates OpenGL BlendEquation state. More...
class  BlendFunc
 Encapsulates OpenGL blend/transparency state. More...
class  BoundingBox
 General purpose axis-aligned bounding box class for enclosing objects/vertices. More...
class  BoundingSphere
 General purpose bounding sphere class for enclosing nodes/objects/vertices. More...
class  buffered_value
 Implements a simple buffered value for values that need to be buffered on a per graphics context basis. More...
class  buffered_object
class  BufferObject
class  VertexBufferObject
class  ElementBufferObject
class  PixelBufferObject
class  Camera
 Camera - is a subclass of Transform which represents encapsulates the settings of a Camera. More...
class  CameraView
 CameraView - is a Transform that is used to specify camera views from within the scene graph. More...
class  ClampColor
 Encapsulates OpenGL ClampColor state. More...
class  ClearNode
 A Group node for clearing the color and depth buffers. More...
class  ClipNode
 Node for defining the position of ClipPlanes in the scene. More...
class  ClipPlane
 Encapsulates OpenGL glClipPlane(). More...
class  ClusterCullingCallback
 Implements cluster culling to cull back facing drawables. More...
class  CollectOccludersVisitor
class  ColorMask
 Encapsulates OpenGL glColorMaskFunc/Op/Mask functions. More...
class  ColorMatrix
 Encapsulates OpenGL color matrix functionality. More...
class  ComputeBoundsVisitor
class  ConvexPlanarOccluder
 A class for representing convex clipping volumes made up of several ConvexPlanarPolygon. More...
class  ConvexPlanarPolygon
 A class for representing components of convex clipping volumes. More...
class  EllipsoidModel
 EllipsoidModel encapsulates the ellipsoid used to model astronomical bodies, such as sun, planets, moon etc. More...
class  CoordinateSystemNode
 CoordinateSystem encapsulate the coordinate system that is associated with objects in a scene. More...
class  CopyOp
 Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clone operation. More...
class  CullFace
 Class to globally enable/disable OpenGL's polygon culling mode. More...
class  CullingSet
 A CullingSet class which contains a frustum and a list of occluders. More...
class  CullSettings
class  CullStack
 A CullStack class which accumulates the current project, modelview matrices and the CullingSet. More...
class  DeleteHandler
 Class for override the default delete behavior so that users can implement their own object deletion schemes. More...
class  Depth
 Encapsulate OpenGL glDepthFunc/Mask/Range functions. More...
class  DisplaySettings
 DisplaySettings class for encapsulating what visuals are required and have been set up, and the status of stereo viewing. More...
class  Drawable
 Pure virtual base class for drawable geometry. More...
class  DrawPixels
 DrawPixels is an osg::Drawable subclass which encapsulates the drawing of images using glDrawPixels. More...
class  fast_back_stack
 Simple stack implementation that keeps the back() cached locally for fast access rather than at the back of the vector which is the traditional stack implementation. More...
class  Fog
 Fog - encapsulates OpenGL fog state. More...
class  FragmentProgram
 FragmentProgram - encapsulates the OpenGL ARB fragment program state. More...
class  FBOExtensions
class  RenderBuffer
class  FrameBufferAttachment
class  FrameBufferObject
class  FrameStamp
 Class which encapsulates the frame number, reference time and calendar time of specific frame, used to synchronize operations on the scene graph and other machines when using a graphics cluster. More...
class  FrontFace
 Class to specify the orientation of front-facing polygons. More...
class  Geode
 A Geode is a "geometry node", that is, a leaf node on the scene graph that can have "renderable things" attached to it. More...
class  Geometry
class  GL2Extensions
class  GraphicsContext
 Base class for providing Windowing API agnostic access to creating and managing graphics context. More...
class  GraphicsThread
 GraphicsThread is a helper class for running OpenGL GraphicsOperation within a single thread assigned to a specific GraphicsContext. More...
struct  GraphicsOperation
struct  SwapBuffersOperation
 SwapBufferOperation calls swap buffers on the GraphicsContext. More...
struct  BarrierOperation
 BarrierOperation allows one to synchronize multiple GraphicsThreads with each other. More...
struct  ReleaseContext_Block_MakeCurrentOperation
 ReleaseContext_Block_MakeCurrentOperation releases the context for another thread to acquire, then blocks waiting for context to be released, once the block is release the context is re-acquired. More...
struct  BlockAndFlushOperation
struct  FlushDeletedGLObjectsOperation
class  RunOperations
class  EndOfDynamicDrawBlock
class  Group
 General group node which maintains a list of children. More...
class  Hint
class  Image
 Image class for encapsulating the storage texture image data. More...
class  ImageSequence
 Image Buffer class. More...
class  ImageStream
 Image Stream class. More...
class  KdTree
 Implementation of a kdtree for Geometry leaves, to enable fast intersection tests. More...
class  KdTreeBuilder
class  Light
 Light state class which encapsulates OpenGL glLight() functionality. More...
class  LightModel
class  LightSource
 Leaf Node for defining a light in the scene. More...
class  LineSegment
 LineSegment class for representing a line segment. More...
class  LineStipple
class  LineWidth
 LineWidth - encapsulates the OpenGL glLineWidth for setting the width of lines in pixels. More...
class  LOD
 LOD - Level Of Detail group node which allows switching between children depending on distance from eye point. More...
class  LogicOp
 Encapsulates OpenGL LogicOp state. More...
class  Material
 Material - encapsulates OpenGL glMaterial state. More...
class  Matrixd
class  RefMatrixd
class  Matrixf
class  RefMatrixf
class  MatrixTransform
 MatrixTransform - is a subclass of Transform which has an osg::Matrix which represents a 4x4 transformation of its children from local coordinates into the Transform's parent coordinates. More...
class  MixinVector
 MixinVector is a base class that allows inheritance to be used to easily emulate derivation from std::vector but without introducing undefined behaviour through violation of virtual destructor rules. More...
class  Multisample
 Multisample - encapsulates the OpenGL Multisample state. More...
class  Node
 Base class for all internal nodes in the scene graph. More...
class  NodeCallback
class  NodeTrackerCallback
class  NodeVisitor
 Visitor for type safe operations on osg::Nodes. More...
struct  NodeAcceptOp
 Convenience functor for assisting visiting of arrays of osg::Node's. More...
class  Object
 Base class/standard interface for objects which require IO support, cloning and reference counting. More...
class  Observer
class  observer_ptr
 Smart pointer for observed objects, that automatically set pointers to them to null when they deleted. More...
class  OccluderNode
 OccluderNode is a Group node which allows OccluderNodeing between children. More...
class  OcclusionQueryNode
class  RefBlock
class  RefBlockCount
class  Operation
 Base class for implementing graphics operations. More...
class  OperationQueue
class  OperationThread
 OperationThread is a helper class for running Operation within a single thread. More...
class  PagedLOD
 PagedLOD. More...
class  Plane
 A plane class. More...
class  Point
 Point - encapsulates the OpenGL point smoothing and size state. More...
class  PointSprite
 PointSprite base class which encapsulates enabling of point sprites . More...
class  PolygonMode
 State Class for setting OpenGL's polygon culling mode. More...
class  PolygonOffset
 PolygonOffset - encapsulates the OpenGL glPolygonOffset state. More...
class  PolygonStipple
class  Polytope
 A Polytope class for representing convex clipping volumes made up of a set of planes. More...
class  PositionAttitudeTransform
 PositionAttitudeTransform - is a Transform. More...
class  PrimitiveFunctor
 A PrimitiveFunctor is used (in conjunction with osg::Drawable::accept (PrimitiveFunctor&)) to get access to the primitives that compose the things drawn by OSG. More...
class  PrimitiveIndexFunctor
class  PrimitiveSet
class  DrawArrays
class  DrawArrayLengths
class  DrawElements
class  DrawElementsUByte
class  DrawElementsUShort
class  DrawElementsUInt
class  Program
 osg::Program is an application-level abstraction of an OpenGL glProgram. More...
class  Projection
 Projection nodes set up the frustum/orthographic projection used when rendering the scene. More...
class  ProxyNode
 ProxyNode. More...
class  Quat
 A quaternion class. More...
class  ref_ptr
 Smart pointer for handling referenced counted objects. More...
class  Referenced
 Base class from providing referencing counted objects. More...
class  RenderInfo
class  Scissor
 Encapsulate OpenGL glScissor. More...
class  Sequence
 Sequence is a Group node which allows automatic, time based switching between children. More...
class  ShadeModel
 Class which encapsulates glShadeModel(. More...
class  Shader
 osg::Shader is an application-level abstraction of an OpenGL glShader. More...
class  ShadowVolumeOccluder
 ShadowVolumeOccluder is a helper class for implementing shadow occlusion culling. More...
class  Shape
 Base class for all shape types. More...
class  ShapeVisitor
class  ConstShapeVisitor
class  Sphere
class  Box
class  Cone
class  Cylinder
class  Capsule
class  InfinitePlane
class  TriangleMesh
class  ConvexHull
class  HeightField
class  CompositeShape
class  TessellationHints
 Describe several hints that can be passed to a Tessellator (like the one used by ShapeDrawable) as a mean to try to influence the way it works. More...
class  ShapeDrawable
 Allow the use of Shapes as Drawables, so that they can be rendered with reduced effort. More...
class  State
 Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings, implements lazy state updating and provides accessors for querying the current state. More...
class  StateAttribute
 Base class for state attributes. More...
class  StateSet
 Stores a set of modes and attributes which represent a set of OpenGL state. More...
class  Stats
class  Stencil
 Encapsulate OpenGL glStencilFunc/Op/Mask functions. More...
class  StencilTwoSided
 Encapsulate OpenGL two sided glStencilFunc/Op/Mask functions. More...
class  Switch
 Switch is a Group node that allows switching between children. More...
class  TemplatePrimitiveFunctor
 Provides access to the primitives that compose an osg::Drawable. More...
class  TexEnv
 TexEnv encapsulates the OpenGL glTexEnv (texture environment) state. More...
class  TexEnvCombine
 TexEnvCombine encapsulates the OpenGL glTexEnvCombine (texture environment) state. More...
class  TexEnvFilter
 TexEnvFilter - encapsulates the OpenGL glTexEnv (GL_TEXTURE_FILTER_CONTROL) state. More...
class  TexGen
 TexGen encapsulates the OpenGL glTexGen (texture coordinate generation) state. More...
class  TexGenNode
 Node for defining the position of TexGen in the scene. More...
class  TexMat
 A texture matrix state class that encapsulates OpenGL texture matrix functionality. More...
class  Texture
 Texture pure virtual base class that encapsulates OpenGl texture functionality common to the various types of OSG textures. More...
class  Texture1D
 Encapsulates OpenGl 1D texture functionality. More...
class  Texture2D
 Encapsulates OpenGl 2D texture functionality. More...
class  Texture2DArray
 Texture2DArray state class which encapsulates OpenGL 2D array texture functionality. More...
class  Texture3D
 Encapsulates OpenGl 2D texture functionality. More...
class  TextureCubeMap
 TextureCubeMap state class which encapsulates OpenGL texture cubemap functionality. More...
class  TextureRectangle
 Texture state class which encapsulates OpenGL texture functionality. More...
class  Timer
 Timer class is used for measuring elapsed time or time between two points. More...
class  TransferFunction
 TransferFunction is a class that provide a 1D,2D or 3D colour look up table that can be used on the GPU as a 1D, 2D or 3D texture. More...
class  TransferFunction1D
 1D variant of TransferFunction. More...
class  Transform
 A Transform is a group node for which all children are transformed by a 4x4 matrix. More...
class  TriangleFunctor
 Provides access to the triangles that compose an osg::Drawable. More...
class  TriangleIndexFunctor
class  Matrix2
class  Matrix3
class  Uniform
 Uniform encapsulates glUniform values. More...
class  Vec2b
 General purpose float triple. More...
class  Vec2d
 General purpose double pair, uses include representation of texture coordinates. More...
class  Vec2f
 General purpose float pair. More...
class  Vec2s
class  Vec3b
 General purpose float triple. More...
class  Vec3d
 General purpose double triple for use as vertices, vectors and normals. More...
class  Vec3f
 General purpose float triple for use as vertices, vectors and normals. More...
class  Vec3s
class  Vec4b
 General purpose float triple. More...
class  Vec4d
 General purpose double quad. More...
class  Vec4f
 General purpose float quad. More...
class  Vec4s
 General purpose float quad. More...
class  Vec4ub
 General purpose float quad. More...
class  VertexProgram
 VertexProgram - encapsulates the OpenGL ARB vertex program state. More...
class  View
 View - maintains a master camera view and a list of slave cameras that are relative to this master camera. More...
class  Viewport
 Encapsulate OpenGL glViewport. More...

Typedefs

typedef TemplateIndexArray<
GLbyte, Array::ByteArrayType,
1, GL_BYTE > 
ByteArray
typedef TemplateIndexArray<
GLshort, Array::ShortArrayType,
1, GL_SHORT > 
ShortArray
typedef TemplateIndexArray<
GLint, Array::IntArrayType,
1, GL_INT > 
IntArray
typedef TemplateIndexArray<
GLubyte, Array::UByteArrayType,
1, GL_UNSIGNED_BYTE > 
UByteArray
typedef TemplateIndexArray<
GLushort, Array::UShortArrayType,
1, GL_UNSIGNED_SHORT > 
UShortArray
typedef TemplateIndexArray<
GLuint, Array::UIntArrayType,
1, GL_UNSIGNED_INT > 
UIntArray
typedef TemplateArray< GLfloat,
Array::FloatArrayType,
1, GL_FLOAT > 
FloatArray
typedef TemplateArray< Vec2,
Array::Vec2ArrayType,
2, GL_FLOAT > 
Vec2Array
typedef TemplateArray< Vec3,
Array::Vec3ArrayType,
3, GL_FLOAT > 
Vec3Array
typedef TemplateArray< Vec4,
Array::Vec4ArrayType,
4, GL_FLOAT > 
Vec4Array
typedef TemplateArray< Vec4ub,
Array::Vec4ubArrayType,
4, GL_UNSIGNED_BYTE > 
Vec4ubArray
typedef TemplateArray< Vec2s,
Array::Vec2sArrayType,
2, GL_SHORT > 
Vec2sArray
typedef TemplateArray< Vec3s,
Array::Vec3sArrayType,
3, GL_SHORT > 
Vec3sArray
typedef TemplateArray< Vec4s,
Array::Vec4sArrayType,
4, GL_SHORT > 
Vec4sArray
typedef TemplateArray< Vec2b,
Array::Vec2bArrayType,
2, GL_BYTE > 
Vec2bArray
typedef TemplateArray< Vec3b,
Array::Vec3bArrayType,
3, GL_BYTE > 
Vec3bArray
typedef TemplateArray< Vec4b,
Array::Vec4bArrayType,
4, GL_BYTE > 
Vec4bArray
typedef TemplateArray< GLdouble,
Array::DoubleArrayType,
1, GL_DOUBLE > 
DoubleArray
typedef TemplateArray< Vec2d,
Array::Vec2dArrayType,
2, GL_DOUBLE > 
Vec2dArray
typedef TemplateArray< Vec3d,
Array::Vec3dArrayType,
3, GL_DOUBLE > 
Vec3dArray
typedef TemplateArray< Vec4d,
Array::Vec4dArrayType,
4, GL_DOUBLE > 
Vec4dArray
typedef Matrixd CoordinateFrame
 CoordinateFrame encapsulates the orientation of east, north and up.
typedef std::vector< ref_ptr<
Node > > 
NodeList
typedef Matrixd Matrix
typedef RefMatrixd RefMatrix
typedef std::vector< Node * > NodePath
 A vector of Nodes pointers which is used to describe the path from a root node to a descendant.
typedef std::vector< NodePathNodePathList
 A vector of NodePath, typically used to describe all the paths from a node to the potential root nodes it has.
typedef std::vector< MatrixMatrixList
 A vector of NodePath, typically used to describe all the paths from a node to the potential root nodes it has.
typedef OperationThread OperationsThread
typedef MixinVector< GLsizei > VectorGLsizei
typedef MixinVector< GLubyte > VectorGLubyte
typedef MixinVector< GLushort > VectorGLushort
typedef MixinVector< GLuint > VectorGLuint
typedef std::vector< ShadowVolumeOccluderShadowVolumeOccluderList
 A list of ShadowVolumeOccluder, used by CollectOccluderVisitor and CullVistor's.
typedef HeightField Grid
typedef unsigned long long Timer_t
typedef Vec2f Vec2
typedef Vec3f Vec3
typedef Vec4f Vec4

Enumerations

enum  Endian { BigEndian, LittleEndian }
enum  NotifySeverity {
  ALWAYS = 0, FATAL = 1, WARN = 2, NOTICE = 3,
  INFO = 4, DEBUG_INFO = 5, DEBUG_FP = 6
}
 Range of notify levels from DEBUG_FP through to FATAL, ALWAYS is reserved for forcing the absorption of all messages. More...

Functions

template<typename T>
void clampGEQUAL (T &value, const T minValue, const char *valueName)
 If value is greater than or equal to minValue do nothing - legal value, Otherwise set value to minValue, and warn that valueName was clamped.
template<typename T>
void clampLEQUAL (T &value, const T maxValue, const char *valueName)
 If value is less than or equal to maxValue do nothing - legal value, Otherwise set value to maxValue, and warn that valueName was clamped.
template<typename T>
void clampBetweenRange (T &value, const T minValue, const T maxValue, const char *valueName)
 If value is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp value to specified range and warn that valueName was clamped.
template<typename A, typename T>
void clampArrayElementGEQUAL (A &value, unsigned int i, const T minValue, const char *valueName)
 If value[i] is greater than or equal to minValue do nothing - legal value, Otherwise set value[i] to minValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArrayElementLEQUAL (A &value, unsigned int i, const T maxValue, const char *valueName)
 If value[i] is less than or equal to maxValue do nothing - legal value, Otherwise set value[i] to maxValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArrayElementBetweenRange (A &value, unsigned int i, const T minValue, const T maxValue, const char *valueName)
 If value[i] is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp value[i] to specified range and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArrayElementsGEQUAL (A &value, unsigned int first, unsigned int last, const T minValue, const char *valueName)
 For each element of value[] in the range (first,last), if the element is greater than or equal to minValue do nothing - legal value, Otherwise clamp the element to minValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArrayElementsLEQUAL (A &value, unsigned int first, unsigned int last, const T maxValue, const char *valueName)
 For each element of value[] in the range (first,last), if the element is less than or equal to maxValue do nothing - legal value, Otherwise clamp the element to maxValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArrayElementsBetweenRange (A &value, unsigned int first, unsigned int last, const T minValue, const T maxValue, const char *valueName)
 For each element of value[] in the range (first,last), if the element is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp the element to the range and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArray3GEQUAL (A &value, const T minValue, const char *valueName)
 For each element of the three-element array value[], if the element is greater than or equal to minValue do nothing - legal value, Otherwise clamp the element to minValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArray3LEQUAL (A &value, const T maxValue, const char *valueName)
 For each element of the three-element array value[], if the element is less than or equal to maxValue do nothing - legal value, Otherwise clamp the element to maxValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArray3BetweenRange (A &value, const T minValue, const T maxValue, const char *valueName)
 For each element of the three-element array value[], if the element is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp the element to the range and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArray4GEQUAL (A &value, const T minValue, const char *valueName)
 For each element of the four-element array value[], if the element is greater than or equal to minValue do nothing - legal value, Otherwise clamp the element to minValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArray4LEQUAL (A &value, const T maxValue, const char *valueName)
 For each element of the four-element array value[], if the element is less than or equal to maxValue do nothing - legal value, Otherwise clamp the element to maxValue, and warn that valueName[i] was clamped.
template<typename A, typename T>
void clampArray4BetweenRange (A &value, const T minValue, const T maxValue, const char *valueName)
 For each element of the four-element array value[], if the element is between or equal to minValue and maxValue do nothing - legal value, Otherwise clamp the element to the range and warn that valueName[i] was clamped.
Endian getCpuByteOrder ()
void swapBytes (char *in, unsigned int size)
void swapBytes2 (char *in)
void swapBytes4 (char *in)
void swapBytes8 (char *in)
void swapBytes16 (char *in)
OSG_EXPORT GeometrycreateTexturedQuadGeometry (const Vec3 &corner, const Vec3 &widthVec, const Vec3 &heightVec, float l, float b, float r, float t)
 Convenience function to be used for creating quad geometry with texture coords.
GeometrycreateTexturedQuadGeometry (const Vec3 &corner, const Vec3 &widthVec, const Vec3 &heightVec, float s=1.0f, float t=1.0f)
 Convenience function to be used for creating quad geometry with texture coords.
OSG_EXPORT float getGLVersionNumber ()
 Return floating-point OpenGL version number.
OSG_EXPORT bool isExtensionInExtensionString (const char *extension, const char *extensionString)
 Return true if "extension" is contained in "extensionString".
OSG_EXPORT bool isGLExtensionSupported (unsigned int contextID, const char *extension)
 Return true if OpenGL "extension" is supported.
OSG_EXPORT void * getGLExtensionFuncPtr (const char *funcName)
 Return the address of the specified OpenGL function.
OSG_EXPORT void setGLExtensionDisableString (const std::string &disableString)
 Set a list of extensions to disable for different OpenGL renderers.
OSG_EXPORT std::string & getGLExtensionDisableString ()
 Get the list of extensions that are disabled for various OpenGL renderers.
void * getGLExtensionFuncPtr (const char *funcName, const char *fallbackFuncName)
 Return the address of the specified OpenGL function.
template<typename T>
bool setGLExtensionFuncPtr (T &t, const char *str1)
template<typename T>
bool setGLExtensionFuncPtr (T &t, const char *str1, const char *str2)
OSG_EXPORT bool isGLUExtensionSupported (unsigned int contextID, const char *extension)
 Return true if OpenGL "extension" is supported.
OSG_EXPORT void flushDeletedGLObjects (unsigned int contextID, double currentTime, double &availableTime)
 Flush all deleted OpenGL objects within the specified availableTime.
OSG_EXPORT void flushAllDeletedGLObjects (unsigned int contextID)
 Flush all deleted OpenGL objects.
OSG_EXPORT void discardAllDeletedGLObjects (unsigned int contextID)
 Discard all deleted OpenGL objects.
OSG_EXPORT GeodecreateGeodeForImage (Image *image)
 Convenience function to be used by image loaders to generate a valid geode to return for readNode().
OSG_EXPORT GeodecreateGeodeForImage (Image *image, float s, float t)
 Convenience function to be used by image loaders to generate a valid geode to return for readNode().
std::ostream & operator<< (std::ostream &output, const Vec2f &vec)
std::istream & operator>> (std::istream &input, Vec2f &vec)
std::ostream & operator<< (std::ostream &output, const Vec2d &vec)
std::istream & operator>> (std::istream &input, Vec2d &vec)
std::ostream & operator<< (std::ostream &output, const Vec3f &vec)
std::istream & operator>> (std::istream &input, Vec3f &vec)
std::ostream & operator<< (std::ostream &output, const Vec3d &vec)
std::istream & operator>> (std::istream &input, Vec3d &vec)
std::ostream & operator<< (std::ostream &output, const Vec4f &vec)
std::istream & operator>> (std::istream &input, Vec4f &vec)
std::ostream & operator<< (std::ostream &output, const Vec4d &vec)
std::istream & operator>> (std::istream &input, Vec4d &vec)
std::ostream & operator<< (std::ostream &output, const Vec2b &vec)
std::istream & operator>> (std::istream &input, Vec2b &vec)
std::ostream & operator<< (std::ostream &output, const Vec3b &vec)
std::istream & operator>> (std::istream &input, Vec3b &vec)
std::ostream & operator<< (std::ostream &output, const Vec4b &vec)
std::istream & operator>> (std::istream &input, Vec4b &vec)
std::ostream & operator<< (std::ostream &output, const Vec2s &vec)
std::istream & operator>> (std::istream &input, Vec2s &vec)
std::ostream & operator<< (std::ostream &output, const Vec3s &vec)
std::istream & operator>> (std::istream &input, Vec3s &vec)
std::ostream & operator<< (std::ostream &output, const Vec4s &vec)
std::istream & operator>> (std::istream &input, Vec4s &vec)
std::ostream & operator<< (std::ostream &os, const Matrixf &m)
std::ostream & operator<< (std::ostream &os, const Matrixd &m)
std::ostream & operator<< (std::ostream &output, const Vec4ub &vec)
std::istream & operator>> (std::istream &input, Vec4ub &vec)
std::ostream & operator<< (std::ostream &output, const Quat &vec)
std::istream & operator>> (std::istream &input, Quat &vec)
std::ostream & operator<< (std::ostream &output, const Plane &pl)
std::istream & operator>> (std::istream &input, Plane &vec)
template<typename T>
absolute (T v)
 return the minimum of two values, equivalent to std::min.
bool equivalent (float lhs, float rhs, float epsilon=1e-6)
 return true if float lhs and rhs are equivalent, meaning that the difference between them is less than an epsilon value which defaults to 1e-6.
bool equivalent (double lhs, double rhs, double epsilon=1e-6)
 return true if double lhs and rhs are equivalent, meaning that the difference between them is less than an epsilon value which defaults to 1e-6.
template<typename T>
minimum (T lhs, T rhs)
 return the minimum of two values, equivalent to std::min.
template<typename T>
maximum (T lhs, T rhs)
 return the maximum of two values, equivalent to std::max.
template<typename T>
clampTo (T v, T minimum, T maximum)
template<typename T>
clampAbove (T v, T minimum)
template<typename T>
clampBelow (T v, T maximum)
template<typename T>
clampBetween (T v, T minimum, T maximum)
template<typename T>
sign (T v)
template<typename T>
signOrZero (T v)
template<typename T>
square (T v)
template<typename T>
signedSquare (T v)
float inDegrees (float angle)
double inDegrees (double angle)
template<typename T>
inRadians (T angle)
float DegreesToRadians (float angle)
double DegreesToRadians (double angle)
float RadiansToDegrees (float angle)
double RadiansToDegrees (double angle)
float round (float v)
double round (double v)
bool isNaN (float v)
bool isNaN (double v)
template<typename T>
float computeVolume (const T &a, const T &b, const T &c, const T &d)
 compute the volume of a tetrahedron.
template<typename T>
float computeVolume (const T &f1, const T &f2, const T &f3, const T &b1, const T &b2, const T &b3)
 compute the volume of a prism.
Vec3f operator * (const Vec3f &v, const Matrixd &m)
Vec3d operator * (const Vec3d &v, const Matrixd &m)
Vec4f operator * (const Vec4f &v, const Matrixd &m)
Vec4d operator * (const Vec4d &v, const Matrixd &m)
Vec3f operator * (const Vec3f &v, const Matrixf &m)
Vec3d operator * (const Vec3d &v, const Matrixf &m)
Vec4f operator * (const Vec4f &v, const Matrixf &m)
Vec4d operator * (const Vec4d &v, const Matrixf &m)
template<class ValueT>
void swap (MixinVector< ValueT > &left, MixinVector< ValueT > &right)
template<class ValueT>
void swap (MixinVector< ValueT > &left, std::vector< ValueT > &right)
template<class ValueT>
void swap (std::vector< ValueT > &left, MixinVector< ValueT > &right)
OSG_EXPORT void setNotifyLevel (NotifySeverity severity)
 set the notify level, overriding the default or the value set by the environmental variable OSGNOTIFYLEVEL.
OSG_EXPORT NotifySeverity getNotifyLevel ()
 get the notify level.
OSG_EXPORT bool isNotifyEnabled (NotifySeverity severity)
 is notification enabled, given the current setNotifyLevel() setting?
OSG_EXPORT bool initNotifyLevel ()
 initialize notify level.
OSG_EXPORT std::ostream & notify (const NotifySeverity severity)
 notify messaging function for providing fatal through to verbose debugging messages.
std::ostream & notify (void)
template<class T>
void swap (ref_ptr< T > &rp1, ref_ptr< T > &rp2)
template<class T>
T * get_pointer (const ref_ptr< T > &rp)
template<class T, class Y>
ref_ptr< T > static_pointer_cast (const ref_ptr< Y > &rp)
template<class T, class Y>
ref_ptr< T > dynamic_pointer_cast (const ref_ptr< Y > &rp)
template<class T, class Y>
ref_ptr< T > const_pointer_cast (const ref_ptr< Y > &rp)
OSG_EXPORT bool isTextureMode (StateAttribute::GLMode mode)
OSG_EXPORT Matrix computeLocalToWorld (const