34 EventNone = 0, UpdateRequest, UpdateFull, UpdateStep,
35 EventScaleVecUpSm, EventScaleVecDownSm, EventScaleVecUp, EventScaleVecDown,
36 EventNextRealDisplayMode, EventScaleRealUp, EventScaleRealDown, EventScaleRealUpSm, EventScaleRealDownSm, EventChangePlane,
37 EventSetPlane, EventSetDim, EventNextInt, EventNextReal, EventNextVec, EventNextVecDisplayMode,
38 EventNextMesh, EventMeshMode, EventToggleGridDisplay, EventScaleMeshUp, EventScaleMeshDown, EventMeshColorMode,
39 EventNextSystem, EventToggleParticles, EventNextParticleDisplayMode, EventToggleBackgroundMesh, EventSetMax,
40 EventScalePdataDown, EventScalePdataUp };
43 enum RealDisplayModes { RealDispOff=0, RealDispStd, RealDispLevelset, RealDispShadeVol, RealDispShadeSurf, NumRealDispModes };
44 enum VecDisplayModes { VecDispOff=0, VecDispCentered, VecDispStaggered, VecDispUv, NumVecDispModes };
46 Painter(QWidget* par = 0) : QObject(par) {}
49 virtual std::string clickLine(
const Vec3& p0,
const Vec3& p1) {
return ""; }
50 virtual void attachWidget(QLayout* layout) {}
52 void setViewport(
const Vec3i& gridsize);
55 virtual void paint() = 0;
56 virtual void doEvent(
int e,
int param=0) = 0;
66 void doEvent(
int e,
int param=0);
70 virtual std::string getID() = 0;
71 virtual void update() = 0;
72 virtual void processKeyEvent(PainterEvent e,
int param) = 0;
87 void attachWidget(QLayout* layout);
88 Grid<T>** getGridPtr() {
return &mLocalGrid; }
89 int getPlane() {
return mPlane; }
90 int getDim() {
return mDim; }
91 int getMax() {
return mMax; }
92 virtual std::string clickLine(
const Vec3& p0,
const Vec3& p1);
97 void setScale(Real v);
99 void setDispMode(
int dm);
102 void processKeyEvent(PainterEvent e,
int param);
103 void processSpecificKeyEvent(PainterEvent e,
int param);
bool mHide
info string
Definition: painter.h:111
Definition: commonkernels.h:22
FlagGrid ** mFlags
currently selected grid
Definition: painter.h:109
Basic inlined vector class.
Definition: vectorbase.h:71
RealDisplayModes
display modes, note - 0=off,1=std are shared for real & vec grids! same semantics ...
Definition: painter.h:43
Base clas for all painters that require access to a locked PbClass.
Definition: painter.h:61
Painter object for int,Real,Vec3 grids.
Definition: painter.h:81
Base class for all painter.
Definition: painter.h:30
bool mHideLocal
hide all grids?
Definition: painter.h:112
int mDim
stats
Definition: painter.h:107
std::map< std::pair< void *, int >, Real > mValScale
display modes , for each object
Definition: painter.h:114
QLabel * mInfo
flag grid (can influence display of selected grid)
Definition: painter.h:110
std::map< void *, int > mDispMode
hide only this type?
Definition: painter.h:113