⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cogenpixmap.hxx

📁 Delaunay三角形的网格剖分程序
💻 HXX
字号:
#ifndef cogenpixmap_hxx#define cogenpixmap_hxx#ifndef cogenoctree_hxx#include "cogenoctree.hxx"#endif#include "wzpixmap.hxx"/*		Using a pixmap for geometry descriptionThis file can be used also as a pattern to define your own geometrydescriptions is you want to use an own RegionOfPoint function.The implementation of a geometry is a C implementation of C++ schemes.Your geometry can be considerd as a derived class of the basic classCogeometryRec. This class contains a pure virtual method RegionOfPoint andother virtual methods. To create a geometry you have to define the derivedclass, to implement the pure virtual method RegionOfPoint and at least oneconstructor. You can also implement other versions of the other virtualfunctions.*/class CogenPixmap  :public CogenOctree{  cogFloat	xm,xp,dx;  cogFloat	ym,yp,dy;  wzFloat       a;  wzIndex       mod,dirx,diry;public:  CogenPixmap(cogName f, int maxcolors);  void alignMinimum(wzFloat xm=0);  void alignCenter (wzFloat xc=0);  void alignMaximum(wzFloat xp=0);  void setHorizontal(wzFloat xm, wzFloat xp);  void setVertical  (wzFloat ym, wzFloat yp);  void fitColorList(int length, wzColor *colors, int* regions)    {pixmap.fitColorList(length,colors,regions);}  void printColors(){pixmap.print();}  // internal:  virtual cogeometry	geometry() const    {return (Cogeometry*) (CogenPixmap*) this;}  virtual cogIndex Point(cogPoint& p0) const;  wzColorTablePixmap pixmap;  wzBoolean	cutPixelCorner;  virtual void endInitialization();};typedef wzProxy<CogenPixmap> cogenPixmap;#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -