C# Class GridViewer.GridViewModel

base model for gridview.
Inheritance: IBufferable, IUpdateColorPalette
Show file Open project: bitzhuwei/CSharpGL

Protected Properties

Property Type Description
defaultBlockPropertyIndex int

Public Methods

Method Description
GetIndexBuffer ( ) : IndexBuffer
GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
GridViewModel ( CatesianGridderSource dataSource, List gridProps, float minColorCode, float maxColorCode, int defaultBlockPropertyIndex ) : System.Collections.Generic

base model for gridview.

UpdateColor ( GridBlockProperty property ) : void
UsesZeroIndexBuffer ( ) : bool

Method Details

GetIndexBuffer() public abstract method

public abstract GetIndexBuffer ( ) : IndexBuffer
return CSharpGL.IndexBuffer

GetVertexAttributeBuffer() public abstract method

public abstract GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
bufferName string
varNameInShader string
return CSharpGL.VertexBuffer

GridViewModel() public method

base model for gridview.
public GridViewModel ( CatesianGridderSource dataSource, List gridProps, float minColorCode, float maxColorCode, int defaultBlockPropertyIndex ) : System.Collections.Generic
dataSource SimLab.GridSource.CatesianGridderSource
gridProps List
minColorCode float
maxColorCode float
defaultBlockPropertyIndex int
return System.Collections.Generic

UpdateColor() public abstract method

public abstract UpdateColor ( GridBlockProperty property ) : void
property GridBlockProperty
return void

UsesZeroIndexBuffer() public abstract method

public abstract UsesZeroIndexBuffer ( ) : bool
return bool

Property Details

defaultBlockPropertyIndex protected property

protected int defaultBlockPropertyIndex
return int