C# Class Axiom.Demos.Water

Demonstrates simulation of Water mesh
Inheritance: DemoBase
Datei anzeigen Open project: WolfgangSt/axiom

Protected Properties

Property Type Description
CMPLX int
GuiMgr Axiom.Overlays.OverlayElementManager
PLANE_SIZE float
RAIN_HEIGHT_CONSTANT int
RAIN_HEIGHT_RANDOM int
RAND System.Random
adds double[]
animState AnimationState
animTime float
changeSpeed int
headDepth float
headNode Axiom.Core.SceneNode
headSpeed float
inputInterval float
lightMode string
lightModeIndex int
lightNode Axiom.Core.SceneNode
lightSet Axiom.Core.BillboardSet
materialNumber int
modeInterval float
oldPos Vector3
particleEmitter Axiom.ParticleSystems.ParticleEmitter
particleSystem ParticleSystem
planeEnt Entity
rainOn bool
reflectionPlane Axiom.MathLib.Plane
sines double[]
skyBoxOn bool
statsInterval float
trackingOn bool
waterEntity Entity
waterMesh WaterMesh
waterOverlay Axiom.Overlays.Overlay

Public Methods

Method Description
AnimateHead ( float timeSinceLastFrame ) : void
CreateScene ( ) : void

Protected Methods

Method Description
HandleUserModeInput ( string logText ) : void

Prints output to screen/log, and resets Input Timer to avoid rapid flicker.

ModeUpdate ( ) : void

Process User Inputs to change Axiom Render Mode or Print Screen. Slow Update Rate.

ModeUpdateCustom ( ) : bool
OnFrameStarted ( object source, FrameEventArgs evt ) : void
ProcessRain ( ) : void
RapidUpdate ( ) : void

Handle Inputs that Move and Turn the Camera. Fast Update Rate.

RapidUpdateCustom ( ) : bool
ToggleMode ( string mode ) : void

Private Methods

Method Description
AddLight ( string name, Vector3 pos, ColorEx color, LightType type ) : Light
AdjustRange ( float &val, KeyCodes plus, KeyCodes minus, float min, float max, float chg ) : bool
SetLighting ( string mode ) : void
UpdateInfoHeadDepth ( ) : void
UpdateInfoHeadSpeed ( ) : void
UpdateInfoLights ( ) : void
UpdateInfoNormals ( ) : void
UpdateInfoParamC ( ) : void
UpdateInfoParamD ( ) : void
UpdateInfoParamT ( ) : void
UpdateInfoParamU ( ) : void
UpdateInfoRain ( ) : void
UpdateInfoSkyBox ( ) : void
UpdateInfoTracking ( ) : void
UpdateMaterial ( ) : void

Method Details

AnimateHead() public method

public AnimateHead ( float timeSinceLastFrame ) : void
timeSinceLastFrame float
return void

CreateScene() public method

public CreateScene ( ) : void
return void

HandleUserModeInput() protected method

Prints output to screen/log, and resets Input Timer to avoid rapid flicker.
protected HandleUserModeInput ( string logText ) : void
logText string
return void

ModeUpdate() protected method

Process User Inputs to change Axiom Render Mode or Print Screen. Slow Update Rate.
protected ModeUpdate ( ) : void
return void

ModeUpdateCustom() protected method

protected ModeUpdateCustom ( ) : bool
return bool

OnFrameStarted() protected method

protected OnFrameStarted ( object source, FrameEventArgs evt ) : void
source object
evt FrameEventArgs
return void

ProcessRain() protected method

protected ProcessRain ( ) : void
return void

RapidUpdate() protected method

Handle Inputs that Move and Turn the Camera. Fast Update Rate.
protected RapidUpdate ( ) : void
return void

RapidUpdateCustom() protected method

protected RapidUpdateCustom ( ) : bool
return bool

ToggleMode() protected method

protected ToggleMode ( string mode ) : void
mode string
return void

Property Details

CMPLX protected_oe static_oe property

protected static int CMPLX
return int

GuiMgr protected_oe property

protected OverlayElementManager,Axiom.Overlays GuiMgr
return Axiom.Overlays.OverlayElementManager

PLANE_SIZE protected_oe static_oe property

protected static float PLANE_SIZE
return float

RAIN_HEIGHT_CONSTANT protected_oe property

protected int RAIN_HEIGHT_CONSTANT
return int

RAIN_HEIGHT_RANDOM protected_oe property

protected int RAIN_HEIGHT_RANDOM
return int

RAND protected_oe property

protected Random,System RAND
return System.Random

adds protected_oe property

protected double[] adds
return double[]

animState protected_oe property

protected AnimationState animState
return AnimationState

animTime protected_oe property

protected float animTime
return float

changeSpeed protected_oe property

protected int changeSpeed
return int

headDepth protected_oe property

protected float headDepth
return float

headNode protected_oe property

protected SceneNode,Axiom.Core headNode
return Axiom.Core.SceneNode

headSpeed protected_oe property

protected float headSpeed
return float

inputInterval protected_oe property

protected float inputInterval
return float

lightMode protected_oe property

protected string lightMode
return string

lightModeIndex protected_oe property

protected int lightModeIndex
return int

lightNode protected_oe property

protected SceneNode,Axiom.Core lightNode
return Axiom.Core.SceneNode

lightSet protected_oe property

protected BillboardSet,Axiom.Core lightSet
return Axiom.Core.BillboardSet

materialNumber protected_oe property

protected int materialNumber
return int

modeInterval protected_oe property

protected float modeInterval
return float

oldPos protected_oe property

protected Vector3 oldPos
return Vector3

particleEmitter protected_oe property

protected ParticleEmitter,Axiom.ParticleSystems particleEmitter
return Axiom.ParticleSystems.ParticleEmitter

particleSystem protected_oe property

protected ParticleSystem particleSystem
return ParticleSystem

planeEnt protected_oe property

protected Entity planeEnt
return Entity

rainOn protected_oe property

protected bool rainOn
return bool

reflectionPlane protected_oe property

protected Plane,Axiom.MathLib reflectionPlane
return Axiom.MathLib.Plane

sines protected_oe property

protected double[] sines
return double[]

skyBoxOn protected_oe property

protected bool skyBoxOn
return bool

statsInterval protected_oe property

protected float statsInterval
return float

trackingOn protected_oe property

protected bool trackingOn
return bool

waterEntity protected_oe property

protected Entity waterEntity
return Entity

waterMesh protected_oe property

protected WaterMesh,Axiom.Demos waterMesh
return WaterMesh

waterOverlay protected_oe property

protected Overlay,Axiom.Overlays waterOverlay
return Axiom.Overlays.Overlay