# ReadFile File Reference

`#include <string>`
`#include <osg/Node>`
`#include <osg/Image>`
`#include <osg/ArgumentParser>`
`#include <osgDB/Export>`
`#include <osgDB/Registry>`

Include dependency graph for ReadFile:

This graph shows which files directly or indirectly include this file:

## Namespaces

namespace | osgDB

## Defines

#define | OSGDB_READFILE 1

## Functions

OSGDB_EXPORT osg::Object * | readObjectFile (const std::string &filename, const ReaderWriter::Options *options)
| Read an osg::Object from file.
osg::Object * | readObjectFile (const std::string &filename)
| Read an osg::Object from file.
OSGDB_EXPORT osg::Image * | readImageFile (const std::string &filename, const ReaderWriter::Options *options)
| Read an osg::Image from file.
osg::Image * | readImageFile (const std::string &filename)
| Read an osg::Image from file.
OSGDB_EXPORT osg::HeightField * | readHeightFieldFile (const std::string &filename, const ReaderWriter::Options *options)
| Read an osg::HeightField from file.
osg::HeightField * | readHeightFieldFile (const std::string &filename)
| Read an osg::HeightField from file.
OSGDB_EXPORT osg::Node * | readNodeFile (const std::string &filename, const ReaderWriter::Options *options)
| Read an osg::Node from file.
osg::Node * | readNodeFile (const std::string &filename)
| Read an osg::Node from file.
OSGDB_EXPORT osg::Node * | readNodeFiles (std::vector< std::string > &commandLine, const ReaderWriter::Options *options)
| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.
osg::Node * | readNodeFiles (std::vector< std::string > &commandLine)
| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.
OSGDB_EXPORT osg::Node * | readNodeFiles (osg::ArgumentParser &parser, const ReaderWriter::Options *options)
| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.
osg::Node * | readNodeFiles (osg::ArgumentParser &parser)
| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.

## Define Documentation

#define OSGDB_READFILE 1

## Function Documentation

osg::HeightField* readHeightFieldFile | ( | const std::string & | filename | ) | `[inline]`

| Read an osg::HeightField from file. Return valid osg::HeightField on success, return NULL on failure. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.

HeightField * osgDB::readHeightFieldFile | ( | const std::string & | filename,
|  | const ReaderWriter::Options * | options
| ) |

| Read an osg::HeightField from file. Return valid osg::HeightField on success, return NULL on failure. Use the Options object to control cache operations and file search paths in osgDB::Registry. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.

osg::Image* readImageFile | ( | const std::string & | filename | ) | `[inline]`

| Read an osg::Image from file. Return valid osg::Image on success, return NULL on failure. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.

Image * osgDB::readImageFile | ( | const std::string & | filename,
|  | const ReaderWriter::Options * | options
| ) |

| Read an osg::Image from file. Return valid osg::Image on success, return NULL on failure. Use the Options object to control cache operations and file search paths in osgDB::Registry. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.

osg::Node* readNodeFile | ( | const std::string & | filename | ) | `[inline]`

| Read an osg::Node from file. Return valid osg::Node on success, return NULL on failure. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.

Node * osgDB::readNodeFile | ( | const std::string & | filename,
|  | const ReaderWriter::Options * | options
| ) |

| Read an osg::Node from file. Return valid osg::Node on success, return NULL on failure. Use the Options object to control cache operations and file search paths in osgDB::Registry. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.

osg::Node* readNodeFiles | ( | osg::ArgumentParser & | parser | ) | `[inline]`

| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.

Node * osgDB::readNodeFiles | ( | osg::ArgumentParser & | parser,
|  | const ReaderWriter::Options * | options
| ) |

| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded. Use the Options object to control cache operations and file search paths in osgDB::Registry.

osg::Node* readNodeFiles | ( | std::vector< std::string > & | commandLine | ) | `[inline]`

| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded.

Node * osgDB::readNodeFiles | ( | std::vector< std::string > & | commandLine,
|  | const ReaderWriter::Options * | options
| ) |

| Read an osg::Node subgraph from files, creating a osg::Group to contain the nodes if more than one subgraph has been loaded. Use the Options object to control cache operations and file search paths in osgDB::Registry.

osg::Object* readObjectFile | ( | const std::string & | filename | ) | `[inline]`

| Read an osg::Object from file. Return valid osg::Object on success, return NULL on failure. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.

Object * osgDB::readObjectFile | ( | const std::string & | filename,
|  | const ReaderWriter::Options * | options
| ) |

| Read an osg::Object from file. Return valid osg::Object on success, return NULL on failure. Use the Options object to control cache operations and file search paths in osgDB::Registry. The osgDB::Registry is used to load the appropriate ReaderWriter plugin for the filename extension, and this plugin then handles the request to read the specified file.