C# Class entity.Renderers.BSPViewer

Inheritance: System.Windows.Forms.Form
Mostra file Open project: troymac1ure/Entity Class Usage Examples

Public Properties

Property Type Description
cam Camera2
speedBar TrackBar
visibleSpawnsBitMask int

Public Methods

Method Description
BSPViewer ( BSPModel tempbsp, Map map ) : System

Initializes a new instance of the BSPViewer class.

Dispose ( ) : void
H2BSPWriteRawDataMetaChunk ( int chunknumber, BSPModel &bsp, int BSPNum ) : void

The h 2 bsp write raw data meta chunk.

InitializeGraphics ( ) : bool

The initialize graphics.

LoadSpawns ( ) : void

The load spawns.

Main ( ) : void

The main entry point for the application.

MakeMatrixForSpawn ( int x ) : System.Matrix

The make matrix for spawn.

MakeMatrixes ( ) : void

The make matrixes.

MoveSpawnsWithKeyboard ( ) : void

The move spawns with keyboard.

RenderLightmap ( int LightmapIndex ) : Image

The render lightmap.

checkForIntersection ( MouseEventArgs e ) : int[]

The check for intersection.

setCameraPosition ( float X, float Y, float Z, bool exactLocation ) : void

The set camera position.

speedBar_Update ( ) : void

The speed bar_ update.

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.

WndProc ( Message &m ) : void

The wnd proc.

Private Methods

Method Description
BSPLighting_CheckedChanged ( object sender, EventArgs e ) : void

The bsp lighting_ checked changed.

BSPPermutations_CheckedChanged ( object sender, EventArgs e ) : void

The bsp permutations_ checked changed.

BSPViewer_MouseDown ( object sender, MouseEventArgs e ) : void

The bsp viewer_ mouse down.

BSPViewer_MouseUp ( object sender, MouseEventArgs e ) : void

The bsp viewer_ mouse up.

CameraCulling_CheckedChanged ( object sender, EventArgs e ) : void

Selects/Deselects Camera Culling option

ColorBalance ( byte source, int redShift, int greenShift, int blueShift, bool preserve ) : byte[][]

The color balance.

DrawSkybox ( ParsedModel pm ) : void

The draw skybox.

EditLightmaps ( ) : void

The edit lightmaps.

HueSaturation ( byte source, int hueShift, int satShift, int lightShift, bool colorize ) : byte[][]

The hue saturation.

InitializeComponent ( ) : void
Load_Lightmaps_Into_An_Array ( ) : void

The load_ lightmaps_ into_ an_ array.

ModelViewer_MouseDown ( object sender, MouseEventArgs e ) : void

The model viewer_ mouse down.

ModelViewer_MouseUp ( object sender, MouseEventArgs e ) : void

The model viewer_ mouse up.

OnFormResizeEnd ( ) : void

The on form resize end.

PictureBox_Click ( object sender, EventArgs e ) : void

The picture box_ click.

ReloadFromArray ( ) : void

The reload from array.

Render ( ) : void

The render.

SaveChanges_Click ( object sender, EventArgs e ) : void

The save changes_ click.

SelectAllSpawns_Click ( object sender, EventArgs e ) : void

The select all spawns_ click.

SetupMatrices ( ) : void

The setup matrices.

SpawnList_Check ( object sender, ItemCheckEventArgs e ) : void

The spawn list_ check.

ToolStripMenuItemRotate_Click ( object sender, EventArgs e ) : void

The tool strip menu item rotate_ click.

VectorToRgba ( Vector3 v, float height ) : int

The vector to rgba.

button1_Click ( object sender, EventArgs e ) : void

The button 1_ click.

button2_Click ( object sender, EventArgs e ) : void

The button 2_ click.

button3_Click ( object sender, EventArgs e ) : void

The button 3_ click.

button4_Click ( object sender, EventArgs e ) : void

The button 4_ click.

button5_Click ( object sender, EventArgs e ) : void

The button 5_ click.

cbBSPTextures_CheckedChanged ( object sender, EventArgs e ) : void
checkBox1_CheckedChanged ( object sender, EventArgs e ) : void

The check box 1_ checked changed.

checkBox2_CheckedChanged ( object sender, EventArgs e ) : void

The check box 2_ checked changed.

checkBox3_CheckedChanged ( object sender, EventArgs e ) : void

The check box 3_ checked changed.

checkedListBox2_ItemCheck ( object sender, ItemCheckEventArgs e ) : void

BSPSelection

combo_SelectedIndexChangedCollection ( object sender, EventArgs e ) : void

The combo_ selected index changed collection.

combo_SelectedIndexChangedCollectionModel ( object sender, EventArgs e ) : void

The combo_ selected index changed collection model.

combo_SelectedIndexChangedObjective ( object sender, EventArgs e ) : void

The combo_ selected index changed objective.

combo_SelectedIndexChangedObstacleModel ( object sender, EventArgs e ) : void

The combo_ selected index changed obstacle model.

combo_SelectedIndexChangedSceneryModel ( object sender, EventArgs e ) : void

The combo_ selected index changed scenery model.

combo_SelectedIndexChangedTeam ( object sender, EventArgs e ) : void

The combo_ selected index changed team.

dataGridRow_LostFocus ( object sender, DataGridViewCellEventArgs e ) : void

The data grid row_ lost focus.

dataGridRow_Select ( object sender, DataGridViewCellEventArgs e ) : void

The data grid row_ select.

dataGrid_CellClick ( object sender, DataGridViewCellEventArgs e ) : void

The data grid_ cell click.

dataGrid_resize ( object sender, EventArgs e ) : void

The data grid_resize.

doInfo ( string name ) : void

The do info.

dockControl6_Enter ( object sender, EventArgs e ) : void

The dock control 6_ enter.

fcordbutton_Click ( object sender, EventArgs e ) : void

The fcordbutton_ click.

findspawn_Click ( object sender, EventArgs e ) : void

The findspawn_ click.

identContext_Opening ( object sender, CancelEventArgs e ) : void

The ident context_ opening.

leftSandDock_MouseLeave ( object sender, EventArgs e ) : void

The left sand dock_ mouse leave.

listForm_resize ( object sender, EventArgs e ) : void

The list form_resize.

loadBoundingBoxSpawn ( SpawnInfo spawn ) : Mesh
loadCameraSpawn ( SpawnInfo spawn ) : Mesh
loadSoundSpawn ( SpawnInfo spawn ) : Mesh
loadSpawnZone ( SpawnInfo spawn ) : Mesh
makeDigitsOnly ( ToolStripTextBox tb ) : float

The make digits only.

makeDigitsOnly ( ToolStripTextBox &tb ) : void

The make digits only.

mi4_Click ( object sender, EventArgs e ) : void

The mi 4_ click.

radioButton1_CheckedChanged ( object sender, EventArgs e ) : void

The radio button 1_ checked changed.

radioButton2_CheckedChanged ( object sender, EventArgs e ) : void

The radio button 2_ checked changed.

removeRow ( DataGridView &dgView, int rowNumber ) : void

The remove row.

selectSpawn ( int tagNumber ) : void

The select spawn.

selectToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The select tool strip menu item_ click.

selectToolStripMenuItem_TreeClick ( object sender, EventArgs e ) : void

The select tool strip menu item_ tree click.

selectToolStripMenuItem_ViewerClick ( object sender, EventArgs e ) : void

The select tool strip menu item_ viewer click.

setSpawnBox ( string checkeditemsname, CheckState state ) : void

The set spawn box.

speedBar_KeyDown ( object sender, KeyEventArgs e ) : void

The speed bar_ key down.

speedBar_Scroll ( object sender, EventArgs e ) : void

The speed bar_ scroll.

speedBar_ValueChanged ( object sender, EventArgs e ) : void

The speed bar_ value changed.

tb_TextChanged ( object sender, EventArgs e ) : void

The tb_ text changed.

textSound_Click ( object sender, EventArgs e ) : void

The text sound_ click.

textSound_GotFocus ( object sender, EventArgs e ) : void

The text sound_ got focus.

textSound_LostFocus ( object sender, EventArgs e ) : void

The text sound_ lost focus.

textSound_LostMouseFocus ( object sender, EventArgs e ) : void

The text sound_ lost mouse focus.

textSound_TextChanged ( object sender, EventArgs e ) : void

The text sound_ text changed.

toolStripButtonReset_Click ( object sender, EventArgs e ) : void

The tool strip button reset_ click.

trackBar1_Scroll ( object sender, EventArgs e ) : void

The track bar 1_ scroll.

trackBar2_Scroll ( object sender, EventArgs e ) : void

The track bar 2_ scroll.

trackBar3_Scroll ( object sender, EventArgs e ) : void

The track bar 3_ scroll.

treeView1_Click ( object sender, EventArgs e ) : void

The tree view 1_ click.

treeView1_DoubleClick ( object sender, EventArgs e ) : void

The tree view 1_ double click.

tsButton_Click ( object sender, EventArgs e ) : void

The ts button_ click.

tsTextBox_Change ( object sender, EventArgs e ) : void

The ts text box_ change.

tsTextBox_GotFocus ( object sender, EventArgs e ) : void

The ts text box_ got focus.

tsTextBox_LostFocus ( object sender, EventArgs e ) : void

The ts text box_ lost focus.

updateStatusPosition ( ) : void

The update status position.

Method Details

BSPViewer() public method

Initializes a new instance of the BSPViewer class.
public BSPViewer ( BSPModel tempbsp, Map map ) : System
tempbsp BSPModel The tempbsp.
map Map The map.
return System

Dispose() public method

public Dispose ( ) : void
return void

H2BSPWriteRawDataMetaChunk() public method

The h 2 bsp write raw data meta chunk.
public H2BSPWriteRawDataMetaChunk ( int chunknumber, BSPModel &bsp, int BSPNum ) : void
chunknumber int The chunknumber.
bsp BSPModel The bsp.
BSPNum int The bsp num.
return void

InitializeGraphics() public method

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

LoadSpawns() public method

The load spawns.
public LoadSpawns ( ) : void
return void

Main() public method

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

MakeMatrixForSpawn() public method

The make matrix for spawn.
public MakeMatrixForSpawn ( int x ) : System.Matrix
x int The x.
return System.Matrix

MakeMatrixes() public method

The make matrixes.
public MakeMatrixes ( ) : void
return void

MoveSpawnsWithKeyboard() public method

The move spawns with keyboard.
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

OnResize() protected method

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

RenderLightmap() public method

The render lightmap.
public RenderLightmap ( int LightmapIndex ) : Image
LightmapIndex int The lightmap index.
return Image

WndProc() protected method

The wnd proc.
protected WndProc ( Message &m ) : void
m Message The m.
return void

checkForIntersection() public method

The check for intersection.
public checkForIntersection ( MouseEventArgs e ) : int[]
e MouseEventArgs The e.
return int[]

setCameraPosition() public method

The set camera position.
public setCameraPosition ( float X, float Y, float Z, bool exactLocation ) : void
X float The x.
Y float The y.
Z float The z.
exactLocation bool The exact location.
return void

speedBar_Update() public method

The speed bar_ update.
public speedBar_Update ( ) : void
return void

Property Details

cam public_oe property

The cam.
public Camera2 cam
return Camera2

speedBar public_oe property

public TrackBar speedBar
return TrackBar

visibleSpawnsBitMask public_oe property

The visible spawns bit mask.
public int visibleSpawnsBitMask
return int