The XML graph resource class. More...

#include "murl_resource_xml_graph.h"

Inheritance diagram for Murl::Resource::XmlGraph:

Additional Inherited Members

- Public Types inherited from Murl::IFactoryObject< IObject >
using ClassInfoArray = Array< const ClassInfo * >
 Definition of an array of ClassInfo objects.
 
- Public Member Functions inherited from Murl::Resource::IObject
virtual Bool GetFileDependencies (Array< String > &fileNames) const =0
 Fill a given string array with names of files the resource depends on. More...
 
- Public Member Functions inherited from Murl::IFactoryObject< IObject >
 ~IFactoryObject () override
 The destructor.
 
virtual const ClassInfo * GetObjectClassInfo () const=0
 Get the object instance's class info, if present. More...
 
virtual void ResetObjectProperties ()=0
 Reset the object instance's properties to their default values.
 
- Static Public Member Functions inherited from Murl::IFactoryObject< IObject >
static const PropertyInfoGetPropertyInfo ()
 Get the class' property info struct. More...
 
static const AttributeInfoGetAttributeInfo ()
 Get the class' attribute info struct. More...
 
static void ResetProperties (IFactoryObject< IObject > *object)
 Reset an object instance's properties to their default values. More...
 

Detailed Description

The XML graph resource class.

An XML graph file is recognized by its <Graph> root element. Within the root element, the actual (sub-)graph hierarchy may be defined, using any of the registered node classes from the main Graph::IFactory.

See Murl::Graph Node Classes and XML Graph Node Tags for an overview of available default node classes and their XML tags, respectively.

Example of an XML graph file:

<?xml version="1.0" ?>
<Graph>
<Instance graphResourceId="package_main:graph_mat"/>
<Namespace id="myGraph">
<View id="view"/>
<Camera
id="camera"
viewId="view"
fieldOfViewX="400"
nearPlane="400" farPlane="2500"
clearColorBuffer="1"
>
<CameraTransform
cameraId="camera"
posX="0" posY="0" posZ="800"
/>
<MaterialState
materialId="/material/mat_white"
slot="0"
/>
<CubeGeometry
id="myCube01"
scaleFactor="200"
posX="0" posY="0" posZ="0"
/>
</Camera>
</Namespace>
</Graph>

Use the <Resource> tag in a .murlres package's resource.xml file to specify an XML graph resource. See Resource::Object.


The documentation for this class was generated from the following file:
  • murl_resource_xml_graph.h


Copyright © 2011-2024 Spraylight GmbH.