📄 cogenpixmap.hxx
字号:
#ifndef cogenpixmap_hxx
#define cogenpixmap_hxx
#ifndef cogenoctree_hxx
#include "cogenoctree.hxx"
#endif
#include "wzpixmap.hxx"
/*
Using a pixmap for geometry description
This file can be used also as a pattern to define your own geometry
descriptions 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 class
CogeometryRec. This class contains a pure virtual method RegionOfPoint and
other virtual methods. To create a geometry you have to define the derived
class, to implement the pure virtual method RegionOfPoint and at least one
constructor. You can also implement other versions of the other virtual
functions.
*/
class CogenPixmap
:public CogenOctree
{
cogFloat xm,xp,dx;
cogFloat ym,yp,dy;
public:
virtual cogIndex Point(cogPoint& p0) const;
virtual cogeometry geometry() const
{return (Cogeometry*) (CogenPixmap*) this;}
wzColorTablePixmap pixmap;
wzBoolean cutPixelCorner;
CogenPixmap(cogName f, int maxcolors);
void fitColorList(int length, wzColor *colors, int* regions)
{pixmap.fitColorList(length,colors,regions);}
virtual void endInitialization();
void printColors(){pixmap.print();}
};
typedef wzProxy<CogenPixmap> cogenPixmap;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -