newspeoplefor developersdocumentationdownloads

nShadowSkinShapeNode Class Reference
[Scene System]

#include <nshadowskinshapenode.h>

Inheritance diagram for nShadowSkinShapeNode:

nTransformNode nSceneNode nRoot nObject nNode nReferenced nSignalEmitter List of all members.

Detailed Description

A shadow skin node is 'visible' object that provide shadow to the scene.

It can be animated like a skinshape node, and provides shadow for skinned meshes.

(C) 2005 RadonLabs GmbH

Definition at line 23 of file nshadowskinshapenode.h.


Public Member Functions

 nShadowSkinShapeNode ()
 constructor
virtual ~nShadowSkinShapeNode ()
 destructor
virtual bool SaveCmds (nPersistServer *ps)
 save object to persistent stream
virtual bool LoadResources ()
 load resources for this object
virtual void UnloadResources ()
 unload resources for this object
virtual bool RenderShadow (nSceneServer *sceneServer, nRenderContext *renderContext, const matrix44 &modelMatrix)
 perform per-instance-rendering of shadow
virtual bool HasShadow () const
 return true if node provides shadow
void SetMesh (const nString &n)
 set the mesh resource name
const nStringGetMesh () const
 get the mesh resource name
void SetGroupIndex (int i)
 set the mesh group index
int GetGroupIndex () const
 get the mesh group index
void SetSkinAnimator (const char *path)
 set the skin animator
const char * GetSkinAnimator () const
 get the skin animator
void SetCharSkeleton (const nCharSkeleton *charSkeleton)
 set pointer to an uptodate character skeleton object (called exclusively by nSkinAnimator)

Protected Attributes

nString meshName
int groupIndex
nRef< nSkinnedShadowCaster2refShadowCaster
nDynAutoRef< nSkinAnimatorrefSkinAnimator

Static Protected Attributes

static const float maxDistance = 30.0f

Constructor & Destructor Documentation

nShadowSkinShapeNode::nShadowSkinShapeNode  ) 
 

constructor

Definition at line 17 of file nshadowskinshapenode_main.cc.

nShadowSkinShapeNode::~nShadowSkinShapeNode  )  [virtual]
 

destructor

Definition at line 26 of file nshadowskinshapenode_main.cc.


Member Function Documentation

virtual bool nShadowSkinShapeNode::SaveCmds nPersistServer ps  )  [virtual]
 

save object to persistent stream

Reimplemented from nTransformNode.

bool nShadowSkinShapeNode::LoadResources  )  [virtual]
 

load resources for this object

Initializes the embedded shadow caster.

Reimplemented from nSceneNode.

Definition at line 46 of file nshadowskinshapenode_main.cc.

void nShadowSkinShapeNode::UnloadResources  )  [virtual]
 

unload resources for this object

Releases the embedded shadow caster.

Reimplemented from nSceneNode.

Definition at line 68 of file nshadowskinshapenode_main.cc.

bool nShadowSkinShapeNode::RenderShadow nSceneServer sceneServer,
nRenderContext renderContext,
const matrix44 modelMatrix
[virtual]
 

perform per-instance-rendering of shadow

Reimplemented from nSceneNode.

Definition at line 82 of file nshadowskinshapenode_main.cc.

bool nShadowSkinShapeNode::HasShadow  )  const [virtual]
 

return true if node provides shadow

Indicate to scene server that we provide shadow

Reimplemented from nSceneNode.

Definition at line 36 of file nshadowskinshapenode_main.cc.

void nShadowSkinShapeNode::SetMesh const nString n  )  [inline]
 

set the mesh resource name

Definition at line 68 of file nshadowskinshapenode.h.

const nString & nShadowSkinShapeNode::GetMesh  )  const [inline]
 

get the mesh resource name

Definition at line 78 of file nshadowskinshapenode.h.

void nShadowSkinShapeNode::SetGroupIndex int  i  )  [inline]
 

set the mesh group index

Definition at line 88 of file nshadowskinshapenode.h.

int nShadowSkinShapeNode::GetGroupIndex  )  const [inline]
 

get the mesh group index

Definition at line 98 of file nshadowskinshapenode.h.

void nShadowSkinShapeNode::SetSkinAnimator const char *  path  )  [inline]
 

set the skin animator

Set relative path to the skin animator object.

Definition at line 109 of file nshadowskinshapenode.h.

const char * nShadowSkinShapeNode::GetSkinAnimator  )  const [inline]
 

get the skin animator

Get relative path to the skin animator object

Definition at line 121 of file nshadowskinshapenode.h.

void nShadowSkinShapeNode::SetCharSkeleton const nCharSkeleton charSkeleton  )  [inline]
 

set pointer to an uptodate character skeleton object (called exclusively by nSkinAnimator)

Update the pointer to an uptodate nCharSkeleton object. This pointer is provided by the nSkinAnimator object and is routed to the nCharSkinRenderer so that the mesh can be properly deformed.

Definition at line 134 of file nshadowskinshapenode.h.


Member Data Documentation

const float nShadowSkinShapeNode::maxDistance = 30.0f [static, protected]
 

Definition at line 12 of file nshadowskinshapenode_main.cc.

nString nShadowSkinShapeNode::meshName [protected]
 

Definition at line 57 of file nshadowskinshapenode.h.

int nShadowSkinShapeNode::groupIndex [protected]
 

Definition at line 58 of file nshadowskinshapenode.h.

nRef<nSkinnedShadowCaster2> nShadowSkinShapeNode::refShadowCaster [protected]
 

Definition at line 59 of file nshadowskinshapenode.h.

nDynAutoRef<nSkinAnimator> nShadowSkinShapeNode::refSkinAnimator [protected]
 

Definition at line 60 of file nshadowskinshapenode.h.


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

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.