373 extern int rviewCheckInitCspace(
rviewBaseType baseType,
colourspaceMapper **csmap,
r_Ref<r_GMarray> &mddObj,
bool fullRange=
FALSE,
r_Minterval *domain=NULL,
int w=0,
int *newPitch=NULL,
int *newDepth=NULL,
int *newPad=NULL,
int *virtualPitch=NULL,
const struct colourspace_params_s *cp=NULL);
376 extern long asctol(
const char *str);
377 extern int asctoi(
const char *str);
378 extern double asctof(
const char *str);
379 extern long stringtol(
const char *str,
char **endptr=NULL);
380 extern double stringtof(
const char *str,
char **endptr=NULL);
401 const char *
ptr(
void)
const;
402 operator const char*(void)
const;
409 static const char emptyString[];
424 int push(
const T &item);
426 int peek(T &item)
const;
486 rviewFrame(wxFrame *parent,
char *title,
int x,
int y,
int w,
int h);
498 virtual void label(
void) = 0;
506 virtual int process(wxObject &obj, wxEvent &evt) = 0;
550 int checkobj_rec(wxWindow *whence, wxObject &obj);
607 rviewMultiline(wxPanel *Panel,
const char *Message,
int X,
int Y,
int W,
int H,
int Lines);
613 void rebuild(
const char *Message,
int W);
621 void setupVariables(wxPanel *Panel,
int X,
int Y,
int H,
int Lines);
634 #include <wx/univ/textctrl.h>
640 rviewText(wxPanel *parent,
const char *value=NULL,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1);
641 rviewText(
long style, wxPanel *parent,
const char *value=NULL,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1);
642 rviewText(wxPanel *parent,
const DynamicString &value,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1);
643 rviewText(wxPanel *parent,
int value,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1);
644 rviewText(wxPanel *parent,
long value,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1);
645 rviewText(wxPanel *parent,
double value,
bool sciForm=
FALSE,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1);
667 rviewButton(wxPanel *parent,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1,
long style=0);
675 rviewChoice(wxPanel *parent,
int n,
char *choices[],
char *label=
"X",
int x=-1,
int y=-1,
int w=-1,
int h=-1,
long style=0);
677 rviewChoice(wxPanel *parent,
int n,
const char *choices[],
char *label=
"X",
int x=-1,
int y=-1,
int w=-1,
int h=-1,
long style=0);
684 rviewCheckBox(wxPanel *parent,
char *label=
"",
int x=-1,
int y=-1,
int w=-1,
int h=-1);
691 rviewRadioButton(wxPanel *parent,
char *label=
"",
bool value=
FALSE,
int x=-1,
int y=-1,
int w=-1,
int h=-1);
698 rviewScrollBar(wxPanel *parent,
int x=-1,
int y=-1,
int w=-1,
int h=-1,
long style=wxHORIZONTAL);
705 rviewSlider(wxPanel *parent,
int value,
int min_val,
int max_val,
int width,
char *label=
"",
int x=-1,
int y=-1,
long style=wxHORIZONTAL);
730 virtual void SetLabel(
const char *label);
732 virtual void OnEvent(wxMouseEvent &mevt);
737 void getBarParams(
float &posx,
float &posy,
float &height);
739 void redrawCore(
float x,
float y,
float bheight);
741 void updateWell(
float oldx,
float newx,
float posy,
float bheight);
775 rviewDialog(
const char *title,
const char *message,
int buttonNo,
const char *buttons[]);
777 void OnSize(
int w,
int h);
783 int process(wxObject &obj, wxEvent &evt);
828 rviewErrorbox(
const char *title,
const char *message,
int buttonNo,
const char *buttons[]);
837 static rviewErrorbox *
newErrorbox(
const char *title,
const char *message,
int buttonNo,
const char *buttons[],
const char *classname=NULL,
const char *funcname=NULL);
838 static int reportError(
const char *message,
const char *classname=NULL,
const char *funcname=NULL);
839 static int reportError(
const char *title,
const char *message,
int buttonNo,
const char *buttons[],
const char *classname=NULL,
const char *funcname=NULL);
843 static char *buildErrorMessage(
const char *message,
const char *classname,
const char *funcname);
860 int process(wxObject &obj, wxEvent &evt);
884 int process(wxObject &obj, wxEvent &evt);
887 void OnSize(
int w,
int h);
963 int process(wxObject &obj, wxEvent &evt);
965 void OnSize(
int w,
int h);
1008 int process(wxObject &obj, wxEvent &evt);
1009 void OnSize(
int w,
int h);
1012 void addItem(
const char *
string);
1056 #if (defined(EARLY_TEMPLATE) && defined(__EXECUTABLE__))
1057 #include "rviewUtils.cpp"
virtual rviewFrameType getFrameType(void) const
long stringtol(const char *str, char **endptr=NULL)
char * collType
Definition: rviewUtils.hh:309
static const int about_border
Definition: rviewUtils.hh:975
Definition: rviewUtils.hh:279
static const int dialog_width
Definition: rviewUtils.hh:790
Definition: rviewUtils.hh:852
double stringtof(const char *str, char **endptr=NULL)
static const int strset_reserve
Definition: rviewUtils.hh:1025
virtual void OnPaint(void)
Definition: rviewUtils.hh:461
virtual const char * getFrameName(void) const
Definition: rviewUtils.hh:276
void OnSize(int w, int h)
Definition: rviewUtils.hh:416
Definition: rviewUtils.hh:280
rviewMultiline(wxPanel *Panel, int X, int Y, int H, int Lines)
int process(wxObject &obj, wxEvent &evt)
Definition: rviewUtils.hh:445
wxColour foreground
Definition: rviewUtils.hh:743
void setCollection(collection_desc *collection)
Definition: rviewUtils.hh:471
unsigned int max
Definition: rviewUtils.hh:434
virtual rviewFrameType getFrameType(void) const
Definition: rviewUtils.hh:457
static const int result_bheight
Definition: rviewUtils.hh:913
void setParent(rviewFrame *parent)
virtual rviewFrameType getFrameType(void) const
int frameHeight
Definition: rviewUtils.hh:543
int border
Definition: rviewUtils.hh:752
Definition: rviewUtils.hh:563
int getMessageHeight(void) const
Definition: rviewUtils.hh:281
wxListBox * list
Definition: rviewUtils.hh:940
virtual const char * getFrameName(void) const
int value
Definition: rviewUtils.hh:753
int16Row max
Definition: int16.hh:200
int ident
Definition: rviewUtils.hh:326
Definition: rviewUtils.hh:1000
rviewFrame * logicalParent
Definition: rviewUtils.hh:757
Definition: rviewUtils.hh:468
rviewSpecialSlider(rviewFrame *logParent, wxPanel *parent, int val, int min, int max, int width=-1, const char *label=NULL)
struct keyword_to_ident_c keyword_to_ident_c
void openViewer(int item)
void * data
Definition: rviewUtils.hh:320
Definition: rviewUtils.hh:306
Definition: rviewUtils.hh:449
int barheight
Definition: rviewUtils.hh:752
virtual const char * getFrameName(void) const
int process(wxObject &obj, wxEvent &evt)
void setDeleteMode(bool delChild)
long asctol(const char *str)
wxPanel * panel
Definition: rviewUtils.hh:989
static const int dflt_barwidth
Definition: rviewUtils.hh:761
static const int dialog_lheight
Definition: rviewUtils.hh:802
static const int result_bwidth
Definition: rviewUtils.hh:912
int vmin
Definition: rviewUtils.hh:753
Definition: rviewUtils.hh:277
static const int strset_height
Definition: rviewUtils.hh:1021
Definition: raslib/type.hh:56
void getBarParams(float &posx, float &posy, float &height)
int userEvent(const user_event &ue)
static const int strset_border
Definition: rviewUtils.hh:1023
static const int dialog_buttonsy
Definition: rviewUtils.hh:796
rviewText * resampText
Definition: rviewUtils.hh:942
rviewText(wxPanel *parent, const char *value=NULL, char *label="", int x=-1, int y=-1, int w=-1, int h=-1)
wxMessage * collType
Definition: rviewUtils.hh:937
DynamicStack(unsigned int gran=8)
char ** strObjs
Definition: rviewUtils.hh:313
void rebuild(const char *Message, int W)
static const int result_cwidth
Definition: rviewUtils.hh:907
rviewSlider(wxPanel *parent, int value, int min_val, int max_val, int width, char *label="", int x=-1, int y=-1, long style=wxHORIZONTAL)
struct collection_desc collection_desc
virtual const char * getFrameName(void) const
int frameWidth
Definition: rviewUtils.hh:543
void OnSize(int w, int h)
wxColour background
Definition: rviewUtils.hh:742
rviewChoice(wxPanel *parent, int n, char *choices[], char *label="X", int x=-1, int y=-1, int w=-1, int h=-1, long style=0)
static const int dialog_bheight
Definition: rviewUtils.hh:798
unsigned char lowerCaseTable[256]
int broadcastQuit(int level)
int calcNewValue(float posx, float posy, int &val, bool checky=FALSE)
Definition: rviewUtils.hh:482
static const int result_theight
Definition: rviewUtils.hh:910
static const int dialog_height
Definition: rviewUtils.hh:791
int process(wxObject &obj, wxEvent &evt)
Definition: rviewUtils.hh:450
int ident
Definition: rviewUtils.hh:333
static const int dflt_height
Definition: rviewUtils.hh:759
wxPen outlinePen
Definition: rviewUtils.hh:750
char * collName
Definition: rviewUtils.hh:308
struct user_event user_event
unsigned int number
Definition: rviewUtils.hh:434
Definition: rviewUtils.hh:460
rviewButton * dismiss
Definition: rviewUtils.hh:1037
static const int multiline_ppc10
Definition: rviewUtils.hh:616
static const int result_border
Definition: rviewUtils.hh:901
wxBrush bwell
Definition: rviewUtils.hh:749
wxColour outline
Definition: rviewUtils.hh:745
int vmax
Definition: rviewUtils.hh:753
Definition: rviewUtils.hh:874
int checkobj(wxObject &obj)
rviewCheckBox(wxPanel *parent, char *label="", int x=-1, int y=-1, int w=-1, int h=-1)
wxMessage * collType
Definition: rviewUtils.hh:1038
int parseResampleString(const char *resStr, double *values)
#define FALSE
Definition: defs.h:70
rviewUserEvent
Definition: rviewUtils.hh:274
wxPanel * parent
Definition: rviewUtils.hh:623
void rviewQuicksortStrings(char *array[], int from, int to)
void getWellVert(int &y0, int &y1)
Definition: rviewUtils.hh:463
frame_list * next
Definition: rviewUtils.hh:293
Definition: rviewUtils.hh:636
static const int strset_mheight
Definition: rviewUtils.hh:1030
static const int about_mheight
Definition: rviewUtils.hh:982
int broadcastUserEvent(const user_event &ue)
rviewFrameMgr * frameManager
int cbfactor
Definition: rviewUtils.hh:934
rviewChoice * scaleMode
Definition: rviewUtils.hh:943
char ** buttonText
Definition: rviewUtils.hh:808
rviewFrameMgr * frames
Definition: rviewUtils.hh:541
Definition: rviewUtils.hh:671
int numlines
Definition: rviewUtils.hh:992
struct mdd_frame mdd_frame
rviewUserEvent type
Definition: rviewUtils.hh:319
~rviewSpecialSlider(void)
Definition: rviewUtils.hh:717
static const int result_twidth
Definition: rviewUtils.hh:909
Definition: rviewUtils.hh:453
Definition: rviewUtils.hh:701
int resampleSelection(void)
Definition: rviewColMap.hh:193
int updateSelection(void)
Definition: rviewUtils.hh:470
void addItem(const char *string)
virtual rviewFrameType getFrameType(void) const
static const int dialog_lines
Definition: rviewUtils.hh:800
void registerFrame(rviewFrame *client)
char * collInfo
Definition: rviewUtils.hh:310
wxMessage * collInfo
Definition: rviewUtils.hh:937
Definition: rviewUtils.hh:466
virtual rviewFrameType getFrameType(void) const
float texty
Definition: rviewUtils.hh:755
r_Ref< r_GMarray > mdd
Definition: rviewUtils.hh:299
frame_list * tailList
Definition: rviewUtils.hh:589
Definition: rviewUtils.hh:454
rviewDialog(const char *title, const char *message, int buttonNo, const char *buttons[])
rviewChoice * choice
Definition: rviewUtils.hh:938
bool operator==(const DynamicString &ds) const
int lHeight
Definition: rviewUtils.hh:626
Definition: rviewUtils.hh:473
bool deleteChildren
Definition: rviewUtils.hh:591
void rviewInitCharacterTables(void)
void updateWell(float oldx, float newx, float posy, float bheight)
void deregisterFrame(rviewFrame *client)
int y
Definition: rviewUtils.hh:626
wxColour wellground
Definition: rviewUtils.hh:744
Definition: rviewUtils.hh:462
char * mddDescriptorString(std::ostream &memstr, int number)
T * stack
Definition: rviewUtils.hh:435
Definition: rviewUtils.hh:284
Definition: rviewUtils.hh:452
Definition: rviewUtils.hh:469
int rviewCheckInitCspace(rviewBaseType baseType, colourspaceMapper **csmap, r_Ref< r_GMarray > &mddObj, bool fullRange=FALSE, r_Minterval *domain=NULL, int w=0, int *newPitch=NULL, int *newDepth=NULL, int *newPad=NULL, int *virtualPitch=NULL, const struct colourspace_params_s *cp=NULL)
static const int dialog_buttonsx
Definition: rviewUtils.hh:795
Definition: rviewUtils.hh:290
rviewFrameType
Definition: rviewUtils.hh:443
void operationPrologue(void)
static const int dflt_barheight
Definition: rviewUtils.hh:762
virtual ~rviewFrame(void)
void redrawCore(float x, float y, float bheight)
Definition: rviewUtils.hh:278
bool PositionInWell(float posx, float posy)
void setupVariables(wxPanel *Panel, int X, int Y, int H, int Lines)
int rviewLookupKeyword(const char *key, const keyword_to_ident_c *kti, int tabsize, bool caseSensitive)
void rviewEventHandler(wxObject &obj, wxEvent &evt)
rviewFrame * parentFrame
Definition: rviewUtils.hh:542
static const int result_x
Definition: rviewUtils.hh:895
virtual rviewFrameType getFrameType(void) const
Definition: rviewUtils.hh:459
Definition: rviewUtils.hh:324
struct frame_list frame_list
Definition: rviewUtils.hh:458
wxMessage * collName
Definition: rviewUtils.hh:1038
char * getItem(int number)
rviewFrame(wxFrame *parent, char *title, int x, int y, int w, int h)
int number
Definition: rviewUtils.hh:311
static const int result_height
Definition: rviewUtils.hh:899
rviewErrorbox(const char *message)
Definition: rviewUtils.hh:283
Definition: rviewUtils.hh:955
wxFont labelFont
Definition: rviewUtils.hh:751
rviewButton ** but
Definition: rviewUtils.hh:811
rviewProgress(const char *message)
int cheight
Definition: rviewUtils.hh:754
collection_desc * coll
Definition: rviewUtils.hh:930
void convertSelectedItems(void)
Definition: rviewUtils.hh:317
int process(wxObject &obj, wxEvent &evt)
int x
Definition: rviewUtils.hh:626
int process(wxObject &obj, wxEvent &evt)
Definition: rviewUtils.hh:386
virtual void label(void)=0
void rviewDeleteCollection(collection_desc *coll)
wxMessage ** labels
Definition: rviewUtils.hh:991
Definition: rviewUtils.hh:771
unsigned int granularity
Definition: rviewUtils.hh:434
void OnSize(int w, int h)
char * selectedItems
Definition: rviewUtils.hh:932
struct keyword_to_ident keyword_to_ident
wxColour labelColour
Definition: rviewUtils.hh:746
rviewStringSet(collection_desc *desc)
void registerChild(rviewFrame *child)
rviewBaseType
Definition: rviewUtils.hh:97
static const int result_lheight
Definition: rviewUtils.hh:903
Definition: rviewUtils.hh:602
static const int strset_bheight
Definition: rviewUtils.hh:1028
virtual int requestQuit(int level)
Definition: rviewTypeMan.hh:49
static const int about_bwidth
Definition: rviewUtils.hh:979
virtual ~rviewDialog(void)
int16Row min
Definition: int16.hh:200
void operationEpilogue(const char *opname)
DynamicString & first(const char *str, unsigned int num)
Definition: rviewUtils.hh:464
Definition: rviewUtils.hh:822
DynamicString & operator=(const DynamicString &ds)
DynamicString myLabel
Definition: rviewUtils.hh:756
void getUpdateInterval(float oldx, float newx, float &clipx, float &clipw)
virtual void OnEvent(wxMouseEvent &mevt)
Definition: rviewUtils.hh:331
Definition: rviewUtils.hh:448
static const int dialog_border
Definition: rviewUtils.hh:793
virtual void SetLabel(const char *label)
const char * ptr(void) const
Definition: rviewUtils.hh:465
Definition: rviewUtils.hh:447
int lines
Definition: rviewUtils.hh:625
void OnSize(int w, int h)
wxMessage * collInfo
Definition: rviewUtils.hh:1038
Definition: rviewColMap.hh:54
wxMenuBar * mBar
Definition: rviewUtils.hh:941
static const int about_bheight
Definition: rviewUtils.hh:980
virtual const char * getFrameName(void) const
wxBrush bfore
Definition: rviewUtils.hh:748
void OnMenuCommand(int id)
mdd_frame * mddObjs
Definition: rviewUtils.hh:312
Definition: rviewUtils.hh:456
void SetValue(char *value)
int buttonNumber
Definition: rviewUtils.hh:812
Definition: labelManager.hh:51
int listLength
Definition: rviewUtils.hh:590
virtual bool OnClose(void)
const char * keyword
Definition: rviewUtils.hh:334
Definition: rviewUtils.hh:282
Definition: rviewUtils.hh:467
wxPanel * panel
Definition: rviewUtils.hh:807
int cwidth
Definition: rviewUtils.hh:754
virtual const char * getFrameName(void) const
static const int result_header
Definition: rviewUtils.hh:905
Definition: rviewUtils.hh:285
wxGroupBox * group
Definition: rviewUtils.hh:936
void deregisterChild(rviewFrame *child)
rviewBaseType rviewGetBasetype(r_Object *obj)
rviewTypeMan * typeManager
Definition: rviewUtils.hh:946
static const int dflt_border
Definition: rviewUtils.hh:760
static const int about_pheight
Definition: rviewUtils.hh:977
Definition: rviewUtils.hh:451
static const int about_height
Definition: rviewUtils.hh:973
int numberOfFrames(void) const
Definition: rviewUtils.hh:455
int lastSelected
Definition: rviewUtils.hh:933
static const int strset_bwidth
Definition: rviewUtils.hh:1027
Definition: rviewUtils.hh:472
virtual int process(wxObject &obj, wxEvent &evt)=0
virtual int userEvent(const user_event &ue)
Definition: rviewUtils.hh:297
Definition: rviewUtils.hh:680
float textx
Definition: rviewUtils.hh:755
Definition: rviewUtils.hh:446
wxMessageOutput ** msg
Definition: rviewUtils.hh:624
virtual const char * getFrameName(void) const
static const int strset_width
Definition: rviewUtils.hh:1020
char * keyword
Definition: rviewUtils.hh:327
frame_list * frameList
Definition: rviewUtils.hh:588
int asctoi(const char *str)
static const int result_width
Definition: rviewUtils.hh:898
wxBrush bback
Definition: rviewUtils.hh:747
wxMessage * collName
Definition: rviewUtils.hh:937
double asctof(const char *str)
virtual rviewFrameType getFrameType(void) const
unsigned int getNumber(void) const
int buttonPressed
Definition: rviewUtils.hh:813
static int reportError(const char *message, const char *classname=NULL, const char *funcname=NULL)
wxListBox * list
Definition: rviewUtils.hh:1036
rviewButton * resampBut
Definition: rviewUtils.hh:944
void broadcastEvent(wxObject &obj, wxEvent &evt)
static const int about_width
Definition: rviewUtils.hh:972
rviewButton * okBut
Definition: rviewUtils.hh:990
static const int result_y
Definition: rviewUtils.hh:896
wxPanel * panel
Definition: rviewUtils.hh:939
int rviewPrintTypedCell(const r_Type *baseType, char *buffer, char *data, int numberBase)
void SetRange(int min, int max)
Definition: minterval.hh:249
int rviewParseProjection(const r_Minterval &interv, r_Point &pt1, r_Point &pt2, const char *projString, unsigned int *freeDims=NULL, r_Point *mapIndex=NULL)
rviewMultiline * msg
Definition: rviewUtils.hh:810
void setupVariables(void)
rviewFrame * frame
Definition: rviewUtils.hh:292
virtual void childMouseEvent(wxWindow *child, wxMouseEvent &mevt)
int barwidth
Definition: rviewUtils.hh:752
static rviewErrorbox * newErrorbox(const char *message, const char *classname=NULL, const char *funcname=NULL)
static const int dflt_width
Definition: rviewUtils.hh:758
unsigned int flags
Definition: rviewUtils.hh:300
wxPanel * panel
Definition: rviewUtils.hh:1035