VRUT::ScriptNode Class Reference

The ScriptScene class accesses the Scene class. More...

#include <scriptnode.h>

List of all members.

Public Member Functions

 ScriptNode (ScriptScene *_ss, SCENE_ID sid, NODE_ID nid)
NODE_ID GetID () throw (NodeScriptException, SceneScriptException)
const wxString & GetName () throw (NodeScriptException, SceneScriptException)
const wxString & GetUid () throw (NodeScriptException, SceneScriptException)
const MATRIXGetLocalTransMatrix () throw (NodeScriptException, SceneScriptException)
const MATRIXGetWorldTransMatrix () throw (NodeScriptException, SceneScriptException)
const SceneNode::NodeIDListGetChildren () throw (NodeScriptException, SceneScriptException)
NODE_ID GetParent () throw (NodeScriptException, SceneScriptException)
bool IsValid () throw (NodeScriptException, SceneScriptException)
bool IsActive () throw (NodeScriptException, SceneScriptException)
SceneNode::SCENENODE_TYPE GetType () throw (NodeScriptException, SceneScriptException)
bool IsOfType (SceneNode::SCENENODE_TYPE _type) throw (NodeScriptException, SceneScriptException)

Private Member Functions

const SceneNodegetNode () throw (NodeScriptException, SceneScriptException)
 The method for getting SceneNode which this class accesses.

Private Attributes

Kernelkernel
 The Kernel pointer.
ScriptSceness
 The ScriptScene pointer.
SCENE_ID sceneID
 The scene ID.
NODE_ID nodeID
 The node ID.


Detailed Description

The ScriptScene class accesses the Scene class.

Definition at line 24 of file scriptnode.h.


Constructor & Destructor Documentation

VRUT::ScriptNode::ScriptNode ( ScriptScene _ss,
SCENE_ID  sid,
NODE_ID  nid 
) [inline]

Definition at line 40 of file scriptnode.h.

00041                      : ss(_ss), kernel(_ss->kernel), sceneID(sid), nodeID(nid) {}


Member Function Documentation

const SceneNode * ScriptNode::getNode (  )  throw (NodeScriptException, SceneScriptException) [private]

The method for getting SceneNode which this class accesses.

Definition at line 20 of file scriptnode.cpp.

00021 {
00022        Scene *scene = ss->getScene();
00023        const SceneNode *node = scene->GetNode(nodeID);
00024        if (!node)
00025        {
00026               ss->deleteScriptNode(nodeID);
00027               throw NodeScriptException();
00028        }
00029        return node;
00030 }

NODE_ID VRUT::ScriptNode::GetID (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 43 of file scriptnode.h.

00044               {
00045                      return getNode()->GetID();
00046               }

const wxString& VRUT::ScriptNode::GetName (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 48 of file scriptnode.h.

00049               {
00050                      return getNode()->GetName();
00051               }

const wxString& VRUT::ScriptNode::GetUid (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 53 of file scriptnode.h.

00054               {
00055                      return getNode()->GetUid();
00056               }

const MATRIX* VRUT::ScriptNode::GetLocalTransMatrix (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 58 of file scriptnode.h.

00059               {
00060                      return getNode()->GetLocalTransMatrix();
00061               }

const MATRIX* VRUT::ScriptNode::GetWorldTransMatrix (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 63 of file scriptnode.h.

00064               {
00065                      return getNode()->GetWorldTransMatrix();
00066               }

const SceneNode::NodeIDList* VRUT::ScriptNode::GetChildren (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 68 of file scriptnode.h.

00069               {
00070                      return getNode()->GetChildren();
00071               }

NODE_ID VRUT::ScriptNode::GetParent (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 73 of file scriptnode.h.

00074               {
00075                      return getNode()->GetParent();
00076               }

bool VRUT::ScriptNode::IsValid (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 78 of file scriptnode.h.

00079               {
00080                      return getNode()->IsValid();
00081               }

bool VRUT::ScriptNode::IsActive (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 83 of file scriptnode.h.

00084               {
00085                      return getNode()->IsActive();
00086               }

SceneNode::SCENENODE_TYPE VRUT::ScriptNode::GetType (  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 88 of file scriptnode.h.

00089               {
00090                      return getNode()->GetType();
00091               }

bool VRUT::ScriptNode::IsOfType ( SceneNode::SCENENODE_TYPE  _type  )  throw (NodeScriptException, SceneScriptException) [inline]

Definition at line 93 of file scriptnode.h.

00094               {
00095                      return getNode()->IsOfType(_type);
00096               }


Member Data Documentation

The Kernel pointer.

Definition at line 28 of file scriptnode.h.

The ScriptScene pointer.

Definition at line 30 of file scriptnode.h.

The scene ID.

Definition at line 32 of file scriptnode.h.

The node ID.

Definition at line 34 of file scriptnode.h.


The documentation for this class was generated from the following files:

Generated on Tue Mar 10 14:41:50 2009 for VRUT by  doxygen 1.5.5