90 class thumbCanvas:
public wxCanvas
94 thumbCanvas(rviewThumb *par,
int x,
int y,
int width,
int height);
98 void updateDisplay(
void);
112 class rviewThumb:
public rviewFrame
119 int addMDD(r_Ref<r_GMarray> &newMdd);
120 int deleteMDD(r_Ref<r_GMarray> &obsMdd);
121 void setLayout(
int width,
int npl);
122 void newThumbWidth(
int newWidth);
125 int process(wxObject &obj, wxEvent &evt);
126 virtual const char *getFrameName(
void)
const;
127 virtual rviewFrameType getFrameType(
void)
const;
129 void OnSize(
int w,
int h);
130 void OnMenuCommand(
int id);
132 int userEvent(
const user_event &ue);
135 wxPixmap *getPixmapNumber(
int no,
char *caption);
136 void getThumbInfo(
int &num,
int &npl);
137 void getGridInfo(
int &gx,
int &gy);
141 static const int thumb_width;
142 static const int thumb_height;
144 static const int thumb_imgwidth;
146 static const int thumb_perline;
148 static const int thumb_space;
150 static const int thumb_border;
152 static const int thumb_scrstep;
153 static const int thumb_pgstep;
155 static const int thumb_chkwidth;
156 static const int thumb_chkheight;
158 static const int thumb_minwidth;
159 static const int thumb_maxwidth;
161 static const int thumb_mincols;
162 static const int thumb_maxcols;
164 static const int thumb_cheight;
166 static const int thumb_twidth;
167 static const int thumb_theight;
169 static const int thumb_prjwidth;
174 void deletePixmapChain(rviewThumbList *tlst);
175 int pixmapsFromMDD(rviewThumbList *tlst);
176 wxPixmap *buildThumbnail(r_Ref<r_GMarray> &mddObj, rviewBaseType baseType,
int dimproject,
int projval);
177 void updateCanvasSize(
void);
178 void rebuildThumbnails(
bool fromScratch);
179 void initForObject(r_Ref<r_GMarray> &mddObj);
180 int parseProjection(r_Ref<r_GMarray> &mddObj);
181 void configureCspace(
bool mode);
183 char projString[STRINGSIZE];
184 r_Point pt1, pt2, mapIndex;
185 int thumbs, thumbsperline, numPixmaps;
193 unsigned int freeDims;
194 rviewThumbList *listHead;
198 rviewText *thumbWidth;
199 rviewText *thumbCols;
201 rviewText *thumbProj, *thumbStep;
203 colourspaceMapper *csmap;
205 bool doFullRangeCspace;