Graph Class

Access: Default
Base Classes: CStatic
  Members Description  
    pMemoryDC Pointer to "memory" device context

 
    pTextGraph

 
    pWindowDC Pointer to the video memory context

 
    cbPicture Graphs Bitmap

 
    pBeginning Pointer to the byte, where begins bitmap memory

 
    colors for colors

 
    first_load true, if first initialization is done.. changed in CreateBitmap function

 
    gridindex for grid placement

 
    predictedPoints number that shows how many points are predicted in mode2

 
    compactRatio important!!! Shows, how to stretch

 
    wide_area_width in mode 2, graph area width =points + TEXTSPACE;

 
    StopAmount if 0, then unlimited

 
    increase_now if there is time to increase

 
    dynGridStep GRIDSTEP, depending...

 
    relative_height height-2*TOPBOTMARING

 
    d_linevalues delta max value and min value of seeable area

 
    minimum min value of graph

 
    graph_area_width width of the area where graph is plotted

 
    text_space Dynamic text.. if 0, not used for text

 
    ratio ratio of d_linevalues and height

 
    upper

 
    lower

 
    mDataseg Map for data: firs is time, second is vector for values

 
    pvLastDataseg pointer to previous dataseg.

 
    topValues top value of each data-vector. (for calculating bounds)

 
    botValues

 
    vColorLine for CPen colors

 
    GetBitmapSize for getting size of the bitmap

 
    GetClientRectSize

 
    intConverter

 
    EnlargeBitmap for enlarging previously created bitmap

 
    CreateBitmap Creating bitmap (

 
    InitTextSettings Initializing text color and settings

 
    RedrawGraph Redrawing.. using mDataseg elements

 
    PrintGreenOnes prints only green lines

 
    CalculateBounds for calculating new ratio

 
    CalculateYCoord calculates Y coord for Graph, depends on height, minimum, ratio, coord in absolute scale

 
    UpdateText updates numbers

 
    params first is param name, second is #

 
    ClearEverything

 
    Graph default constructor

 
    ~Graph

 
    CreatePallette Creating color pallette - <=256 colors can be predefine

 
    PaintGraph

 
    InitGraph initalizes functions and creates color pallette

 
    AddAndDraw if vector<..>==empty.. then DOES NOT ENTER NEW elements - so, this function can be called without insertin new elements

 
    AddAndDraw for adding data and showing graph

 
    ClearLineData clears map and topValues

 
    RebootViewData

 
    ResetView draws only green lines

 
    UpdateBounds for updating bounds

 
    TextOut for working with derived classes

 
    FillBackground no use for this class