#include <visbsp_mfcDoc.h>
Public Member Functions | |
| virtual BOOL | OnNewDocument () |
| virtual void | Serialize (CArchive &ar) |
| virtual | ~Cvisbsp_mfcDoc () |
| afx_msg void | OnViewStream () |
| Event-Method to show the control-elements for streamlines. | |
| afx_msg void | OnViewPfeile () |
| Event-Methode to show the control-elements for arrows. | |
| afx_msg void | OnUpdateViewPfeile (CCmdUI *pCmdUI) |
| Event-Methode to show the control-elements for arrows. | |
| afx_msg void | OnUpdateViewStream (CCmdUI *pCmdUI) |
| Event-Method to show the control-elements for streamlines. | |
| data_t | getPoint (float x, float y) |
| data_t | getPointInPx (float x, float y) |
| data_t | interpolate (data_t startPt, data_t endPt, float coef) |
| void | addSeededStreamlines (float px, float py) |
| Creates a Euler and a RK Streamline on the Points px, py. | |
| void | GenerateTexture () |
| Generates the color-mapped-background-texture. | |
| void | setTexture (GLubyte *image, int nTexSizeX, int x, int y, short r, short g, short b, short a) |
| Sets color and opacity values to a specific point on the texture. | |
| void | createEvenelySpacedStreamLines (void) |
| This Method crates evenly spaced streamlines created with Euler or RK. | |
| void | createEvenlyEulerLine (float px, float py) |
| Creates a euler stream line on point px, py for evenly spaced streamlines. | |
| void | createEvenlyRKLine (float px, float py) |
| Creates a RK stream line on point px, py for evenly spaced streamlines. | |
| float | isPointOverDtest (float px, float py) |
| tests if the Points px, py is still over d_test or under t_sep or beween | |
| Vector | getSeedPointCandidate (list< Vector > line) |
| finds a possible seed point for evenly spaced streamlines | |
| bool | isPointInVolume (Vector pt) |
| tests if the point pt is still in the Volume | |
| afx_msg void | OnViewFarbcodierung () |
| Event-Method to show the control-elements for color-mapping of the background. | |
| afx_msg void | OnUpdateViewFarbcodierung (CCmdUI *pCmdUI) |
| Event-Method to show the control-elements for color-mapping of the background. | |
| list_node ** | getTfColorList (void) |
| returns the TransferFunction color list depending on display | |
| list_node ** | getTfOpacityList (void) |
| returns the TransferFunction opacity list depending on display | |
| int | getTfColor (list_node *tfList, float val) |
| lookup in the transferfunction to return the color for val (color) | |
| int | getTfOpacity (list_node *tfList, float pos) |
| lookup in the transferfunction to return the color for val (opacity) | |
| void | deleteNodeList (list_node *pAnchor) |
| frees all memory of a List | |
| void | initTfs (list_node **pAnchor, int val1, int val2) |
| to init the TF with usable values | |
| afx_msg void | OnViewTransferfunk () |
| void | generateFastArray (void) |
| fills the fast_data for a quicker lookup | |
| data_t | lookupPoint (float px, float py) |
| used by generateFastArray to find the point px py in the data | |
Public Attributes | |
| data_t ** | fast_data |
| Contains the data, resampled in pixel coordinates. | |
| HGLRC | m_hRC |
| HDC | m_myhDC |
| int | nZoom |
| saves the zoom-grad | |
| int | m_nViewMode |
| saves which of the control-views (arrows, streamlines, color-mapping) is ought to be shown in the rigth window | |
| int | SX |
| X Dimension of the data. | |
| int | SY |
| Y Dimension of the data. | |
| int | SX_d |
| int | SY_d |
| int | SZ |
| Z Dimension of the data. | |
| int | NF |
| extra data count | |
| int | NT |
| Time steps. | |
| float | DT |
| Time between two timesteps. | |
| int | nPfGroesse |
| saves the size of the arrows | |
| int | nPfDichte |
| saves the distance between the arrows | |
| int | nPfType |
| saves the type of the arrays (standardised or scaled by velocity) | |
| float | nMinLen |
| float | nMaxLen |
| float | nMaxA [10] |
| float | nMinA [10] |
| int | nPfFarbCod |
| saves the type of color-mapping of the arrows | |
| int | nStreamIntegrMeth |
| saves the type of the integration-method | |
| int | bStreamMSeeding |
| int | nStreamSeedType |
| saves the type of the seeding-method (manually or automatic | |
| GLuint | m_nColorMapTexture |
| texture which saves the color-mapped background | |
| int | nColorMapping |
| saves the type of color-mapping of the background | |
| list< list< Vector > > | seededPointsEuler |
| list of the streamlines and there points calculated with euler | |
| list< list< Vector > > | seededPointsRK |
| list of the streamlines and there points calculated with runge-kutta | |
| float | n_fStreamStepSize |
| saves the stepsize - used for automatic seeding | |
| int | m_nStreamMaxTraces |
| max traces for streamlines to predend endless loops | |
| BOOL | m_bStreamVerglMethoden |
| saves if the calculated streamlines (with euler and runge-kutta-integration) is ought to be rendered | |
| float | m_fStreamWidth |
| saves the width of the streamlines | |
| BOOL | m_bTapering |
| saves if tapering is ought to be applied | |
| BOOL | m_StreamTexturing |
| saves if texturing is ought to be applied on the streamlines | |
| int | m_StreamLengthOfPeriod |
| saves the lenght of period, which is used for texturing | |
| BOOL | m_StreamTexturingSmooth |
| saves if smooth texturing is ought to be applied on the streamlines | |
| BOOL | m_GlyphMapping |
| saves if glyphs are ought to be mapped on the streamlines | |
| int | m_GlyphSize |
| saves the size of the glyphs | |
| list< list< Vector > > | spacedPointsEuler |
| contains all final Streamlines generated with Euler | |
| list< list< Vector > > | activeSpacedPointsEuler |
| contains all active Streamlines while generating evenlyspaced Streamlines (Euler) | |
| list< list< Vector > > | allSpacedPointsEuler |
| contains all active and final Streamlines while generating evenlyspaced Streamlines (Euler) | |
| list< list< Vector > > | spacedPointsRK |
| contains all final Streamlines generated with RK | |
| list< list< Vector > > | activeSpacedPointsRK |
| contains all active Streamlines while generating evenlyspaced Streamlines (RK) | |
| list< list< Vector > > | allSpacedPointsRK |
| contains all active and final Streamlines while generating evenlyspaced Streamlines (RK) | |
| float | m_fDtest |
| saves d_test - used for automatic seeding | |
| float | m_fDsep |
| saves d_sep - used for automatic seeding | |
| BOOL | m_bStreamDarst |
| saves if you must render the streamlines | |
| BOOL | m_bPfeilDarst |
| saves if you must plot the arrows | |
| BOOL | m_bFarbcodDarst |
| saves if you must do color-mapping of the background | |
| list_node * | pTfPfeilColorList |
| lists for the color-points of the transferfunction of the streamlines, arrows and color-mapping of the background | |
| list_node * | pTfStreamColorList |
| list_node * | pTfFarbCodColorList |
| list_node * | pTfPfeilOpacityList |
| lists for the opacity-points of the transferfunction of the streamlines, arrows and color-mapping of the background | |
| list_node * | pTfStreamOpacityList |
| list_node * | pTfFarbCodOpacityList |
| int | nStreamFarbCod |
| saves the color-mapping-type for streamlines | |
| float | fMinXValue |
| float | fMaxXValue |
| float | fMinYValue |
| float | fMaxYValue |
Protected Member Functions | |
| Cvisbsp_mfcDoc () | |
Protected Attributes | |
| data_t ** | gri_data |
| Contains the data of the .gri-file. | |
| data_t ** | dat_data |
| Contains the data of the .dat.file. | |
| Cvisbsp_mfcDoc::Cvisbsp_mfcDoc | ( | ) | [protected] |
| Cvisbsp_mfcDoc::~Cvisbsp_mfcDoc | ( | ) | [virtual] |
| BOOL Cvisbsp_mfcDoc::OnNewDocument | ( | ) | [virtual] |
| void Cvisbsp_mfcDoc::Serialize | ( | CArchive & | ar | ) | [virtual] |
| void Cvisbsp_mfcDoc::OnViewStream | ( | ) |
Event-Method to show the control-elements for streamlines.
| void Cvisbsp_mfcDoc::OnViewPfeile | ( | ) |
Event-Methode to show the control-elements for arrows.
| void Cvisbsp_mfcDoc::OnUpdateViewPfeile | ( | CCmdUI * | pCmdUI | ) |
Event-Methode to show the control-elements for arrows.
| void Cvisbsp_mfcDoc::OnUpdateViewStream | ( | CCmdUI * | pCmdUI | ) |
Event-Method to show the control-elements for streamlines.
| data_t Cvisbsp_mfcDoc::getPoint | ( | float | x, | |
| float | y | |||
| ) | [inline] |
| data_t Cvisbsp_mfcDoc::getPointInPx | ( | float | x, | |
| float | y | |||
| ) | [inline] |
| void Cvisbsp_mfcDoc::addSeededStreamlines | ( | float | px, | |
| float | py | |||
| ) |
Creates a Euler and a RK Streamline on the Points px, py.
| void Cvisbsp_mfcDoc::GenerateTexture | ( | ) |
Generates the color-mapped-background-texture.
| void Cvisbsp_mfcDoc::setTexture | ( | GLubyte * | image, | |
| int | nTexSizeX, | |||
| int | x, | |||
| int | y, | |||
| short | r, | |||
| short | g, | |||
| short | b, | |||
| short | a | |||
| ) | [inline] |
Sets color and opacity values to a specific point on the texture.
| void Cvisbsp_mfcDoc::createEvenelySpacedStreamLines | ( | void | ) |
This Method crates evenly spaced streamlines created with Euler or RK.
| void Cvisbsp_mfcDoc::createEvenlyEulerLine | ( | float | px, | |
| float | py | |||
| ) |
Creates a euler stream line on point px, py for evenly spaced streamlines.
| void Cvisbsp_mfcDoc::createEvenlyRKLine | ( | float | px, | |
| float | py | |||
| ) |
Creates a RK stream line on point px, py for evenly spaced streamlines.
| float Cvisbsp_mfcDoc::isPointOverDtest | ( | float | px, | |
| float | py | |||
| ) |
tests if the Points px, py is still over d_test or under t_sep or beween
.1[ wenn abstand zwischen d_sep und d_test 0 .. wenn abstand < d_test
finds a possible seed point for evenly spaced streamlines
| bool Cvisbsp_mfcDoc::isPointInVolume | ( | Vector | pt | ) | [inline] |
tests if the point pt is still in the Volume
| void Cvisbsp_mfcDoc::OnViewFarbcodierung | ( | ) |
Event-Method to show the control-elements for color-mapping of the background.
| void Cvisbsp_mfcDoc::OnUpdateViewFarbcodierung | ( | CCmdUI * | pCmdUI | ) |
Event-Method to show the control-elements for color-mapping of the background.
| list_node ** Cvisbsp_mfcDoc::getTfColorList | ( | void | ) |
returns the TransferFunction color list depending on display
| list_node ** Cvisbsp_mfcDoc::getTfOpacityList | ( | void | ) |
returns the TransferFunction opacity list depending on display
| int Cvisbsp_mfcDoc::getTfColor | ( | list_node * | tfList, | |
| float | val | |||
| ) |
lookup in the transferfunction to return the color for val (color)
| int Cvisbsp_mfcDoc::getTfOpacity | ( | list_node * | tfList, | |
| float | pos | |||
| ) |
lookup in the transferfunction to return the color for val (opacity)
| void Cvisbsp_mfcDoc::deleteNodeList | ( | list_node * | pAnchor | ) |
frees all memory of a List
| void Cvisbsp_mfcDoc::initTfs | ( | list_node ** | pAnchor, | |
| int | val1, | |||
| int | val2 | |||
| ) | [inline] |
to init the TF with usable values
| void Cvisbsp_mfcDoc::OnViewTransferfunk | ( | ) |
| void Cvisbsp_mfcDoc::generateFastArray | ( | void | ) |
fills the fast_data for a quicker lookup
| data_t Cvisbsp_mfcDoc::lookupPoint | ( | float | px, | |
| float | py | |||
| ) |
used by generateFastArray to find the point px py in the data
data_t** Cvisbsp_mfcDoc::gri_data [protected] |
Contains the data of the .gri-file.
data_t** Cvisbsp_mfcDoc::dat_data [protected] |
Contains the data of the .dat.file.
Contains the data, resampled in pixel coordinates.
| HGLRC Cvisbsp_mfcDoc::m_hRC |
saves the zoom-grad
saves which of the control-views (arrows, streamlines, color-mapping) is ought to be shown in the rigth window
X Dimension of the data.
Y Dimension of the data.
Z Dimension of the data.
extra data count
Time steps.
| float Cvisbsp_mfcDoc::DT |
Time between two timesteps.
saves the size of the arrows
saves the distance between the arrows
saves the type of the arrays (standardised or scaled by velocity)
| float Cvisbsp_mfcDoc::nMinLen |
| float Cvisbsp_mfcDoc::nMaxLen |
| float Cvisbsp_mfcDoc::nMaxA[10] |
| float Cvisbsp_mfcDoc::nMinA[10] |
saves the type of color-mapping of the arrows
saves the type of the integration-method
saves the type of the seeding-method (manually or automatic
texture which saves the color-mapped background
saves the type of color-mapping of the background
| list< list<Vector> > Cvisbsp_mfcDoc::seededPointsEuler |
list of the streamlines and there points calculated with euler
| list< list<Vector> > Cvisbsp_mfcDoc::seededPointsRK |
list of the streamlines and there points calculated with runge-kutta
saves the stepsize - used for automatic seeding
max traces for streamlines to predend endless loops
saves if the calculated streamlines (with euler and runge-kutta-integration) is ought to be rendered
saves the width of the streamlines
saves if tapering is ought to be applied
saves if texturing is ought to be applied on the streamlines
saves the lenght of period, which is used for texturing
saves if smooth texturing is ought to be applied on the streamlines
saves if glyphs are ought to be mapped on the streamlines
saves the size of the glyphs
| list< list<Vector> > Cvisbsp_mfcDoc::spacedPointsEuler |
contains all final Streamlines generated with Euler
| list< list<Vector> > Cvisbsp_mfcDoc::activeSpacedPointsEuler |
contains all active Streamlines while generating evenlyspaced Streamlines (Euler)
| list< list<Vector> > Cvisbsp_mfcDoc::allSpacedPointsEuler |
contains all active and final Streamlines while generating evenlyspaced Streamlines (Euler)
| list< list<Vector> > Cvisbsp_mfcDoc::spacedPointsRK |
contains all final Streamlines generated with RK
| list< list<Vector> > Cvisbsp_mfcDoc::activeSpacedPointsRK |
contains all active Streamlines while generating evenlyspaced Streamlines (RK)
| list< list<Vector> > Cvisbsp_mfcDoc::allSpacedPointsRK |
contains all active and final Streamlines while generating evenlyspaced Streamlines (RK)
| float Cvisbsp_mfcDoc::m_fDtest |
saves d_test - used for automatic seeding
| float Cvisbsp_mfcDoc::m_fDsep |
saves d_sep - used for automatic seeding
saves if you must render the streamlines
saves if you must plot the arrows
saves if you must do color-mapping of the background
lists for the color-points of the transferfunction of the streamlines, arrows and color-mapping of the background
lists for the opacity-points of the transferfunction of the streamlines, arrows and color-mapping of the background
saves the color-mapping-type for streamlines
1.5.1-p1