My Documents/Codes/MD++.svn/trunk/src/xgeo.cpp File Reference

#include "xgeo.h"
#include "namecolor.c"
#include "main.cpp"

Go to the source code of this file.

Defines

#define _Geo_DoDraw(_1, _2, _3, _4, _5, _6)
#define testendpoint(_1, _2, _3)
#define testendline(_1, _2)

Variables

class XGeo sim


Define Documentation

#define _Geo_DoDraw ( _1,
_2,
_3,
_4,
_5,
_6   ) 

Value:

r1=(a*(_1 1)+b*(_2 1)+c*(_3 1))*0.5; \
    r2=(a*(_4 1)+b*(_5 1)+c*(_6 1))*0.5; \
    r1=_RV*r1; r2=_RV*r2; \
    win->DrawLine(r1.x,r1.y,r1.z,r2.x,r2.y,r2.z,colors[0]);

Referenced by XGeo::drawBox().

#define testendline ( _1,
_2   ) 

Value:

dn2.clear(); dn2._1=1;                            \
        sr2.clear(); sr2._1=_2 0.5;                       \
        if(getxline(dn,sr1,dn2,sr2,dl,srl)){              \
        if(getlineendpoints(dl,srl,ra,rb)){               \
        ra=_RV*ra; rb=_RV*rb;                             \
        win->DrawLine(ra.x,ra.y,ra.z,rb.x,rb.y,rb.z,c);}}

Referenced by XGeo::drawPlanes().

#define testendpoint ( _1,
_2,
_3   ) 

Value:

if(sl._1!=0)                                           \
    {                                                      \
        a=(0.5-sr0._1)/sl._1;                              \
        _1=0.5;                                            \
        _2=a*sl._2+sr0._2;                                 \
        _3=a*sl._3+sr0._3;                                 \
        if((fabs(_2) <= 0.5001)&&(fabs(_3) <= 0.5001))     \
        {                                                  \
            sr[n].set(x,y,z); n++;                         \
        }                                                  \
        a=(-0.5-sr0._1)/sl._1;                             \
        _1=-0.5;                                           \
        _2=a*sl._2+sr0._2;                                 \
        _3=a*sl._3+sr0._3;                                 \
        if((fabs(_2) <= 0.5001)&&(fabs(_3) <= 0.5001))     \
        {                                                  \
            sr[n].set(x,y,z); n++;                         \
        }                                                  \
    }

Referenced by XGeo::getlineendpoints().


Variable Documentation

class XGeo sim

Definition at line 480 of file xgeo.cpp.


Generated on Tue Oct 28 15:21:12 2008 for MD++ by  doxygen 1.5.7.1