📄 cogenvoxmap.hxx
字号:
#ifndef cogenvoxmap_hxx#define cogenvoxmap_hxx#ifndef cogenoctree_hxx#include "cogenoctree.hxx"#endif#include "wzvoxmap.hxx"/* Using a 3d pixmap for geometry descriptionThis file can be used also as a pattern to define your own geometrydescriptions*/class CogenVoxmap :public CogenOctree ,public wzByteVoxmap{ cogFloat xm,xp,dx; cogFloat ym,yp,dy; cogFloat zm,zp,dz; // wzFloat a,mod; wzIndex dirx,diry,dirz;public: CogenVoxmap(int lx, int ly, int lz); CogenVoxmap(const wzGrayScaleVoxmap& tmap, const wzGrayScaleTable& table); // void alignMinimum(wzFloat xm=0); // void alignCenter (wzFloat xc=0); // void alignMaximum(wzFloat xp=0); void setXRange(wzFloat xm, wzFloat xp); void setYRange(wzFloat ym, wzFloat yp); void setZRange(wzFloat zm, wzFloat zp); // internal: virtual cogeometry geometry() const {return (Cogeometry*) (CogenVoxmap*) this;} virtual cogenerator generator() const {return (CogenOctree*) (CogenVoxmap*) this;} wzByteVoxmap& pixmap() const {return *(wzByteVoxmap*)(CogenVoxmap*) this;} virtual cogIndex Point(cogPoint& p0) const; // wzBoolean cutPixelCorner; virtual void endInitialization();};typedef wzProxy<CogenVoxmap> cogenVoxmap;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -