AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
agxOSG/ReaderWriter.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGXOSG_READERWRITER_H
18#define AGXOSG_READERWRITER_H
19
20#include <agxOSG/export.h>
22#include <string>
23
24#include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
25#include <osgDB/ReadFile>
26#include <agx/PopDisableWarnings.h> // End of disabled warnings.
27
28#include <agx/Math.h>
29#include <agxSDK/Simulation.h>
30
32
33
34namespace osg {
35 class Node;
36}
37
38namespace agxSDK
39{
40 class Assembly;
41}
43
44namespace agxOSG
45{
46 class ExampleApplication;
47
59 AGXOSG_EXPORT osg::Node* readNodeFile(const std::string& filename, bool searchForIve=false);
60
72 AGXOSG_EXPORT osg::Node* readNodeFile(const std::string& filename, const osgDB::ReaderWriter::Options* options, bool searchForIve=false );
73
93 AGXOSG_EXPORT bool readFile(const std::string& filename, agxSDK::Simulation *simulation,
94 osg::Group *root, agxSDK::Assembly *parent=nullptr,
95 agx::Real detailRatio=0.35, bool createAxis=false,
97 agxOSG::RigidBodyRenderCache* cache = nullptr );
98
99
100
101} // Namespace agxOSG
102
103#endif
104
#define AGXOSG_EXPORT
RigidBodyRenderCache is used to cache generated visuals and lookup mappings of RigidBodies cloned fro...
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
Definition: Assembly.h:70
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:131
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
AGXOSG_EXPORT osg::Node * readNodeFile(const std::string &filename, bool searchForIve=false)
Read a specified filename from disk and return it as a OpenSceneGraph node.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:31
uint64_t UInt
Definition: Integer.h:27
double Real
Definition: Real.h:41