Privacy
An open-source, flexible 3D physical simulation framework
mars::graphics Namespace Reference

Classes

class  AxisPrimitive
 
class  CapsuleDrawObject
 
class  CoordsPrimitive
 
class  CubeDrawObject
 
class  CylinderDrawObject
 
struct  drawMapper
 
class  DrawObject
 
class  EmptyDrawObject
 
class  GeodeVisitor
 used to get a geode from a nodegroup More...
 
class  GetVerticesFunctor
 This visitor class is used to get triangles from a mesh. More...
 
class  GraphicsCamera
 
class  GraphicsManager
 
class  GraphicsViewer
 
class  GraphicsWidget
 Widget with OpenGL context and event handling. More...
 
class  GridPrimitive
 
class  GuiHelper
 
class  HUD
 
class  HUDDataType
 
class  HUDElement
 
class  HUDLabel
 
class  HUDLines
 
class  HUDNodeCallback
 
class  HUDOSGNode
 
class  HUDTerminal
 
class  HUDTexture
 
struct  imageFileStruct
 
struct  lightmanager
 internal struct to manage lights More...
 
class  LoadDrawObject
 
struct  LoadDrawObjectPSetBox
 
class  map_data_compare
 
struct  nodeFileStruct
 
struct  nodemanager
 internal struct for GraphicManager.h connecting the node indices with the osg nodes More...
 
class  OSGDrawItem
 Wraps draw_item in osg::Group. More...
 
class  OSGHudElementStruct
 Wraps hudElementStruct in osg::Group. More...
 
class  OSGLightStruct
 Wraps lightStruct in osg::LightSource. More...
 
class  OSGMaterialStruct
 Wraps MaterialData in osg::Material. More...
 
class  OSGNodeStruct
 
class  PlaneDrawObject
 
class  PostDrawCallback
 
class  QtOsgMixGraphicsWidget
 A GraphicsWidget using QWidget. More...
 
class  ShadowMap
 
class  SphereDrawObject
 
struct  SphereFace
 
struct  SubTile
 
class  TerrainDrawObject
 
struct  TerrainDrawObject2Info
 
struct  textureFileStruct
 
class  VertexBufferTerrain
 

Typedefs

typedef std::map< unsigned long, osg::ref_ptr< OSGNodeStruct > > DrawObjects
 
typedef std::list< osg::ref_ptr< OSGNodeStruct > > DrawObjectList
 
typedef std::list< osg::ref_ptr< OSGHudElementStruct > > HUDElements
 

Functions

void createCircleGeometry (osg::Vec3Array *vertices, osg::Vec3Array *normals, osg::Vec2Array *uv, float radius, float theta, osg::Vec3 offset, bool switchFace)
 
static osg::Material * makeSelectionMaterial ()
 
std::vector< SphereFace > * makeSphere (unsigned int levelOfDetail)
 
static void sphereUV (const osg::Vec3 &p, float *s, float *t)
 
double sqr (double x)
 
bool operator<= (const osg::Vec3 &a, const osg::Vec3 &b)
 
template<typename T >
bool between (const T &down, const T &up, const T &query)
 
osg::Vec4 toOSGVec4 (const Color &col)
 
osg::Vec4 toOSGVec4 (const Vector &v, float w)
 
static osg::ref_ptr< osg::Geode > createLightMarker (const LightData &ls)
 

Variables

static int ReceivesShadowTraversalMask = 0x1000
 
static int CastsShadowTraversalMask = 0x2000
 
const unsigned int MASK_2D = 0xF0000000
 

Typedef Documentation

◆ DrawObjectList

typedef std::list< osg::ref_ptr<OSGNodeStruct> > mars::graphics::DrawObjectList

Definition at line 106 of file GraphicsManager.h.

◆ DrawObjects

typedef std::map< unsigned long, osg::ref_ptr<OSGNodeStruct> > mars::graphics::DrawObjects

Definition at line 105 of file GraphicsManager.h.

◆ HUDElements

typedef std::list< osg::ref_ptr<OSGHudElementStruct> > mars::graphics::HUDElements

Definition at line 107 of file GraphicsManager.h.

Function Documentation

◆ between()

template<typename T >
bool mars::graphics::between ( const T &  down,
const T &  up,
const T &  query 
)

Definition at line 913 of file TerrainDrawObject.cpp.

◆ createCircleGeometry()

void mars::graphics::createCircleGeometry ( osg::Vec3Array *  vertices,
osg::Vec3Array *  normals,
osg::Vec2Array *  uv,
float  radius,
float  theta,
osg::Vec3  offset,
bool  switchFace 
)

Definition at line 81 of file CylinderDrawObject.cpp.

◆ createLightMarker()

static osg::ref_ptr<osg::Geode> mars::graphics::createLightMarker ( const LightData ls)
static

Definition at line 38 of file OSGLightStruct.cpp.

◆ makeSelectionMaterial()

static osg::Material* mars::graphics::makeSelectionMaterial ( )
static

Definition at line 55 of file DrawObject.cpp.

◆ makeSphere()

std::vector<SphereFace>* mars::graphics::makeSphere ( unsigned int  levelOfDetail)

Definition at line 52 of file SphereDrawObject.cpp.

◆ operator<=()

bool mars::graphics::operator<= ( const osg::Vec3 &  a,
const osg::Vec3 &  b 
)

Definition at line 906 of file TerrainDrawObject.cpp.

◆ sphereUV()

static void mars::graphics::sphereUV ( const osg::Vec3 &  p,
float *  s,
float *  t 
)
static

Definition at line 93 of file SphereDrawObject.cpp.

◆ sqr()

double mars::graphics::sqr ( double  x)
inline

Definition at line 831 of file TerrainDrawObject.cpp.

◆ toOSGVec4() [1/2]

osg::Vec4 mars::graphics::toOSGVec4 ( const Color col)

Definition at line 62 of file gui_helper_functions.cpp.

◆ toOSGVec4() [2/2]

osg::Vec4 mars::graphics::toOSGVec4 ( const Vector v,
float  w 
)

Definition at line 66 of file gui_helper_functions.cpp.

Variable Documentation

◆ CastsShadowTraversalMask

int mars::graphics::CastsShadowTraversalMask = 0x2000
static

Definition at line 84 of file GraphicsManager.cpp.

◆ MASK_2D

const unsigned int mars::graphics::MASK_2D = 0xF0000000

Definition at line 56 of file GraphicsWidget.h.

◆ ReceivesShadowTraversalMask

int mars::graphics::ReceivesShadowTraversalMask = 0x1000
static

Definition at line 83 of file GraphicsManager.cpp.