#include <xgeo.h>

Public Member Functions | |
| XGeo () | |
| virtual | ~XGeo () |
| virtual void | initvars () |
| virtual void | initparser () |
| virtual int | exec (char *name) |
| int | openwindow (int w, int h, const char *n) |
| void | closewindow () |
| virtual void | openwin () |
| virtual void | plot () |
| void | wintogglepause () |
| void | alloccolors () |
| void | rotate () |
| void | saverot () |
Public Attributes | |
| double | geo_box [3][4] |
| double | geo_line [7 *MAXGEOOBJ+5] |
| double | geo_plane [7 *MAXGEOOBJ+5] |
| int | geo_xpoint [3 *MAXGEOOBJ+3] |
| int | geo_xline [3 *MAXGEOOBJ+3] |
| double | geo_vector [8 *MAXGEOOBJ+3] |
| class YWindow * | win |
| int | win_width |
| int | win_height |
| double | pointradius |
| char | geo_box_color [30] |
| char | geo_line_color [30] |
| char | geo_plane_color [30] |
| char | geo_vector_color [30] |
| char | geo_xpoint_color [30] |
| char | geo_xline_color [30] |
| char | backgroundcolor [30] |
| unsigned | colors [10] |
Private Member Functions | |
| void | drawBox () |
| void | drawLines () |
| void | drawPlanes () |
| void | drawXpoints () |
| void | drawXlines () |
| void | drawVectors () |
| bool | getlineendpoints (Vector3 &, Vector3 &, Vector3 &, Vector3 &) |
| bool | getxline (Vector3 &, Vector3 &, Vector3 &, Vector3 &, Vector3 &, Vector3 &) |
| bool | getxpoint (Vector3 &, Vector3 &, Vector3 &, Vector3 &, Vector3 &) |
Private Attributes | |
| double | L |
| Matrix33 | _H |
| Matrix33 | _RV |
Definition at line 15 of file xgeo.h.
| void XGeo::alloccolors | ( | ) |
Definition at line 89 of file xgeo.cpp.
References SYWindow::alive, SYWindow::AllocShortRGBColor(), backgroundcolor, SYWindow::bgcolor, colors, geo_box_color, geo_line_color, geo_plane_color, geo_vector_color, geo_xline_color, geo_xpoint_color, NULL, Str2RGB(), and win.
| void XGeo::drawBox | ( | ) | [private] |
Definition at line 154 of file xgeo.cpp.
References _Geo_DoDraw, _H, _RV, geo_box, Matrix33::inv(), L, Vector3::norm(), Vector3::set(), and Matrix33::setcol().
Referenced by plot().
| void XGeo::drawLines | ( | ) | [private] |
Definition at line 197 of file xgeo.cpp.
References _RV, colors, SYWindow::DrawLine(), geo_line, getlineendpoints(), int(), Vector3::set(), and win.
Referenced by plot().
| void XGeo::drawPlanes | ( | ) | [private] |
Definition at line 348 of file xgeo.cpp.
References colors, geo_plane, int(), Vector3::set(), and testendline.
Referenced by plot().
| void XGeo::drawVectors | ( | ) | [private] |
Definition at line 215 of file xgeo.cpp.
References _H, _RV, colors, SYWindow::DrawLine(), geo_vector, int(), L, Vector3::norm(), Vector3::set(), and win.
Referenced by plot().
| void XGeo::drawXlines | ( | ) | [private] |
Definition at line 446 of file xgeo.cpp.
References _RV, colors, SYWindow::DrawLine(), geo_plane, geo_xline, getlineendpoints(), getxline(), int(), Vector3::set(), and win.
Referenced by plot().
| void XGeo::drawXpoints | ( | ) | [private] |
Definition at line 414 of file xgeo.cpp.
References _RV, colors, SYWindow::DrawPoint(), geo_line, geo_plane, geo_xpoint, getxpoint(), int(), L, pointradius, Vector3::set(), and win.
Referenced by plot().
| int XGeo::exec | ( | char * | name | ) | [virtual] |
Reimplemented from Organizer.
Definition at line 37 of file xgeo.cpp.
References alloccolors(), bindcommand, Organizer::exec(), openwin(), and plot().
Definition at line 236 of file xgeo.cpp.
References _H, Vector3::clear(), Matrix33::inv(), Vector3::norm2(), and testendpoint.
Referenced by drawLines(), and drawXlines().
| bool XGeo::getxline | ( | Vector3 & | dn1, | |
| Vector3 & | sr1, | |||
| Vector3 & | dn2, | |||
| Vector3 & | sr2, | |||
| Vector3 & | dl, | |||
| Vector3 & | sr | |||
| ) | [private] |
Definition at line 317 of file xgeo.cpp.
References _H, A, Vector3::clear(), Matrix33::inv(), Vector3::norm2(), and Matrix33::setcol().
Referenced by drawXlines().
| bool XGeo::getxpoint | ( | Vector3 & | dl1, | |
| Vector3 & | sr1, | |||
| Vector3 & | dn2, | |||
| Vector3 & | sr2, | |||
| Vector3 & | r | |||
| ) | [private] |
Definition at line 387 of file xgeo.cpp.
References _H, and Vector3::clear().
Referenced by drawXpoints().
| void XGeo::initparser | ( | ) | [virtual] |
Definition at line 11 of file xgeo.cpp.
References backgroundcolor, Organizer::bindvar(), DOUBLE, geo_box, geo_box_color, geo_line, geo_line_color, geo_plane, geo_plane_color, geo_vector, geo_vector_color, geo_xline, geo_xline_color, geo_xpoint, geo_xpoint_color, INT, pointradius, STRING, win_height, and win_width.
Referenced by initvars().
| void XGeo::initvars | ( | ) | [virtual] |
| void XGeo::openwin | ( | ) | [virtual] |
Definition at line 115 of file xgeo.cpp.
References alloccolors(), Organizer::dirname, openwindow(), win_height, and win_width.
Referenced by exec().
| int XGeo::openwindow | ( | int | w, | |
| int | h, | |||
| const char * | n | |||
| ) |
Definition at line 121 of file xgeo.cpp.
References SYWindow::alive, NULL, SYWindow::Run(), SYWindow::setinterval(), and win.
Referenced by openwin().
| void XGeo::plot | ( | ) | [virtual] |
Definition at line 137 of file xgeo.cpp.
References SYWindow::alive, SYWindow::Clear(), drawBox(), drawLines(), drawPlanes(), drawVectors(), drawXlines(), drawXpoints(), SYWindow::Lock(), NULL, SYWindow::Refresh(), SYWindow::Unlock(), and win.
Referenced by exec().
| void XGeo::rotate | ( | ) |
| void XGeo::saverot | ( | ) |
| void XGeo::wintogglepause | ( | ) |
Definition at line 36 of file xgeo.h.
Referenced by drawBox(), drawVectors(), getlineendpoints(), getxline(), and getxpoint().
Definition at line 36 of file xgeo.h.
Referenced by drawBox(), drawLines(), drawVectors(), drawXlines(), and drawXpoints().
| char XGeo::backgroundcolor[30] |
| unsigned XGeo::colors[10] |
Definition at line 32 of file xgeo.h.
Referenced by alloccolors(), drawLines(), drawPlanes(), drawVectors(), drawXlines(), and drawXpoints().
| double XGeo::geo_box[3][4] |
| char XGeo::geo_box_color[30] |
| double XGeo::geo_line[7 *MAXGEOOBJ+5] |
| char XGeo::geo_line_color[30] |
| double XGeo::geo_plane[7 *MAXGEOOBJ+5] |
Definition at line 20 of file xgeo.h.
Referenced by drawPlanes(), drawXlines(), drawXpoints(), and initparser().
| char XGeo::geo_plane_color[30] |
| double XGeo::geo_vector[8 *MAXGEOOBJ+3] |
| char XGeo::geo_vector_color[30] |
| int XGeo::geo_xline[3 *MAXGEOOBJ+3] |
| char XGeo::geo_xline_color[30] |
| int XGeo::geo_xpoint[3 *MAXGEOOBJ+3] |
| char XGeo::geo_xpoint_color[30] |
double XGeo::L [private] |
| double XGeo::pointradius |
Definition at line 25 of file xgeo.h.
Referenced by alloccolors(), closewindow(), drawLines(), drawVectors(), drawXlines(), drawXpoints(), openwindow(), and plot().
| int XGeo::win_height |
| int XGeo::win_width |
1.5.7.1