C# 클래스 CSharpGL.PickableRenderer

支持"拾取"的渲染器
상속: Renderer, IColorCodedPicking
파일 보기 프로젝트 열기: bitzhuwei/CSharpGL 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
GetPickedGeometry ( RenderEventArgs arg, uint stageVertexId, int x, int y ) : PickedGeometry

GetVertexCount ( ) : uint

MovePositions ( System.Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport ) : void

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

MovePositions ( System.Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport, IEnumerable positionIndexes ) : void

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

PickableRenderer ( IBufferable model, ShaderCode shaderCodes, AttributeMap attributeMap, string positionNameInIBufferable ) : System.ComponentModel

支持"拾取"的渲染器

Render4Picking ( RenderEventArgs arg ) : void

보호된 메소드들

메소드 설명
DoInitialize ( ) : void

DoRender ( RenderEventArgs arg ) : void

메소드 상세

DoInitialize() 보호된 메소드

protected DoInitialize ( ) : void
리턴 void

DoRender() 보호된 메소드

protected DoRender ( RenderEventArgs arg ) : void
arg RenderEventArgs
리턴 void

GetPickedGeometry() 공개 메소드

public GetPickedGeometry ( RenderEventArgs arg, uint stageVertexId, int x, int y ) : PickedGeometry
arg RenderEventArgs
stageVertexId uint
x int mouse position(Left Down is (0, 0)).
y int mouse position(Left Down is (0, 0)).
리턴 PickedGeometry

GetVertexCount() 공개 메소드

public GetVertexCount ( ) : uint
리턴 uint

MovePositions() 공개 메소드

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

public MovePositions ( System.Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport ) : void
differenceOnScreen System.Point
viewMatrix CSharpGL.mat4
projectionMatrix CSharpGL.mat4
viewport vec4
리턴 void

MovePositions() 공개 메소드

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

public MovePositions ( System.Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport, IEnumerable positionIndexes ) : void
differenceOnScreen System.Point
viewMatrix CSharpGL.mat4
projectionMatrix CSharpGL.mat4
viewport vec4
positionIndexes IEnumerable
리턴 void

PickableRenderer() 공개 메소드

支持"拾取"的渲染器
public PickableRenderer ( IBufferable model, ShaderCode shaderCodes, AttributeMap attributeMap, string positionNameInIBufferable ) : System.ComponentModel
model IBufferable 一种渲染方式
shaderCodes ShaderCode 各种类型的shader代码
attributeMap AttributeMap 关联中的属性
positionNameInIBufferable string 描述顶点位置信息的buffer的名字
리턴 System.ComponentModel

Render4Picking() 공개 메소드

public Render4Picking ( RenderEventArgs arg ) : void
arg RenderEventArgs
리턴 void