Changeset 1370 for trunk/packages/vizservers/nanovis/NvParticleRenderer.h
- Timestamp:
- Mar 28, 2009, 3:50:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/NvParticleRenderer.h
r1333 r1370 42 42 Particle(float _x, float _y, float _z, float _life) : 43 43 x(_x), y(_y), z(_z), aux(_life){} 44 };45 46 struct ParticleInitSlice {47 int slice_id;48 int slice_axis;49 float slice_pos;50 bool enabled;51 44 }; 52 45 … … 97 90 NvParticleAdvectionShader* _advectionShader; 98 91 99 std::vector<ParticleInitSlice> _initSliceArray;100 101 92 /** 102 93 * @brief scale of flow data … … 108 99 bool _activate; 109 100 101 float _slice_pos; 102 int _slice_axis; 103 Vector4 _color; 104 105 110 106 public: 111 107 int psys_width; //the storage of particles is implemented as a 2D array. … … 115 111 ~NvParticleRenderer(); 116 112 void setVectorField(unsigned int texID, const Vector3& ori, float scaleX, float scaleY, float scaleZ, float max); 117 void initialize( Particle* data);113 void initialize(); 118 114 void advect(); 119 115 void update_vertex_buffer(); … … 126 122 bool isActivated() const; 127 123 124 void setAxis(int axis); 125 void setColor(const Vector4& color); 126 void setPos(float pos); 127 128 128 void draw_bounding_box(float x0, float y0, float z0, float x1, float y1, float z1, float r, float g, float b, float line_width); 129 void initializeDataArray(); 129 130 }; 130 131 … … 144 145 } 145 146 147 inline void NvParticleRenderer::setColor(const Vector4& color) 148 { 149 _color = color; 150 } 146 151 #endif
Note: See TracChangeset
for help on using the changeset viewer.