C# 클래스 CSharpGL.InnerPickableRenderer

파일 보기 프로젝트 열기: bitzhuwei/CSharpGL 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
uniformmMVP4Picking CSharpGL.UniformMat4

Private Properties

프로퍼티 타입 설명
GetPrimitiveRestartState PrimitiveRestartState
Render4InnerPicking void
Render4Picking void
UpdatePolygonMode void

공개 메소드들

메소드 설명
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来修改指定索引处的顶点位置。

Render4Picking ( RenderEventArgs arg ) : void

보호된 메소드들

메소드 설명
DoInitialize ( ) : void
FillPickedGeometrysPosition ( uint indexes ) : vec3[]
FillPickedGeometrysPosition ( uint firstIndex, int indexCount ) : vec3[]
PickingStateesOff ( ) : void
PickingStateesOn ( ) : void

비공개 메소드들

메소드 설명
GetPrimitiveRestartState ( OneIndexBuffer indexBuffer ) : PrimitiveRestartState
Render4InnerPicking ( RenderEventArgs arg, IndexBuffer indexBuffer ) : void

在此Buffer中的图元进行N选1 select a primitive geometry(point, line, triangle, quad, polygon) from points/lines/triangles/quads/polygons in this renderer.

Render4Picking ( RenderEventArgs arg, IndexBuffer temporaryIndexBuffer ) : void

render with specified index buffer.

UpdatePolygonMode ( PickingGeometryType geometryType ) : void

메소드 상세

DoInitialize() 보호된 메소드

protected DoInitialize ( ) : void
리턴 void

FillPickedGeometrysPosition() 보호된 메소드

protected FillPickedGeometrysPosition ( uint indexes ) : vec3[]
indexes uint
리턴 vec3[]

FillPickedGeometrysPosition() 보호된 메소드

protected FillPickedGeometrysPosition ( uint firstIndex, int indexCount ) : vec3[]
firstIndex uint
indexCount int
리턴 vec3[]

GetPickedGeometry() 공개 추상적인 메소드

public abstract 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

PickingStateesOff() 보호된 메소드

protected PickingStateesOff ( ) : void
리턴 void

PickingStateesOn() 보호된 메소드

protected PickingStateesOn ( ) : void
리턴 void

Render4Picking() 공개 메소드

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

프로퍼티 상세

uniformmMVP4Picking 보호되어 있는 프로퍼티

uniform mat4 VMP; (in shader)
protected UniformMat4,CSharpGL uniformmMVP4Picking
리턴 CSharpGL.UniformMat4