HOMEPAGE

Development Sites - Information for Software-Developers

Developer Platform
The first instructions
Installations
System param. structures
connect to MeteoCom
simple screen drawing
own data drawing
Picture service
File Management
EmailBulletin Service

MeteoTools::SetGridDimension

void SetGridDimension(int size, int force);

Parameters

    size

   
this set the size of symbols and grid resulution:
    0 = small,  1 = medium,  2 = large,  3 = selfset
   

 
  force

   
if you set force=1,  then the routine calls internal InitTheWorkMatrixes,

    only if you want to prevent that, then set force=0.

Remarks

    This routine set the dimension of the symobs and the screen grid.
    In the
Source Code see the DrawingTools.cpp, maybe you set SetGridDimension(?,1),
    but if you call a own routine, like InitTheWorkMatrixes,
    maybe you want to suppress this, then you call  SetGridDimension(?,0).

    If coose size=3, then you must set all parameter in the stucture myDrawPara before.
   
Example 

 

    myDrawPara.GRIDWIDTH=51;       //grid point width = computings resolution (in screen pixel)
    myDrawPara.GRIDMIDDLE=25;     
//the middle dot of the quader
    myDrawPara.SYMBOLGRID=51;     
//symbol grid resolution (in screen pixel)
    myDrawPara.SYMBOLMIDDEL=0;    
//the middle of SYMBOLGRID
    myDrawPara.SYMBOLHALFMID=25; 
  //the half middel of SYMBOLGRID
    myDrawPara.SYMBOLTOP=17;      
//symbol top set line for figures
    myDrawPara.ARROW_LEN=20.833;  
//the lenght of the arrow
    myDrawPara.ARROW_LEN_MID=6.5; 
//the radius of middle point of then arrow
    myDrawPara.ARROW_WING=9.0;    
//the wing lenght of the arrow
    myDrawPara.FIG_HEIGHT=-12;    
//the Font.lfHeight of a figures
    myDrawPara.FIG_WEIGHT=FW_NORMAL;
//the Font.lfWeight of a figures
    myDrawPara.ObjectScale=.03;   
//the scale of the symbols 

    SetGridDimension(3,1); //set my own symbol dimension

    //set the standard font in the view for figures
   
LOGFONT lf=
    {
       -8, //lfHeight;
        0, //lfWidth;
        0, //lfEscapement;
        0, //lfOrientation;
        FW_NORMAL, //lfWeight;
        0, //lfItalic;
        0, //lfUnderline;
        0, //lfStrikeOut;
        0, //lfCharSet;
        0, //lfOutPrecision;
        0, //lfClipPrecision;
        0, //lfQuality;
        VARIABLE_PITCH | FF_SWISS, //lfPitchAndFamily;
        {"Arial\0"} //lfFaceN
    };

    //recreate your font for symbol-figures
    lf.lfHeight=myDrawPara.FIG_HEIGHT;
    lf.lfWeight=myDrawPara.FIG_WEIGHT;
    myFond.Detach();
    myFond.CreateFontIndirect(&lf); 


See Also   MeteoToolsDefs.h, myDrawPara

 
   Copyright 2006 Bonito Germany.   
www.bonito.net