Click or drag to resize
DigitalRuneShadowCasterQuery Class
Returns the shadow casting nodes that touch a specific reference scene node.
Inheritance Hierarchy
SystemObject
  DigitalRune.Graphics.SceneGraphShadowCasterQuery

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class ShadowCasterQuery : ISceneQuery

The ShadowCasterQuery type exposes the following members.

Constructors
  NameDescription
Public methodShadowCasterQuery
Initializes a new instance of the ShadowCasterQuery class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Resets this query.
Public methodSet
Sets the query result.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyReferenceNode
Gets the reference node.
Public propertyShadowCasters
Gets the scene nodes that cast shadows.
Top
Remarks

A ShadowCasterQuery can be executed against a scene by calling QueryT(SceneNode, RenderContext). The query can be used to get all shadow casters in a scene that touch a certain reference node (usually the light node).

A scene node casts a shadow if CastsShadows is set. If the reference node of the query or the ReferenceNode in the RenderContext is a LightNode with a DirectionalLight, then the query also checks the IsShadowCasterCulled flag.

Terrain nodes:
TerrainNode are special. They only cast directional light shadows and are ignored for other light types.

See Also