Public Member Functions | |
Renderer (Gui Gui) | |
Constructur für das Renderer Panel. | |
void | Reset () |
void | CleanUp () |
void | DeleteStreamlines (bool bClear) |
void | ResetView (bool bSmooth) |
void | Render () |
Rendert alle im Gui ausgewählten Elemente. | |
Public Attributes | |
Effect | _effect = null |
Properties | |
Device | Device [get, set] |
float | Zoom [get, set] |
float | Ratio2D [get, set] |
Vector3[,] | Streamvectors [get, set] |
Gui.MainData | MainData [get, set] |
Texture | DataTexture16 [get, set] |
Texture | DataTexture32F [get, set] |
Texture | StreamvectorTexture [get, set] |
bool | RenderBackground [get, set] |
int | BackgroundType [get, set] |
bool | RenderArrows [get, set] |
float | ArrowDist [get, set] |
float | ArrowSize [get, set] |
Color | ColArrowFix [get, set] |
int | ArrowColor [get, set] |
int | iArrowSize [get, set] |
bool | RenderStreamlines [get, set] |
Color | ColStreamlineFix [get, set] |
int | StreamlineColor [get, set] |
int | IntegrationMethod [get, set] |
float | DSep [get, set] |
float | DTest [get, set] |
float | DT [get, set] |
bool | Tapering [get, set] |
float | TapWidth [get, set] |
int | TextureType [get, set] |
float | PeriodLength [get, set] |
bool | UseGlyph [get, set] |
int | GlphySize [get, set] |
Private Member Functions | |
void | InitializeGraphics () |
Initialisiert und setzt alle notwendigen DirectX-Flags. | |
void | OnCreateDevice (object sender, EventArgs e) |
void | OnResetDevice (object sender, EventArgs e) |
void | OnCreateVbBg (object sender, EventArgs e) |
void | OnCreateVbArrow (object sender, EventArgs e) |
void | OnCreateStreamline (object sender, EventArgs e) |
void | InitializeBw () |
void | bwDoWork (object sender, DoWorkEventArgs e) |
void | bwRunCompleted (object sender, RunWorkerCompletedEventArgs e) |
void | CreateEvenlyspacedStreamlines (BackgroundWorker worker, DoWorkEventArgs e) |
bool | FindSeedpoint (Streamline streamline, ref int currentPositionWithinStreamline, ref Vector2 newSeedPoint, BackgroundWorker worker, DoWorkEventArgs e) |
void | CreateStreamline (Vector2 pos, BackgroundWorker worker, DoWorkEventArgs e) |
Vector2 | GetNormalDistance (Vector2 p1, Vector2 p2, float angle, float distance) |
void | FollowStreamline (Vector3 startPoint, ref List< Vector2 > samplepoints, bool direction, BackgroundWorker worker, DoWorkEventArgs e) |
Vector3 | Integrate (Vector3 currPoint, bool direction, float dT, int integrationMethod) |
void | TaperStreamline (List< Vector2 > streamlineSamplepoints, Vector2 newSamplePoint, bool direction, float thicknessCoef, float textureCoef, List< CustomVertex.PositionColored > streamlineVerts) |
float | GetTextureCoefForPointCount (float pos, float textureWidth, bool direction) |
int | ValidateOutOfBounds (int value, int min, int max) |
float | TestDistance (Vector2 p, float distance, Dictionary< Point, List< Vector2 >> currGrid) |
float | TestDistance (Vector2 p, float distance) |
float | Distance (Vector2 p1, Vector2 p2) |
void | AddToGridCurr (List< Vector2 > l, ref Dictionary< Point, List< Vector2 >> currGrid) |
void | AddToGrid (Vector2 v) |
void | SetViewProjection () |
void | RenderGlyph (List< Vector2 > points, List< CustomVertex.PositionColored > verts, bool direction, Vector2 newPoint) |
void | RenderStreamline (Streamline streamline) |
void | DisposeStreamline (Streamline streamline) |
void | StopStreamline () |
void | RestartStreamline () |
void | OnMouseDown (object sender, MouseEventArgs e) |
void | OnMouseUp (object sender, MouseEventArgs e) |
void | OnMouseMove (object sender, MouseEventArgs e) |
void | OnMouseEnter (object sender, EventArgs e) |
void | OnMouseWheel (object sender, MouseEventArgs e) |
Private Attributes | |
Panel | _d3dPanel = null |
Device | _device = null |
PresentParameters | _presentParams = new PresentParameters() |
VertexBuffer | _vbBg = null |
VertexBuffer | _vbArrow = null |
Texture | _dataTex16 = null |
Texture | _dataTex32F = null |
Texture | _streamVecTexture = null |
Vector3 | _camPos = new Vector3() |
Vector3 | _camViewPos = new Vector3() |
Matrix | _matView |
Matrix | _matProjection |
float | _fAlpha |
float | _fTargetAlpha |
float | _fBeta |
float | _targetBeta |
float | _fZoom |
float | _fTargetZoom |
float | _fRatio2D |
bool | _bWireframe = false |
bool | _bRenderBackground |
bool | _bRenderArrows |
bool | _bRenderStreamlines |
int | _iBackgroundType |
float | _fArrowDist |
float | _fArrowSize |
int | _iArrowColor |
int | _iArrowSize |
Color | _colArrowFix |
int | _iIntegrationType |
float | _fDsep = 0.05f |
float | _fDtest = 0.5f |
float | dT = 1f |
float | _fTapWidth = 200 |
List< Streamline > | _streamlines = new List<Streamline>() |
List < CustomVertex.PositionColored > | _streamlineVertices = new List<CustomVertex.PositionColored>() |
Dictionary< Point, List < Vector2 > > | _samplePointGrid = new Dictionary<Point, List<Vector2>>() |
int | _colStreamline |
Color | _colSteamlineFix = Color.Aquamarine |
bool | _bMouseDown = false |
float | mouseMoveX |
float | mouseMoveY |
float | mouseDownX |
float | mouseDownY |
bool | _bShuttingDown = false |
bool | _bRendering = false |
bool | _bTapering = false |
System.ComponentModel.BackgroundWorker | bwSteamlineCreator = new System.ComponentModel.BackgroundWorker() |
Gui.MainData | _md |
Vector3[,] | _streamvectors |
float | _fPeriodLength = 100f |
int | _iTexType = 0 |
bool | _bUseGlyph = false |
int | _iGlyphSize = 10 |
Classes | |
struct | Streamline |
Struktur zum welche eine Streamline repräsentiert SamplePoints+VertexBuffer. More... |
Flowvis.Renderer.Renderer | ( | Gui | Gui | ) |
void Flowvis.Renderer.Reset | ( | ) |
void Flowvis.Renderer.CleanUp | ( | ) |
void Flowvis.Renderer.DeleteStreamlines | ( | bool | bClear | ) |
void Flowvis.Renderer.ResetView | ( | bool | bSmooth | ) |
void Flowvis.Renderer.Render | ( | ) |
Rendert alle im Gui ausgewählten Elemente.
void Flowvis.Renderer.InitializeGraphics | ( | ) | [private] |
Initialisiert und setzt alle notwendigen DirectX-Flags.
void Flowvis.Renderer.OnCreateDevice | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnResetDevice | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnCreateVbBg | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnCreateVbArrow | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnCreateStreamline | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
void Flowvis.Renderer.InitializeBw | ( | ) | [private] |
void Flowvis.Renderer.bwDoWork | ( | object | sender, | |
DoWorkEventArgs | e | |||
) | [private] |
void Flowvis.Renderer.bwRunCompleted | ( | object | sender, | |
RunWorkerCompletedEventArgs | e | |||
) | [private] |
void Flowvis.Renderer.CreateEvenlyspacedStreamlines | ( | BackgroundWorker | worker, | |
DoWorkEventArgs | e | |||
) | [private] |
bool Flowvis.Renderer.FindSeedpoint | ( | Streamline | streamline, | |
ref int | currentPositionWithinStreamline, | |||
ref Vector2 | newSeedPoint, | |||
BackgroundWorker | worker, | |||
DoWorkEventArgs | e | |||
) | [private] |
void Flowvis.Renderer.CreateStreamline | ( | Vector2 | pos, | |
BackgroundWorker | worker, | |||
DoWorkEventArgs | e | |||
) | [private] |
Vector2 Flowvis.Renderer.GetNormalDistance | ( | Vector2 | p1, | |
Vector2 | p2, | |||
float | angle, | |||
float | distance | |||
) | [private] |
void Flowvis.Renderer.FollowStreamline | ( | Vector3 | startPoint, | |
ref List< Vector2 > | samplepoints, | |||
bool | direction, | |||
BackgroundWorker | worker, | |||
DoWorkEventArgs | e | |||
) | [private] |
Vector3 Flowvis.Renderer.Integrate | ( | Vector3 | currPoint, | |
bool | direction, | |||
float | dT, | |||
int | integrationMethod | |||
) | [private] |
void Flowvis.Renderer.TaperStreamline | ( | List< Vector2 > | streamlineSamplepoints, | |
Vector2 | newSamplePoint, | |||
bool | direction, | |||
float | thicknessCoef, | |||
float | textureCoef, | |||
List< CustomVertex.PositionColored > | streamlineVerts | |||
) | [private] |
float Flowvis.Renderer.GetTextureCoefForPointCount | ( | float | pos, | |
float | textureWidth, | |||
bool | direction | |||
) | [private] |
int Flowvis.Renderer.ValidateOutOfBounds | ( | int | value, | |
int | min, | |||
int | max | |||
) | [private] |
float Flowvis.Renderer.TestDistance | ( | Vector2 | p, | |
float | distance, | |||
Dictionary< Point, List< Vector2 >> | currGrid | |||
) | [private] |
float Flowvis.Renderer.TestDistance | ( | Vector2 | p, | |
float | distance | |||
) | [private] |
float Flowvis.Renderer.Distance | ( | Vector2 | p1, | |
Vector2 | p2 | |||
) | [private] |
void Flowvis.Renderer.AddToGridCurr | ( | List< Vector2 > | l, | |
ref Dictionary< Point, List< Vector2 >> | currGrid | |||
) | [private] |
void Flowvis.Renderer.AddToGrid | ( | Vector2 | v | ) | [private] |
void Flowvis.Renderer.SetViewProjection | ( | ) | [private] |
void Flowvis.Renderer.RenderGlyph | ( | List< Vector2 > | points, | |
List< CustomVertex.PositionColored > | verts, | |||
bool | direction, | |||
Vector2 | newPoint | |||
) | [private] |
void Flowvis.Renderer.RenderStreamline | ( | Streamline | streamline | ) | [private] |
void Flowvis.Renderer.DisposeStreamline | ( | Streamline | streamline | ) | [private] |
void Flowvis.Renderer.StopStreamline | ( | ) | [private] |
void Flowvis.Renderer.RestartStreamline | ( | ) | [private] |
void Flowvis.Renderer.OnMouseDown | ( | object | sender, | |
MouseEventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnMouseUp | ( | object | sender, | |
MouseEventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnMouseMove | ( | object | sender, | |
MouseEventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnMouseEnter | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
void Flowvis.Renderer.OnMouseWheel | ( | object | sender, | |
MouseEventArgs | e | |||
) | [private] |
Panel Flowvis.Renderer._d3dPanel = null [private] |
Device Flowvis.Renderer._device = null [private] |
PresentParameters Flowvis.Renderer._presentParams = new PresentParameters() [private] |
VertexBuffer Flowvis.Renderer._vbBg = null [private] |
VertexBuffer Flowvis.Renderer._vbArrow = null [private] |
Effect Flowvis.Renderer._effect = null |
Texture Flowvis.Renderer._dataTex16 = null [private] |
Texture Flowvis.Renderer._dataTex32F = null [private] |
Texture Flowvis.Renderer._streamVecTexture = null [private] |
Vector3 Flowvis.Renderer._camPos = new Vector3() [private] |
Vector3 Flowvis.Renderer._camViewPos = new Vector3() [private] |
Matrix Flowvis.Renderer._matView [private] |
Matrix Flowvis.Renderer._matProjection [private] |
float Flowvis.Renderer._fAlpha [private] |
float Flowvis.Renderer._fTargetAlpha [private] |
float Flowvis.Renderer._fBeta [private] |
float Flowvis.Renderer._targetBeta [private] |
float Flowvis.Renderer._fZoom [private] |
float Flowvis.Renderer._fTargetZoom [private] |
float Flowvis.Renderer._fRatio2D [private] |
bool Flowvis.Renderer._bWireframe = false [private] |
bool Flowvis.Renderer._bRenderBackground [private] |
bool Flowvis.Renderer._bRenderArrows [private] |
bool Flowvis.Renderer._bRenderStreamlines [private] |
int Flowvis.Renderer._iBackgroundType [private] |
float Flowvis.Renderer._fArrowDist [private] |
float Flowvis.Renderer._fArrowSize [private] |
int Flowvis.Renderer._iArrowColor [private] |
int Flowvis.Renderer._iArrowSize [private] |
Color Flowvis.Renderer._colArrowFix [private] |
int Flowvis.Renderer._iIntegrationType [private] |
float Flowvis.Renderer._fDsep = 0.05f [private] |
float Flowvis.Renderer._fDtest = 0.5f [private] |
float Flowvis.Renderer.dT = 1f [private] |
float Flowvis.Renderer._fTapWidth = 200 [private] |
List<Streamline> Flowvis.Renderer._streamlines = new List<Streamline>() [private] |
List<CustomVertex.PositionColored> Flowvis.Renderer._streamlineVertices = new List<CustomVertex.PositionColored>() [private] |
Dictionary<Point, List<Vector2> > Flowvis.Renderer._samplePointGrid = new Dictionary<Point, List<Vector2>>() [private] |
int Flowvis.Renderer._colStreamline [private] |
Color Flowvis.Renderer._colSteamlineFix = Color.Aquamarine [private] |
bool Flowvis.Renderer._bMouseDown = false [private] |
float Flowvis.Renderer.mouseMoveX [private] |
float Flowvis.Renderer.mouseMoveY [private] |
float Flowvis.Renderer.mouseDownX [private] |
float Flowvis.Renderer.mouseDownY [private] |
bool Flowvis.Renderer._bShuttingDown = false [private] |
bool Flowvis.Renderer._bRendering = false [private] |
bool Flowvis.Renderer._bTapering = false [private] |
System.ComponentModel.BackgroundWorker Flowvis.Renderer.bwSteamlineCreator = new System.ComponentModel.BackgroundWorker() [private] |
Gui.MainData Flowvis.Renderer._md [private] |
Vector3 [,] Flowvis.Renderer._streamvectors [private] |
float Flowvis.Renderer._fPeriodLength = 100f [private] |
int Flowvis.Renderer._iTexType = 0 [private] |
bool Flowvis.Renderer._bUseGlyph = false [private] |
int Flowvis.Renderer._iGlyphSize = 10 [private] |
Device Flowvis.Renderer.Device [get, set] |
float Flowvis.Renderer.Zoom [get, set] |
float Flowvis.Renderer.Ratio2D [get, set] |
Vector3 [,] Flowvis.Renderer.Streamvectors [get, set] |
Gui.MainData Flowvis.Renderer.MainData [get, set] |
Texture Flowvis.Renderer.DataTexture16 [get, set] |
Texture Flowvis.Renderer.DataTexture32F [get, set] |
Texture Flowvis.Renderer.StreamvectorTexture [get, set] |
bool Flowvis.Renderer.RenderBackground [get, set] |
int Flowvis.Renderer.BackgroundType [get, set] |
bool Flowvis.Renderer.RenderArrows [get, set] |
float Flowvis.Renderer.ArrowDist [get, set] |
float Flowvis.Renderer.ArrowSize [get, set] |
Color Flowvis.Renderer.ColArrowFix [get, set] |
int Flowvis.Renderer.ArrowColor [get, set] |
int Flowvis.Renderer.iArrowSize [get, set] |
bool Flowvis.Renderer.RenderStreamlines [get, set] |
Color Flowvis.Renderer.ColStreamlineFix [get, set] |
int Flowvis.Renderer.StreamlineColor [get, set] |
int Flowvis.Renderer.IntegrationMethod [get, set] |
float Flowvis.Renderer.DSep [get, set] |
float Flowvis.Renderer.DTest [get, set] |
float Flowvis.Renderer.DT [get, set] |
bool Flowvis.Renderer.Tapering [get, set] |
float Flowvis.Renderer.TapWidth [get, set] |
int Flowvis.Renderer.TextureType [get, set] |
float Flowvis.Renderer.PeriodLength [get, set] |
bool Flowvis.Renderer.UseGlyph [get, set] |
int Flowvis.Renderer.GlphySize [get, set] |