AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
agxOSG/ReaderWriter.h File Reference
#include <agxOSG/export.h>
#include <agxOSG/RigidBodyRenderCache.h>
#include <string>
#include <agx/PushDisableWarnings.h>
#include <osgDB/ReadFile>
#include <agx/PopDisableWarnings.h>
#include <agx/Math.h>
#include <agxSDK/Simulation.h>

Go to the source code of this file.

Namespaces

namespace  agxOSG
 The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
 

Functions

AGXOSG_EXPORT bool agxOSG::readFile (const std::string &filename, agxSDK::Simulation *simulation, osg::Group *root, agxSDK::Assembly *parent=nullptr, agx::Real detailRatio=0.35, bool createAxis=false, agx::UInt selection=agxSDK::Simulation::READ_DEFAULT, agxOSG::RigidBodyRenderCache *cache=nullptr)
 Utility function for reading various files:
 
AGXOSG_EXPORT osg::Node * agxOSG::readNodeFile (const std::string &filename, bool searchForIve=false)
 Read a specified filename from disk and return it as a OpenSceneGraph node.
 
AGXOSG_EXPORT osg::Node * agxOSG::readNodeFile (const std::string &filename, const osgDB::ReaderWriter::Options *options, bool searchForIve=false)
 Read a specified filename from disk and return it as a OpenSceneGraph node.