mantaflow  0.10
A framework for fluid simulation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Manta::ParticlePainter Class Reference

Painter object for Particle Systems. More...

#include <particlepainter.h>

Inheritance diagram for Manta::ParticlePainter:
Manta::LockedObjPainter Manta::Painter

Public Types

enum  PaintModes { PaintOff =0, PaintVel =1, PaintPos =2 }
 
- Public Types inherited from Manta::Painter
enum  PainterEvent {
  EventNone = 0, UpdateRequest, UpdateFull, UpdateStep,
  EventScaleVecUpSm, EventScaleVecDownSm, EventScaleVecUp, EventScaleVecDown,
  EventNextRealDisplayMode, EventScaleRealUp, EventScaleRealDown, EventScaleRealUpSm,
  EventScaleRealDownSm, EventChangePlane, EventSetPlane, EventSetDim,
  EventNextInt, EventNextReal, EventNextVec, EventNextVecDisplayMode,
  EventNextMesh, EventMeshMode, EventToggleGridDisplay, EventScaleMeshUp,
  EventScaleMeshDown, EventMeshColorMode, EventNextSystem, EventToggleParticles,
  EventNextParticleDisplayMode, EventToggleBackgroundMesh, EventSetMax, EventScalePdataDown,
  EventScalePdataUp
}
 
enum  RealDisplayModes {
  RealDispOff =0, RealDispStd, RealDispLevelset, RealDispShadeVol,
  RealDispShadeSurf, NumRealDispModes
}
 display modes, note - 0=off,1=std are shared for real & vec grids! same semantics
 
enum  VecDisplayModes {
  VecDispOff =0, VecDispCentered, VecDispStaggered, VecDispUv,
  NumVecDispModes
}
 

Public Member Functions

 ParticlePainter (GridPainter< int > *gridRef, QWidget *par=0)
 
void paint ()
 
void attachWidget (QLayout *layout)
 
- Public Member Functions inherited from Manta::LockedObjPainter
 LockedObjPainter (QWidget *par=0)
 
void doEvent (int e, int param=0)
 
- Public Member Functions inherited from Manta::Painter
 Painter (QWidget *par=0)
 
virtual std::string clickLine (const Vec3 &p0, const Vec3 &p1)
 

Protected Member Functions

std::string getID ()
 
Real getScale ()
 
void update ()
 
void updateText ()
 
void processKeyEvent (PainterEvent e, int param)
 
void paintBasicSys ()
 
- Protected Member Functions inherited from Manta::LockedObjPainter
void nextObject ()
 

Protected Attributes

GridPainter< int > * mGridRef
 
ParticleBasemLocal
 
QLabel * mInfo
 
int mMode
 for standard particle systems, this is used to select the data channel (display is changed with displayMode below)
 
int mDisplayMode
 for BasicParticleSystem , change the way data channels are displayed
 
int mLastPdata
 
bool mHavePdata
 
Real mMaxVal
 
std::string mPdataInfo
 
std::map< PbClass *, Real > mValScale
 
- Protected Attributes inherited from Manta::LockedObjPainter
bool mRequestUpdate
 
PbClass * mObject
 
int mObjIndex
 

Additional Inherited Members

- Public Slots inherited from Manta::Painter
- Signals inherited from Manta::Painter
void setViewport (const Vec3i &gridsize)
 

Detailed Description

Painter object for Particle Systems.


The documentation for this class was generated from the following files: