Click or drag to resize
DigitalRuneSceneNodeCollisionFilter Class
Filters collisions between scene nodes using their group IDs.
Inheritance Hierarchy
SystemObject
  DigitalRune.Graphics.SceneGraphSceneNodeCollisionFilter

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class SceneNodeCollisionFilter : IPairFilter<SceneNode>

The SceneNodeCollisionFilter type exposes the following members.

Constructors
  NameDescription
Public methodSceneNodeCollisionFilter(Scene)
Initializes a new instance of the SceneNodeCollisionFilter class.
Public methodSceneNodeCollisionFilter(Scene, Int32)
Initializes a new instance of the SceneNodeCollisionFilter class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFilter
Determines whether the given SceneNodes can collide.
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 methodGet
Returns if collisions between two scene node groups are enabled.
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.)
Protected methodOnChanged
Raises the Changed event.
Public methodReset
Resets this filter. All collisions will be enabled.
Public methodSet
Enables or disables collisions between a pair of scene node groups.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyMaxNumberOfGroups
The maximum number of supported scene node groups.
Public propertyScene
Gets or sets the scene.
Top
Events
  NameDescription
Public eventChanged
Occurs when the filter rules were changed.
Top
Remarks

This filter uses the scene node groups (see SetGroup(SceneNode, Int32) and GetGroup(SceneNode)) to decide if a pair of scene nodes can "collide". Per default all collisions are enabled. Set(Int32, Int32, Boolean) can be used to disable collisions between two groups.

See Also