OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | Static Private Attributes | List of all members
NifOsg::Loader Class Reference

#include <nifloader.hpp>

Collaboration diagram for NifOsg::Loader:

Static Public Member Functions

static osg::ref_ptr< osg::Node > load (Nif::NIFFilePtr file, Resource::ImageManager *imageManager)
 Create a scene graph for the given NIF. Auto-detects when skinning is used and wraps the graph in a Skeleton if so. More...
 
static void loadKf (Nif::NIFFilePtr kf, KeyframeHolder &target)
 Load keyframe controllers from the given kf file. More...
 
static void setShowMarkers (bool show)
 
static bool getShowMarkers ()
 

Static Private Attributes

static bool sShowMarkers = false
 

Detailed Description

The main class responsible for loading NIF files into an OSG-Scenegraph.

This scene graph is self-contained and can be cloned using osg::clone if desired. Particle emitters
and programs hold a pointer to their ParticleSystem, which would need to be manually updated when cloning.

Member Function Documentation

bool NifOsg::Loader::getShowMarkers ( )
static

Here is the caller graph for this function:

osg::ref_ptr< osg::Node > NifOsg::Loader::load ( Nif::NIFFilePtr  file,
Resource::ImageManager imageManager 
)
static

Create a scene graph for the given NIF. Auto-detects when skinning is used and wraps the graph in a Skeleton if so.

Here is the call graph for this function:

Here is the caller graph for this function:

void NifOsg::Loader::loadKf ( Nif::NIFFilePtr  kf,
KeyframeHolder target 
)
static

Load keyframe controllers from the given kf file.

Here is the call graph for this function:

Here is the caller graph for this function:

void NifOsg::Loader::setShowMarkers ( bool  show)
static

Set whether or not nodes marked as "MRK" should be shown. These should be hidden ingame, but visible in the editor. Default: false.

Here is the caller graph for this function:

Member Data Documentation

bool NifOsg::Loader::sShowMarkers = false
staticprivate

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