Surf3d Class Reference

#include <view.h>

Inheritance diagram for Surf3d:

View View List of all members.

Public Member Functions

 Surf3d ()
 Surf3d (Scan *sc, int ChNo)
virtual ~Surf3d ()
virtual void hide ()
virtual int draw (int zoomoverride=FALSE)
virtual int update (int y1, int y2)
virtual void ZoomIn ()
virtual void ZoomOut ()
virtual void setup_data_transformation ()
gboolean GLdrawscene (int y_to_update=-1, int refresh_all=FALSE)
gboolean reshape (GtkWidget *widget, GdkEventConfigure *event)
void Rotate (int n, double dphi)
void RotateAbs (int n, double phi)
double RotateX (double dphi)
double RotateY (double dphi)
double RotateZ (double dphi)
void Translate (int n, double delta)
double Zoom (double x)
double HeightSkl (double x)
void ColorSrc ()
void GLModes (int n, int m)
void preferences ()
 Surf3d ()
 Surf3d (Scan *sc, int ChNo)
virtual ~Surf3d ()
virtual void hide ()
virtual int draw (int zoomoverride=FALSE)
virtual int update (int y1, int y2)
virtual void ZoomIn ()
virtual void ZoomOut ()
virtual void setup_data_transformation ()
gboolean GLdrawscene (int y_to_update=-1, int refresh_all=FALSE)
gboolean reshape (GtkWidget *widget, GdkEventConfigure *event)
void Rotate (int n, double dphi)
void RotateAbs (int n, double phi)
double RotateX (double dphi)
double RotateY (double dphi)
double RotateZ (double dphi)
void Translate (int n, double delta)
double Zoom (double x)
double HeightSkl (double x)
void ColorSrc ()
void GLModes (int n, int m)
void preferences ()

Static Public Member Functions

static void GLupdate (void *data)
static void GLupdate (void *data)

Public Attributes

int GL_realized
Surf3d_GLview_data GLv_data

Private Member Functions

void PutPointMode (int k, int j)
void ReadPalette (char *name)
void GLvarinit ()
int GetSmem ()
int DelSmem ()
void GLdrawsurface (int y_to_update=-1, int refresh_all=FALSE)
void GLdrawGimmicks ()
void printstring (void *font, char *string)
void calccolor (GLfloat height, GLfloat c[3])
void PutPointMode (int k, int j)
void ReadPalette (char *name)
void GLvarinit ()
int GetSmem ()
int DelSmem ()
void GLdrawsurface (int y_to_update=-1, int refresh_all=FALSE)
void GLdrawGimmicks ()
void printstring (void *font, char *string)
void calccolor (GLfloat height, GLfloat c[3])

Private Attributes

int XPM_x
int XPM_y
Mem2dmem2d_x
GnomeResPreferencesv3dControl_pref_dlg
GnomeResEntryInfoTypev3dControl_pref_def
GLfloat * surface
GLfloat ** surfacecolor
GLubyte * surfacepic
GLuint glZeroFrameList
GLuint glSurfaceList
GLuint glSurfaceListRange
GLfloat ColorLookup [1024][3]
int valid
unsigned long size
int scrwidth
int scrheight
V3dControlv3dcontrol
Mem2dmem2d_x
GnomeResPreferencesv3dControl_pref_dlg
GnomeResEntryInfoTypev3dControl_pref_def
GLfloat * surface
GLfloat ** surfacecolor
GLubyte * surfacepic
V3dControlv3dcontrol

Detailed Description

Definition at line 259 of file view.h.


Constructor & Destructor Documentation

Surf3d::Surf3d  ) 
 

Definition at line 187 of file vsurf3d.C.

References GLvarinit(), and v3dcontrol.

Surf3d::Surf3d Scan sc,
int  ChNo
 

Definition at line 181 of file vsurf3d.C.

References DBG_L2, GLvarinit(), v3dcontrol, and XSM_DEBUG.

Surf3d::~Surf3d  )  [virtual]
 

Definition at line 192 of file vsurf3d.C.

References DBG_L2, DelSmem(), gnome_res_destroy(), hide(), v3dControl_pref_def, v3dControl_pref_dlg, and XSM_DEBUG.

Surf3d::Surf3d  ) 
 

Surf3d::Surf3d Scan sc,
int  ChNo
 

virtual Surf3d::~Surf3d  )  [virtual]
 


Member Function Documentation

void Surf3d::calccolor GLfloat  height,
GLfloat  c[3]
[private]
 

void Surf3d::calccolor GLfloat  height,
GLfloat  c[3]
[private]
 

Definition at line 545 of file vsurf3d.C.

Referenced by PutPointMode().

void Surf3d::ColorSrc  ) 
 

void Surf3d::ColorSrc  ) 
 

Definition at line 475 of file vsurf3d.C.

References Surf3d_GLview_data::ColorSrc, draw(), ERR_NO2SRC, ERR_SORRY, Surface::FindChan(), gapp, GLv_data, HINT_MAKESRC2, ID_CH_M_X, Scan::mem2d, mem2d_x, Surface::scan, App::xsm, and XSM_SHOW_ALERT.

Referenced by GLupdate().

int Surf3d::DelSmem  )  [private]
 

int Surf3d::DelSmem  )  [private]
 

Definition at line 366 of file vsurf3d.C.

References size, surface, surfacecolor, and valid.

Referenced by GetSmem(), and ~Surf3d().

virtual int Surf3d::draw int  zoomoverride = FALSE  )  [virtual]
 

Reimplemented from View.

int Surf3d::draw int  zoomoverride = FALSE  )  [virtual]
 

Reimplemented from View.

Definition at line 1245 of file vsurf3d.C.

References View::ChanNo, configure_event(), DBG_L2, DBG_L5, expose_event(), V3dControl::GetGlarea(), GL_realized, View::mem2d, realize(), View::scan, v3dcontrol, and XSM_DEBUG.

Referenced by ColorSrc(), and HeightSkl().

int Surf3d::GetSmem  )  [private]
 

int Surf3d::GetSmem  )  [private]
 

Definition at line 319 of file vsurf3d.C.

References View::ChanNo, View::data, DelSmem(), ERR_NOMEM, Mem2d::GetEname(), Mem2d::GetNx(), Mem2d::GetNy(), GLv_data, View::mem2d, Scan_UserInfo::name, Surf3d_GLview_data::preV, View::QuenchFac, scrwidth, V3dControl::SetTitle(), size, surface, surfacecolor, SCAN_DATA::ui, v3dcontrol, XPM_x, XPM_y, and XSM_SHOW_MESSAGES.

Referenced by reshape().

void Surf3d::GLdrawGimmicks  )  [private]
 

void Surf3d::GLdrawGimmicks  )  [private]
 

Definition at line 626 of file vsurf3d.C.

References buf, Mem2d::data, DrawOneLine, Mem2d::GetDataVMode(), Mem2d::GetNx(), Mem2d::GetNy(), ZData::GetXLookup(), ZData::GetYLookup(), View::mem2d, printstring(), XPM_x, and XPM_y.

gboolean Surf3d::GLdrawscene int  y_to_update = -1,
int  refresh_all = FALSE
 

gboolean Surf3d::GLdrawscene int  y_to_update = -1,
int  refresh_all = FALSE
 

Definition at line 1007 of file vsurf3d.C.

References Surf3d_GLview_data::clear_color, copyvec4(), Surf3d_GLview_data::Cull, FALSE, V3dControl::GetGlarea(), GLv_data, Surf3d_GLview_data::light, Surf3d_GLview_data::light_ambient, Surf3d_GLview_data::light_diffuse, Surf3d_GLview_data::light_position, Surf3d_GLview_data::light_specular, Surf3d_GLview_data::Mesh, mulvecwf(), Surf3d_GLview_data::Smooth, v3dcontrol, valid, and XPM_x.

void Surf3d::GLdrawsurface int  y_to_update = -1,
int  refresh_all = FALSE
[private]
 

void Surf3d::GLdrawsurface int  y_to_update = -1,
int  refresh_all = FALSE
[private]
 

Definition at line 724 of file vsurf3d.C.

References Surf3d_GLview_data::box_mat_ambient, Surf3d_GLview_data::box_mat_color, Surf3d_GLview_data::box_mat_diffuse, Surf3d_GLview_data::box_mat_shininess, Surf3d_GLview_data::box_mat_specular, DBG_L4, GLv_data, glZeroFrameList, surface, XPM_x, XPM_y, XSM_DEBUG, and Surf3d_GLview_data::ZeroPlane.

void Surf3d::GLModes int  n,
int  m
 

void Surf3d::GLModes int  n,
int  m
 

Definition at line 496 of file vsurf3d.C.

References Surf3d_GLview_data::Cull, V3dControl::GetGlarea(), GLv_data, ID_GL_Cull, ID_GL_Mesh, ID_GL_nZP, ID_GL_Smooth, ID_GL_Ticks, Surf3d_GLview_data::Mesh, Surf3d_GLview_data::Smooth, Surf3d_GLview_data::Ticks, v3dcontrol, and Surf3d_GLview_data::ZeroPlane.

static void Surf3d::GLupdate void *  data  )  [static]
 

void Surf3d::GLupdate void *  data  )  [static]
 

Definition at line 310 of file vsurf3d.C.

References ColorSrc(), V3dControl::GetGlarea(), reshape(), and v3dcontrol.

Referenced by GLvarinit().

void Surf3d::GLvarinit  )  [private]
 

void Surf3d::GLvarinit  )  [private]
 

Definition at line 263 of file vsurf3d.C.

References FALSE, GL_realized, glSurfaceList, glSurfaceListRange, GLupdate(), GLv_data, glZeroFrameList, GNOME_RES_LAST, mem2d_x, scrwidth, size, surface, surfacecolor, GnomeResEntryInfoType::type, v3dControl_pref_def, v3dControl_pref_def_const, valid, GnomeResEntryInfoType::var, XPM_x, XPM_y, and View::ZoomFac.

Referenced by Surf3d().

double Surf3d::HeightSkl double  x  ) 
 

double Surf3d::HeightSkl double  x  ) 
 

Definition at line 469 of file vsurf3d.C.

References draw(), GLv_data, and Surf3d_GLview_data::hskl.

Referenced by V3dControl::view_GL_Wh_Zskl_callback().

virtual void Surf3d::hide  )  [virtual]
 

Reimplemented from View.

void Surf3d::hide  )  [virtual]
 

Reimplemented from View.

Definition at line 201 of file vsurf3d.C.

References DBG_L2, v3dcontrol, and XSM_DEBUG.

Referenced by ~Surf3d().

void Surf3d::preferences  ) 
 

void Surf3d::preferences  ) 
 

Definition at line 1269 of file vsurf3d.C.

References gnome_res_run_change_user_config(), and v3dControl_pref_dlg.

void Surf3d::printstring void *  font,
char *  string
[private]
 

void Surf3d::printstring void *  font,
char *  string
[private]
 

Definition at line 416 of file vsurf3d.C.

Referenced by GLdrawGimmicks().

void Surf3d::PutPointMode int  k,
int  j
[private]
 

void Surf3d::PutPointMode int  k,
int  j
[inline, private]
 

Definition at line 208 of file vsurf3d.C.

References calccolor(), Surf3d_GLview_data::ColorContrast, ColorLookup, Surf3d_GLview_data::ColorMode, Surf3d_GLview_data::ColorOffset, Surf3d_GLview_data::ColorSat, Surf3d_GLview_data::ColorSrc, Mem2d::GetDataRange(), Mem2d::GetDataVMode(), Mem2d::GetNx(), Mem2d::GetNy(), GLv_data, Surf3d_GLview_data::hskl, View::mem2d, mem2d_x, View::QuenchFac, size, Surf3d_GLview_data::surf_mat_color, surface, surfacecolor, XPM_x, and ZRANGE_MAPPED.

Referenced by update().

void Surf3d::ReadPalette char *  name  )  [private]
 

void Surf3d::ReadPalette char *  name  )  [private]
 

Definition at line 514 of file vsurf3d.C.

References ColorLookup.

gboolean Surf3d::reshape GtkWidget *  widget,
GdkEventConfigure *  event
 

gboolean Surf3d::reshape GtkWidget *  widget,
GdkEventConfigure *  event
 

Definition at line 385 of file vsurf3d.C.

References DBG_L2, FALSE, Surf3d_GLview_data::fov, GetSmem(), GLv_data, scrheight, scrwidth, TRUE, XPM_x, XSM_DEBUG, Surf3d_GLview_data::Zfar, and Surf3d_GLview_data::Znear.

Referenced by GLupdate().

void Surf3d::Rotate int  n,
double  dphi
 

void Surf3d::Rotate int  n,
double  dphi
 

Definition at line 430 of file vsurf3d.C.

References GLv_data, and Surf3d_GLview_data::rot.

void Surf3d::RotateAbs int  n,
double  phi
 

void Surf3d::RotateAbs int  n,
double  phi
 

Definition at line 424 of file vsurf3d.C.

References V3dControl::GetGlarea(), GLv_data, Surf3d_GLview_data::rot, and v3dcontrol.

double Surf3d::RotateX double  dphi  ) 
 

double Surf3d::RotateX double  dphi  ) 
 

Definition at line 439 of file vsurf3d.C.

References V3dControl::GetGlarea(), GLv_data, Surf3d_GLview_data::rot, and v3dcontrol.

Referenced by V3dControl::view_GL_Wh_rotX_callback().

double Surf3d::RotateY double  dphi  ) 
 

double Surf3d::RotateY double  dphi  ) 
 

Definition at line 446 of file vsurf3d.C.

References V3dControl::GetGlarea(), GLv_data, Surf3d_GLview_data::rot, and v3dcontrol.

Referenced by V3dControl::view_GL_Wh_rotY_callback().

double Surf3d::RotateZ double  dphi  ) 
 

double Surf3d::RotateZ double  dphi  ) 
 

Definition at line 453 of file vsurf3d.C.

References V3dControl::GetGlarea(), GLv_data, Surf3d_GLview_data::rot, and v3dcontrol.

Referenced by V3dControl::view_GL_Wh_rotZ_callback().

virtual void Surf3d::setup_data_transformation  )  [virtual]
 

Reimplemented from View.

void Surf3d::setup_data_transformation  )  [virtual]
 

Reimplemented from View.

Definition at line 588 of file vsurf3d.C.

References View::data, SCAN_DATA::display, View::mem2d, Mem2d::SetDataPktMode(), Mem2d::SetDataRange(), Display_Param::ViewFlg, and ZRANGE_MAPPED.

Referenced by update().

void Surf3d::Translate int  n,
double  delta
 

void Surf3d::Translate int  n,
double  delta
 

Definition at line 460 of file vsurf3d.C.

References GLv_data, and Surf3d_GLview_data::trans.

virtual int Surf3d::update int  y1,
int  y2
[virtual]
 

Reimplemented from View.

int Surf3d::update int  y1,
int  y2
[virtual]
 

Reimplemented from View.

Definition at line 593 of file vsurf3d.C.

References V3dControl::GetGlarea(), Mem2d::GetNx(), View::mem2d, PutPointMode(), View::QuenchFac, setup_data_transformation(), v3dcontrol, and valid.

double Surf3d::Zoom double  x  ) 
 

double Surf3d::Zoom double  x  ) 
 

Definition at line 462 of file vsurf3d.C.

References Surf3d_GLview_data::dist, V3dControl::GetGlarea(), GLv_data, and v3dcontrol.

Referenced by V3dControl::V3dControl(), and V3dControl::view_GL_Wh_zoom_callback().

virtual void Surf3d::ZoomIn  )  [inline, virtual]
 

Reimplemented from View.

Definition at line 268 of file view.h.

virtual void Surf3d::ZoomIn  )  [inline, virtual]
 

Reimplemented from View.

Definition at line 268 of file view.h.

virtual void Surf3d::ZoomOut  )  [inline, virtual]
 

Reimplemented from View.

Definition at line 269 of file view.h.

virtual void Surf3d::ZoomOut  )  [inline, virtual]
 

Reimplemented from View.

Definition at line 269 of file view.h.


Member Data Documentation

GLfloat Surf3d::ColorLookup [private]
 

Definition at line 313 of file view.h.

Referenced by PutPointMode(), and ReadPalette().

int Surf3d::GL_realized
 

Definition at line 322 of file view.h.

Referenced by draw(), and GLvarinit().

GLuint Surf3d::glSurfaceList [private]
 

Definition at line 312 of file view.h.

Referenced by GLvarinit().

GLuint Surf3d::glSurfaceListRange [private]
 

Definition at line 312 of file view.h.

Referenced by GLvarinit().

Surf3d_GLview_data Surf3d::GLv_data
 

Definition at line 323 of file view.h.

Referenced by ColorSrc(), GetSmem(), GLdrawscene(), GLdrawsurface(), GLModes(), GLvarinit(), HeightSkl(), PutPointMode(), reshape(), Rotate(), RotateAbs(), RotateX(), RotateY(), RotateZ(), Translate(), and Zoom().

GLuint Surf3d::glZeroFrameList [private]
 

Definition at line 312 of file view.h.

Referenced by GLdrawsurface(), and GLvarinit().

Mem2d* Surf3d::mem2d_x [private]
 

Definition at line 296 of file view.h.

Mem2d* Surf3d::mem2d_x [private]
 

Definition at line 296 of file view.h.

Referenced by ColorSrc(), GLvarinit(), and PutPointMode().

int Surf3d::scrheight [private]
 

Definition at line 319 of file view.h.

Referenced by reshape().

int Surf3d::scrwidth [private]
 

Definition at line 318 of file view.h.

Referenced by GetSmem(), GLvarinit(), and reshape().

unsigned long Surf3d::size [private]
 

Definition at line 316 of file view.h.

Referenced by DelSmem(), GetSmem(), GLvarinit(), and PutPointMode().

GLfloat* Surf3d::surface [private]
 

Definition at line 309 of file view.h.

GLfloat* Surf3d::surface [private]
 

Definition at line 309 of file view.h.

Referenced by DelSmem(), GetSmem(), GLdrawsurface(), GLvarinit(), and PutPointMode().

GLfloat** Surf3d::surfacecolor [private]
 

Definition at line 310 of file view.h.

GLfloat** Surf3d::surfacecolor [private]
 

Definition at line 310 of file view.h.

Referenced by DelSmem(), GetSmem(), GLvarinit(), and PutPointMode().

GLubyte* Surf3d::surfacepic [private]
 

Definition at line 311 of file view.h.

GLubyte* Surf3d::surfacepic [private]
 

Definition at line 311 of file view.h.

V3dControl* Surf3d::v3dcontrol [private]
 

Definition at line 326 of file view.h.

V3dControl* Surf3d::v3dcontrol [private]
 

Definition at line 326 of file view.h.

Referenced by draw(), GetSmem(), GLdrawscene(), GLModes(), GLupdate(), hide(), RotateAbs(), RotateX(), RotateY(), RotateZ(), Surf3d(), update(), and Zoom().

GnomeResEntryInfoType* Surf3d::v3dControl_pref_def [private]
 

Definition at line 299 of file view.h.

GnomeResEntryInfoType* Surf3d::v3dControl_pref_def [private]
 

Definition at line 299 of file view.h.

Referenced by GLvarinit(), and ~Surf3d().

GnomeResPreferences* Surf3d::v3dControl_pref_dlg [private]
 

Definition at line 298 of file view.h.

GnomeResPreferences* Surf3d::v3dControl_pref_dlg [private]
 

Definition at line 298 of file view.h.

Referenced by preferences(), and ~Surf3d().

int Surf3d::valid [private]
 

Definition at line 315 of file view.h.

Referenced by DelSmem(), GLdrawscene(), GLvarinit(), and update().

int Surf3d::XPM_x [private]
 

Definition at line 295 of file view.h.

Referenced by GetSmem(), GLdrawGimmicks(), GLdrawscene(), GLdrawsurface(), GLvarinit(), PutPointMode(), and reshape().

int Surf3d::XPM_y [private]
 

Definition at line 295 of file view.h.

Referenced by GetSmem(), GLdrawGimmicks(), GLdrawsurface(), and GLvarinit().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 09:06:29 2006 for GXSM by  doxygen 1.4.6