newspeoplefor developersdocumentationdownloads

nSubdivShapeNode Class Reference
[Scene System]

#include <nsubdivshapenode.h>

Inheritance diagram for nSubdivShapeNode:

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

Detailed Description

Takes an input mesh and renders a tesselated mesh (FIXME: for now a pointlist based on subdivision parameters.

(C) 2003 RadonLabs GmbH

Definition at line 17 of file nsubdivshapenode.h.


Public Member Functions

 nSubdivShapeNode ()
 constructor
virtual ~nSubdivShapeNode ()
 destructor
virtual bool SaveCmds (nPersistServer *ps)
 object persistency
virtual bool ApplyShader (nSceneServer *sceneServer)
 perform pre-instancing rending of shader
virtual bool ApplyGeometry (nSceneServer *sceneServer)
 perform pre-instancing rending of geometry
virtual bool RenderGeometry (nSceneServer *sceneServer, nRenderContext *renderContext)
 render geometry
virtual int GetMeshUsage () const
 get the mesh usage flags required by this shape node
void SetSegmentSize (float s)
 set the desired segment size
float GetSegmentSize () const
 get segment size
void SetMaxDistance (float d)
 set max distance for subdivision (ignores triangles which are further away)
float GetMaxDistance () const
 get max distance for subdivision

Constructor & Destructor Documentation

nSubdivShapeNode::nSubdivShapeNode  ) 
 

constructor

Definition at line 12 of file nsubdivshapenode_main.cc.

nSubdivShapeNode::~nSubdivShapeNode  )  [virtual]
 

destructor

Definition at line 22 of file nsubdivshapenode_main.cc.


Member Function Documentation

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

object persistency

Reimplemented from nShapeNode.

bool nSubdivShapeNode::ApplyShader nSceneServer sceneServer  )  [virtual]
 

perform pre-instancing rending of shader

Apply shader variables.

Reimplemented from nMaterialNode.

Definition at line 55 of file nsubdivshapenode_main.cc.

bool nSubdivShapeNode::ApplyGeometry nSceneServer sceneServer  )  [virtual]
 

perform pre-instancing rending of geometry

Reimplemented from nShapeNode.

Definition at line 45 of file nsubdivshapenode_main.cc.

bool nSubdivShapeNode::RenderGeometry nSceneServer sceneServer,
nRenderContext renderContext
[virtual]
 

render geometry

NOTE: expects input geometry with the following vertex components: coord | normal | tangent | uv0 | uv1

Reimplemented from nShapeNode.

Definition at line 82 of file nsubdivshapenode_main.cc.

int nSubdivShapeNode::GetMeshUsage  )  const [virtual]
 

get the mesh usage flags required by this shape node

This method must return the mesh usage flag combination required by this shape node class. Subclasses should override this method based on their requirements.

Returns:
a combination on nMesh2::Usage flags

Reimplemented from nShapeNode.

Definition at line 36 of file nsubdivshapenode_main.cc.

void nSubdivShapeNode::SetSegmentSize float  s  )  [inline]
 

set the desired segment size

Definition at line 54 of file nsubdivshapenode.h.

float nSubdivShapeNode::GetSegmentSize  )  const [inline]
 

get segment size

Definition at line 65 of file nsubdivshapenode.h.

void nSubdivShapeNode::SetMaxDistance float  d  )  [inline]
 

set max distance for subdivision (ignores triangles which are further away)

Definition at line 75 of file nsubdivshapenode.h.

float nSubdivShapeNode::GetMaxDistance  )  const [inline]
 

get max distance for subdivision

Definition at line 86 of file nsubdivshapenode.h.


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

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