📄 topography.h
字号:
#ifndef __topography_h__#define __topography_h__#include <object.h>class Topography : public TclObject {public: Topography() { maxX = maxY = grid_resolution = 0.0; grid = 0; } double lowerX() { return 0.0; } double upperX() { return maxX * grid_resolution; } double lowerY() { return 0.0; } double upperY() { return maxY * grid_resolution; } double resol() { return grid_resolution; } double height(double x, double y);private: virtual int command(int argc, const char*const* argv); int load_flatgrid(int x, int y, int res = 1); int load_demfile(const char *fname); double maxX; double maxY; double grid_resolution; int* grid;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -