Cvisbsp_mfcDoc Class Reference

Implements the Document-Class of the MFC-Application. More...

#include <visbsp_mfcDoc.h>

List of all members.

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_nodepTfPfeilColorList
 lists for the color-points of the transferfunction of the streamlines, arrows and color-mapping of the background
list_nodepTfStreamColorList
list_nodepTfFarbCodColorList
list_nodepTfPfeilOpacityList
 lists for the opacity-points of the transferfunction of the streamlines, arrows and color-mapping of the background
list_nodepTfStreamOpacityList
list_nodepTfFarbCodOpacityList
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.


Detailed Description

Implements the Document-Class of the MFC-Application.


Constructor & Destructor Documentation

Cvisbsp_mfcDoc::Cvisbsp_mfcDoc (  )  [protected]

Cvisbsp_mfcDoc::~Cvisbsp_mfcDoc (  )  [virtual]


Member Function Documentation

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]

data_t Cvisbsp_mfcDoc::interpolate ( data_t  startPt,
data_t  endPt,
float  coef 
)

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

Vector Cvisbsp_mfcDoc::getSeedPointCandidate ( list< Vector line  ) 

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


Member Data Documentation

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.

data_t** Cvisbsp_mfcDoc::fast_data

Contains the data, resampled in pixel coordinates.

HGLRC Cvisbsp_mfcDoc::m_hRC

HDC Cvisbsp_mfcDoc::m_myhDC

int Cvisbsp_mfcDoc::nZoom

saves the zoom-grad

int Cvisbsp_mfcDoc::m_nViewMode

saves which of the control-views (arrows, streamlines, color-mapping) is ought to be shown in the rigth window

int Cvisbsp_mfcDoc::SX

X Dimension of the data.

int Cvisbsp_mfcDoc::SY

Y Dimension of the data.

int Cvisbsp_mfcDoc::SX_d

int Cvisbsp_mfcDoc::SY_d

int Cvisbsp_mfcDoc::SZ

Z Dimension of the data.

int Cvisbsp_mfcDoc::NF

extra data count

int Cvisbsp_mfcDoc::NT

Time steps.

float Cvisbsp_mfcDoc::DT

Time between two timesteps.

int Cvisbsp_mfcDoc::nPfGroesse

saves the size of the arrows

int Cvisbsp_mfcDoc::nPfDichte

saves the distance between the arrows

int Cvisbsp_mfcDoc::nPfType

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]

int Cvisbsp_mfcDoc::nPfFarbCod

saves the type of color-mapping of the arrows

int Cvisbsp_mfcDoc::nStreamIntegrMeth

saves the type of the integration-method

int Cvisbsp_mfcDoc::bStreamMSeeding

int Cvisbsp_mfcDoc::nStreamSeedType

saves the type of the seeding-method (manually or automatic

GLuint Cvisbsp_mfcDoc::m_nColorMapTexture

texture which saves the color-mapped background

int Cvisbsp_mfcDoc::nColorMapping

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

float Cvisbsp_mfcDoc::n_fStreamStepSize

saves the stepsize - used for automatic seeding

int Cvisbsp_mfcDoc::m_nStreamMaxTraces

max traces for streamlines to predend endless loops

BOOL Cvisbsp_mfcDoc::m_bStreamVerglMethoden

saves if the calculated streamlines (with euler and runge-kutta-integration) is ought to be rendered

float Cvisbsp_mfcDoc::m_fStreamWidth

saves the width of the streamlines

BOOL Cvisbsp_mfcDoc::m_bTapering

saves if tapering is ought to be applied

BOOL Cvisbsp_mfcDoc::m_StreamTexturing

saves if texturing is ought to be applied on the streamlines

int Cvisbsp_mfcDoc::m_StreamLengthOfPeriod

saves the lenght of period, which is used for texturing

BOOL Cvisbsp_mfcDoc::m_StreamTexturingSmooth

saves if smooth texturing is ought to be applied on the streamlines

BOOL Cvisbsp_mfcDoc::m_GlyphMapping

saves if glyphs are ought to be mapped on the streamlines

int Cvisbsp_mfcDoc::m_GlyphSize

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

BOOL Cvisbsp_mfcDoc::m_bStreamDarst

saves if you must render the streamlines

BOOL Cvisbsp_mfcDoc::m_bPfeilDarst

saves if you must plot the arrows

BOOL Cvisbsp_mfcDoc::m_bFarbcodDarst

saves if you must do color-mapping of the background

list_node* Cvisbsp_mfcDoc::pTfPfeilColorList

lists for the color-points of the transferfunction of the streamlines, arrows and color-mapping of the background

list_node * Cvisbsp_mfcDoc::pTfStreamColorList

list_node * Cvisbsp_mfcDoc::pTfFarbCodColorList

list_node* Cvisbsp_mfcDoc::pTfPfeilOpacityList

lists for the opacity-points of the transferfunction of the streamlines, arrows and color-mapping of the background

list_node * Cvisbsp_mfcDoc::pTfStreamOpacityList

list_node * Cvisbsp_mfcDoc::pTfFarbCodOpacityList

int Cvisbsp_mfcDoc::nStreamFarbCod

saves the color-mapping-type for streamlines

float Cvisbsp_mfcDoc::fMinXValue

float Cvisbsp_mfcDoc::fMaxXValue

float Cvisbsp_mfcDoc::fMinYValue

float Cvisbsp_mfcDoc::fMaxYValue


The documentation for this class was generated from the following files:
Generated on Wed Jan 17 11:58:35 2007 for VisLuBsp1 by  doxygen 1.5.1-p1