Ignore:
Timestamp:
Mar 16, 2009, 2:05:56 PM (16 years ago)
Author:
vrinside
Message:

adding a function to specify multiple planes to initialize particle positions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/NvParticleRenderer.h

    r1331 r1333  
    2929#include "Vector3.h"
    3030
     31#include <vector>
     32
    3133#include "NvParticleAdvectionShader.h"
    3234
     
    4244};
    4345
     46struct ParticleInitSlice {
     47  int slice_id;
     48  int slice_axis;
     49  float slice_pos;
     50  bool enabled;
     51};
    4452
    4553class NvParticleRenderer : public Renderable {
     
    8997    NvParticleAdvectionShader* _advectionShader;
    9098
     99    std::vector<ParticleInitSlice> _initSliceArray;
     100
    91101    /**
    92102     * @brief scale of flow data
     
    97107
    98108    bool _activate;
     109
    99110public:
    100111    int psys_width;     //the storage of particles is implemented as a 2D array.
     
    114125    void deactivate();
    115126    bool isActivated() const;
     127
     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);
    116129};
    117130
Note: See TracChangeset for help on using the changeset viewer.