Ignore:
Timestamp:
Mar 13, 2013, 9:57:03 AM (12 years ago)
Author:
ldelgass
Message:

Fix camera reset for nanovis. Includes refactoring of vector/matrix classes
in nanovis to consolidate into vrmath library. Also add preliminary canonical
view control to clients for testing.

File:
1 edited

Legend:

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

    r3177 r3492  
    1919#include <GL/glew.h>
    2020
     21#include <vrmath/Vector3f.h>
     22#include <vrmath/Vector4f.h>
     23
    2124#include "NvParticleAdvectionShader.h"
    2225#include "RenderVertexArray.h"
    23 #include "Vector3.h"
    24 #include "Vector4.h"
    2526
    2627struct Particle {
     
    4546    ~NvParticleRenderer();
    4647
    47     void setVectorField(unsigned int texID, const Vector3& origin,
     48    void setVectorField(unsigned int texID, const vrmath::Vector3f& origin,
    4849                        float scaleX, float scaleY, float scaleZ, float max);
    4950
     
    6869    }
    6970
    70     void setColor(const Vector4& color)
     71    void setColor(const vrmath::Vector4f& color)
    7172    {
    7273        _color = color;
     
    118119
    119120    /// scale of flow data
    120     Vector3 _scale;
     121    vrmath::Vector3f _scale;
    121122
    122     Vector3 _origin;
     123    vrmath::Vector3f _origin;
    123124
    124125    bool _activate;
     
    127128    int _sliceAxis;
    128129
    129     Vector4 _color;
     130    vrmath::Vector4f _color;
    130131
    131132    //the storage of particles is implemented as a 2D array.
Note: See TracChangeset for help on using the changeset viewer.