29 #ifndef __GLOBALSETTINGS_H__
30 #define __GLOBALSETTINGS_H__
82 class H3DAPI_API MFOptionNode :
public TypedMFNode< H3DOptionNode > {
84 virtual void onAdd(
Node *n );
85 virtual void onRemove(
Node *n );
92 Inst< SFNode > _metadata = 0,
93 Inst< SFTime > _bindTime = 0,
94 Inst< SFBool > _isBound = 0,
95 Inst< MFOptionNode > _options = 0,
96 Inst< SFBool > _x3dROUTESendsEvent = 0,
97 Inst< SFBool > _loadTexturesInThread = 0,
98 Inst< SFString > _renderMode = 0,
99 Inst< SFBool > _multiThreadedPython = 0);
115 template<
class OptionNodeType >
117 for( MFOptionNode::const_iterator i = options->begin();
118 i != options->end(); ++i ) {
119 OptionNodeType *option_node =
dynamic_cast<OptionNodeType *
>(*i);
121 option = option_node;
200 return !updateOptions->isUpToDate();
205 H3DUniquePtr< UpdateOptions > updateOptions;
Header file for GraphicsOptions.
Header file for H3DOptionNode.
Contains the MFNode class.
Header file for PeriodicUpdate, template field modifier.
Contains the SFBool field class.
Contains the SFFloat field class.
Contains the SFString field class.
Header file for X3DBindableNode, X3D scene-graph node.
GlobalSettings is a X3DBindableNode that specifies default settings for use in H3D API,...
Definition: GlobalSettings.h:79
H3DUniquePtr< SFString > renderMode
Controls the render mode of all geometries in the scene.
Definition: GlobalSettings.h:170
bool optionNodesUpdated()
check whether option nodes has updated since last scene graph loop
Definition: GlobalSettings.h:199
~GlobalSettings()
Destructor.
Definition: GlobalSettings.h:102
static bool default_x3d_route_sends_event
The default value for the x3dROUTESendsEvent field.
Definition: GlobalSettings.h:196
H3DUniquePtr< MFOptionNode > options
Contains the H3DOptionNode to be use as default settings.
Definition: GlobalSettings.h:132
H3DUniquePtr< SFBool > multiThreadedPython
If true then the embedded Python interpreter is initialized to support multi-threaded use of the Pyth...
Definition: GlobalSettings.h:190
static GlobalSettings * getActive()
Convenience function to get the top of the DeviceInfo stack.
Definition: GlobalSettings.h:107
H3DUniquePtr< SFBool > loadTexturesInThread
Controls if the downloading/reading of texture image data from file should be done in a separate thre...
Definition: GlobalSettings.h:155
H3DUniquePtr< SFBool > x3dROUTESendsEvent
According to the X3D specification the ROUTE statement in an X3D file is not supposed to send an even...
Definition: GlobalSettings.h:143
void getOptionNode(OptionNodeType *&option)
Get the first option node of the type of the pointer given as argument.
Definition: GlobalSettings.h:116
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: GlobalSettings.h:193
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
Template to make sure that the Nodes that are added to a MFNode are of a specified Node type.
Definition: MFNode.h:221
X3DBindableNode is the abstract base type for all bindable children nodes, including Background,...
Definition: X3DBindableNode.h:108
static X3DBindableNode * getActive(const string &bindable_stack_name)
Returns the active bindable instance, i.e.
Definition: X3DBindableNode.h:149
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194