UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ZtSeismicView Class Reference

#include <ZtSeismicView.H>

Inheritance diagram for ZtSeismicView:
ZtObject ZDrawable ZRect ZGEnv ZPoint ZSize ZConnect

Public Member Functions

 ZtSeismicView (ZtMain *pManager, ZGroupId pxid_int, ZGroupId pyid_int, ZGroupId pxid_ext, ZGroupId pyid_ext, ZGroupId nxid, ZGroupId nyid)
 
virtual void attach_seismic (ZSeismicStream *sstream)
 
virtual void detach_seismic ()
 
ZNCoordSlaventime () const
 
ZNCoordSlavenplace () const
 
float time_p2n (int ptime) const
 
int time_n2p (float ntime) const
 
float place_p2n (int pplace) const
 
int place_n2p (float nplace) const
 
virtual void extent_rect (ZRect &res)
 
virtual void redraw ()
 
void set_per_trace_proc (ZPerTraceProc zptp, void *pUserData)
 
void set_global_amax (float gamax)
 
int get_pixel_height () const
 
virtual const char * class_id () const
 
virtual void set_options (const ZSVOptions &svo, int svo_mask=~0)
 
virtual void get_options (ZSVOptions &svo, int svo_mask=~0) const
 
virtual const ZSVOptionsget_options () const
 
void compute_palette (ZScaledPalette &pal, float mm[2])
 
virtual void get_palette (ZScaledPalette &zspal) const
 
- Public Member Functions inherited from ZtObject
 ZtObject (ZtMain *pManager, ZGroupId pxid, ZGroupId pyid)
 
 ZtObject (ZtMain *pManager, ZGroupId pxid, ZGroupId pyid, ZDimension dim, ZGroupId nid)
 
 ZtObject (ZtMain *pManager, ZGroupId pxid, ZGroupId pyid, ZGroupId nxid, ZGroupId nyid)
 
 ZtObject (const ZtObject &zobj)
 
ZtMainget_manager () const
 
virtual void prepare_xywh ()
 
ZNCoordSlavenx () const
 
ZNCoordSlaveny () const
 
Logic is_vertical () const
 
Logic is_horizontal () const
 
float x_p2n (int pcoord) const
 
float y_p2n (int pcoord) const
 
int x_n2p (float ncoord) const
 
int y_n2p (float ncoord) const
 
Logic clip_line_by_rect (float sx[2], float sy[2]) const
 
Logic clip_line_by_rect (int sx[2], int sy[2]) const
 
Logic clip_line_by_rect (float sx[2], float sy[2], float nx[2], float ny[2]) const
 
Logic clip_line_by_rect (float sx[2], float sy[2], int px[2], int py[2]) const
 
Logic clip_rect_by_rect (float rcx[2], float rcy[2]) const
 
Logic clip_rect_by_rect (float rx[2], float ry[2], float cx[2], float cy[2]) const
 
void seldom_redraw (Logic flag)
 
Logic is_seldom_redraw () const
 
void changes ()
 
void done ()
 
Logic is_changed () const
 
virtual void expose ()
 
virtual void can_hear_events (Logic flag)
 
Logic is_deaf () const
 
virtual ZInputStatus input (const XEvent *xev)
 
virtual void show ()
 
virtual void hide ()
 
Logic is_hidden () const
 
virtual Logic belong (int px, int py) const
 
void raise_exch ()
 
void raise_shift ()
 
void wePutMsg (int elevel, const char *s)
 
void weFormatMsg (int elevel, const char *format,...)
 
void put_msg (int elevel, const char *format, va_list val)
 
void format_msg (int elevel, const char *format,...)
 
void set_info_lines (InfoLine *il)
 
InfoLineget_info_lines () const
 
- Public Member Functions inherited from ZDrawable
 ZDrawable (const ZConnect &zconnect, Drawable drawable)
 
 ZDrawable (const ZDrawable &zdrawable)
 
virtual ZRect rect () const
 
void draw_text (int x, int y, int attachment, const char *szText) const
 
void draw_text (const ZRect &box, int alignment, const char *szText) const
 
void write_tiff (const char *path, ZmImageRemarks *remarks=NULL)
 
void write_png (const char *path, ZmImageRemarks *remarks=NULL)
 
- Public Member Functions inherited from ZGEnv
 ZGEnv (const ZConnect &zconnect)
 
 ZGEnv (const ZGEnv &zgenv)
 
void set_foreground (const char *szColorName)
 
void set_foreground (ColorPixel cp)
 
ColorPixel get_foreground () const
 
const char * get_foreground_name () const
 
void set_background (const char *szColorName)
 
void set_background (ColorPixel cp)
 
ColorPixel get_background () const
 
const char * get_background_name () const
 
void swap_ground ()
 
void assign (const ZGEnv &zgenv)
 
void set_line_width (int new_width)
 
int get_line_width () const
 
void set_line_style (int new_style, int dash=3, int hole=3)
 
int get_line_style () const
 
void set_font (const char *szFontName)
 
void set_font_as (const ZGEnv &zgenv)
 
Font get_font () const
 
const char * get_font_name () const
 
int text_width (const char *szText) const
 
int text_width (int n) const
 
int text_height () const
 
int text_ascent () const
 
int text_descent () const
 
ZRect text_rect (int x, int y, int attachment, const char *szText) const
 
virtual void changed_state (int mask_of_changes)
 
ZGEnvoperator= (const ZGEnv &zgenv)
 
- Public Member Functions inherited from ZConnect
 ZConnect (Display *display)
 
 ZConnect (const ZConnect &zconnect)
 
void flush ()
 
void x_error (int code) const
 
ZRect rect (Drawable drawable) const
 
int depth (Drawable drawable) const
 
Window root_wid () const
 
ColorPixel white () const
 
ColorPixel black () const
 
ColorPixel color (const char *szColorName) const
 
- Public Member Functions inherited from ZRect
 ZRect (const ZPoint &zpoint1, const ZPoint &zpoint2)
 
 ZRect (const ZPoint &zpoint, const ZSize &zsize, ZCorner zcorner=zcLeftTop)
 
 ZRect (const ZRect &zrect)
 
virtual void move (const ZPoint &zpoint, ZCorner zcorner=zcLeftTop)
 
virtual Logic inside (const ZPoint &zpoint) const
 
virtual operator XRectangle () const
 
void print (const char *szEnd="\n") const
 
bool operator== (const ZRect &zrect) const
 
bool operator!= (const ZRect &zrect) const
 
- Public Member Functions inherited from ZPoint
 ZPoint (int x_coord, int y_coord)
 
 ZPoint (const ZPoint &zpoint)
 
 operator XPoint () const
 
void add_offset (const ZSize &zsize)
 
void sub_offset (const ZSize &zsize)
 
void print (const char *szEnd="\n") const
 
bool operator== (const ZPoint &zpoint) const
 
bool operator!= (const ZPoint &zpoint) const
 
- Public Member Functions inherited from ZSize
 ZSize (int width, int height)
 
 ZSize (const ZSize &zsize)
 
void difference (const ZPoint &zpoint1, const ZPoint &zpoint2)
 
void print (const char *szEnd="\n") const
 
bool operator== (const ZSize &zsize) const
 
bool operator!= (const ZSize &zsize) const
 

Protected Member Functions

virtual void explore_seismic ()
 
virtual void init_map_coding ()
 
- Protected Member Functions inherited from ZGEnv
void draw_text (Drawable id, int x, int y, int attachment, const char *szText) const
 
void draw_text (Drawable id, const ZRect &box, int alignment, const char *szText) const
 

Protected Attributes

ZPCoordSlave px_ext
 
ZPCoordSlave py_ext
 
ZtColoredMatrix colmat
 
ZSeismicStreamseismic
 
ZPerTraceProc per_trace_proc
 
void * per_trace_proc_data
 
ZSVOptions options
 
struct {
   Logic   explored
 
   FloatAr   ucoords
 
   float   mm [2]
 
cache
 
Logic bMapCoding
 
float fGlobalAmax
 
int half_height
 
- Protected Attributes inherited from ZtObject
InfoLinepInfoLine
 
ZNCoordSlavepnx
 
ZNCoordSlavepny
 
ZtMainmanager
 

Additional Inherited Members

- Public Attributes inherited from ZtObject
ZPCoordSlave px
 
ZPCoordSlave py
 
float belong_eps
 
- Public Attributes inherited from ZDrawable
Drawable did
 
- Public Attributes inherited from ZGEnv
GC gc
 
XFontStruct * font
 
- Public Attributes inherited from ZConnect
Display * dpy
 
ScreenNo scr_no
 
- Public Attributes inherited from ZPoint
int x
 
int y
 
- Public Attributes inherited from ZSize
int w
 
int h
 

Detailed Description

Class for drawing trace field from pointed trace map. Object can draw subrange of mapped traces.

Constructor & Destructor Documentation

ZtSeismicView::ZtSeismicView ( ZtMain pManager,
ZGroupId  pxid_int,
ZGroupId  pyid_int,
ZGroupId  pxid_ext,
ZGroupId  pyid_ext,
ZGroupId  nxid,
ZGroupId  nyid 
)

Create seismic view object with external bounds.

Member Function Documentation

virtual void ZtSeismicView::attach_seismic ( ZSeismicStream sstream)
virtual

Attach access to seismic traces

virtual const char* ZtSeismicView::class_id ( ) const
virtual

Self-identification.

Reimplemented from ZtObject.

void ZtSeismicView::compute_palette ( ZScaledPalette pal,
float  mm[2] 
)

Apply all color assignment setting to scaled palette in given range of amplitudes mm[0]<mm[1]

virtual void ZtSeismicView::detach_seismic ( )
virtual

Detach seismic data -> disable any drawing

virtual void ZtSeismicView::explore_seismic ( )
protectedvirtual

Compute maximum and minimum amplitude in the attached seismic stream + get list of unique coordinates; this information is cached until detach_seismic()

virtual void ZtSeismicView::extent_rect ( ZRect res)
virtual

Determine real pixel rectangle where object wants to redraw

Reimplemented from ZtObject.

virtual void ZtSeismicView::get_options ( ZSVOptions svo,
int  svo_mask = ~0 
) const
virtual

Get viewing options

virtual const ZSVOptions& ZtSeismicView::get_options ( ) const
virtual

Get viewing options

virtual void ZtSeismicView::get_palette ( ZScaledPalette zspal) const
virtual

Get current palette

int ZtSeismicView::get_pixel_height ( ) const

Get height of maximum amplitude oscillation in pixels (half of the area) or 0 just before first drawing.

virtual void ZtSeismicView::init_map_coding ( )
protectedvirtual

Initiate map coding drawing

ZNCoordSlave& ZtSeismicView::nplace ( ) const

time axis

virtual void ZtSeismicView::redraw ( )
virtual

Trace field drawing into did

Reimplemented from ZtObject.

void ZtSeismicView::set_global_amax ( float  gamax)

Set "proposed" general maximum of amplitude for the profile.

virtual void ZtSeismicView::set_options ( const ZSVOptions svo,
int  svo_mask = ~0 
)
virtual

Change viewing options (some of them may not influe the behaviour)

void ZtSeismicView::set_per_trace_proc ( ZPerTraceProc  zptp,
void *  pUserData 
)

Set new per trace procedure or NULL or reset it.

float ZtSeismicView::time_p2n ( int  ptime) const

placement (coordinate) axis

Member Data Documentation

ZtColoredMatrix ZtSeismicView::colmat
protected

Colored map object for ZsvMapCoding drawing mode.

float ZtSeismicView::fGlobalAmax
protected

Precalculated global maximum amplitude in the whole profile. Negative value means undefined.

int ZtSeismicView::half_height
protected

Last used pixel height of the trace or 0 before first drawing

ZSVOptions ZtSeismicView::options
protected

Viewing options for seismic drawing

ZPerTraceProc ZtSeismicView::per_trace_proc
protected

Per trace procedure for implementing useful actions while scanning trace set in drawing.

void* ZtSeismicView::per_trace_proc_data
protected

External data passed to per trace procedure.

ZPCoordSlave ZtSeismicView::px_ext
protected

External horizontal bounds of trace box for user-friendly zoom area and amplitudes.

ZPCoordSlave ZtSeismicView::py_ext
protected

External vertical bounds of trace box for user-friendly zoom area and amplitudes.

ZSeismicStream* ZtSeismicView::seismic
protected

Access to seismic data is provided by given object


The documentation for this class was generated from the following file: