C# Class entity.Renderers.BSPCollisionViewer

The bsp collision viewer.
Inheritance: System.Windows.Forms.Form
Show file Open project: troymac1ure/Entity Class Usage Examples

Public Methods

Method Description
BSPCollisionViewer ( BSPModel tempcoll, Map map ) : System

Initializes a new instance of the BSPCollisionViewer class.

InitializeGraphics ( ) : bool

The initialize graphics.

LoadMesh ( ) : void

The load mesh.

Main ( ) : void

The main entry point for the application.

MoveSpawnsWithKeyboard ( ) : void

Keyboard movements

OnResetDevice ( object sender, EventArgs e ) : void

The on reset device.

Protected Methods

Method Description
OnKeyPress ( KeyPressEventArgs e ) : void

The on key press.

OnPaint ( PaintEventArgs e ) : void

The on paint.

OnResize ( EventArgs e ) : void

The on resize.

Private Methods

Method Description
BSPCollisionViewer_FormClosing ( object sender, FormClosingEventArgs e ) : void

Occurs when the form is closed

BSPCollisionViewer_MouseDown ( object sender, MouseEventArgs e ) : void

The bsp collision viewer_ mouse down.

BSPCollisionViewer_MouseEnter ( object sender, EventArgs e ) : void

When the mouse enters the viewport, disable the broup box to remove focus

DeriveTrianglePlanes ( System.Vector3 trianglePoints ) : Plane
InitializeComponent ( ) : void

The initialize component.

LoadMeta ( ) : void

Loads all the points / edges, builds the polygon and loads the polygon data.

ModelViewer_MouseDown ( object sender, MouseEventArgs e ) : void

The model viewer_ mouse down.

ModelViewer_MouseUp ( object sender, MouseEventArgs e ) : void

The model viewer_ mouse up.

Render ( ) : void

The render.

SetupMatrices ( ) : void

The setup matrices.

calculatePlane ( System.Vector3 trianglePoints ) : System.Vector4
cb_CheckedChanged ( object sender, EventArgs e ) : void

Occurs when any of the checkBoxes are checked/unchecked

saveBSPCollisionChanges ( ) : void

Supposed to save BSP Collision point movements and other stuff, but never finished this stuff.

saveBSPSurfaceChanges ( ) : void
updateBSPInfo ( int vertNumber, float x, float y, float z ) : void

Used to reposition verticies in the collision mesh

updateInfo ( ) : void

Used to update the current Meta values.

Method Details

BSPCollisionViewer() public method

Initializes a new instance of the BSPCollisionViewer class.
public BSPCollisionViewer ( BSPModel tempcoll, Map map ) : System
tempcoll HaloMap.RawData.BSPModel The tempcoll.
map HaloMap.Map.Map The map.
return System

InitializeGraphics() public method

The initialize graphics.
public InitializeGraphics ( ) : bool
return bool

LoadMesh() public method

The load mesh.
public LoadMesh ( ) : void
return void

Main() public method

The main entry point for the application.
public Main ( ) : void
return void

MoveSpawnsWithKeyboard() public method

Keyboard movements
public MoveSpawnsWithKeyboard ( ) : void
return void

OnKeyPress() protected method

The on key press.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs The e.
return void

OnPaint() protected method

The on paint.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs The e.
return void

OnResetDevice() public method

The on reset device.
public OnResetDevice ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The e.
return void

OnResize() protected method

The on resize.
protected OnResize ( EventArgs e ) : void
e System.EventArgs The e.
return void