Changeset 6183


Ignore:
Timestamp:
Mar 22, 2016 11:07:59 PM (7 years ago)
Author:
ldelgass
Message:

merge r5966:5968 from trunk

Location:
vtkvis/branches/1.8
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • vtkvis/branches/1.8

  • vtkvis/branches/1.8/Math.h

    r3744 r6183  
    8080    f *= 2;
    8181
    82     mat[0][0] = xx*f + s;
    83     mat[1][0] = (xy + wz)*f;
    84     mat[2][0] = (xz - wy)*f;
    85 
    86     mat[0][1] = (xy - wz)*f;
    87     mat[1][1] = yy*f + s;
    88     mat[2][1] = (yz + wx)*f;
    89 
    90     mat[0][2] = (xz + wy)*f;
    91     mat[1][2] = (yz - wx)*f;
    92     mat[2][2] = zz*f + s;
     82    mat.SetElement(0, 0, xx*f + s);
     83    mat.SetElement(1, 0, (xy + wz)*f);
     84    mat.SetElement(2, 0, (xz - wy)*f);
     85
     86    mat.SetElement(0, 1, (xy - wz)*f);
     87    mat.SetElement(1, 1, yy*f + s);
     88    mat.SetElement(2, 1, (yz + wx)*f);
     89
     90    mat.SetElement(0, 2, (xz + wy)*f);
     91    mat.SetElement(1, 2, (yz - wx)*f);
     92    mat.SetElement(2, 2, zz*f + s);
    9393}
    9494
     
    121121    f *= 2;
    122122
    123     mat[0][0] = xx*f + s;
    124     mat[0][1] = (xy + wz)*f;
    125     mat[0][2] = (xz - wy)*f;
    126 
    127     mat[1][0] = (xy - wz)*f;
    128     mat[1][1] = yy*f + s;
    129     mat[1][2] = (yz + wx)*f;
    130 
    131     mat[2][0] = (xz + wy)*f;
    132     mat[2][1] = (yz - wx)*f;
    133     mat[2][2] = zz*f + s;
     123    mat.SetElement(0, 0, xx*f + s);
     124    mat.SetElement(0, 1, (xy + wz)*f);
     125    mat.SetElement(0, 2, (xz - wy)*f);
     126
     127    mat.SetElement(1, 0, (xy - wz)*f);
     128    mat.SetElement(1, 1, yy*f + s);
     129    mat.SetElement(1, 2, (yz + wx)*f);
     130
     131    mat.SetElement(2, 0, (xz + wy)*f);
     132    mat.SetElement(2, 1, (yz - wx)*f);
     133    mat.SetElement(2, 2, zz*f + s);
    134134}
    135135
  • vtkvis/branches/1.8/Renderer.cpp

    r6180 r6183  
    25442544    double d = camera->GetDistance();
    25452545    double vu[3];
    2546     vu[0] = mat[1][0];
    2547     vu[1] = mat[1][1];
    2548     vu[2] = mat[1][2];
     2546    vu[0] = mat.GetElement(1, 0);
     2547    vu[1] = mat.GetElement(1, 1);
     2548    vu[2] = mat.GetElement(1, 2);
    25492549    double trans[3];
    2550     trans[0] = mat[0][3];
    2551     trans[1] = mat[1][3];
    2552     trans[2] = mat[2][3];
    2553     mat[0][3] = 0;
    2554     mat[1][3] = 0;
    2555     mat[2][3] = 0;
    2556     double vpn[3] = {mat[2][0], mat[2][1], mat[2][2]};
     2550    trans[0] = mat.GetElement(0, 3);
     2551    trans[1] = mat.GetElement(1, 3);
     2552    trans[2] = mat.GetElement(2, 3);
     2553    mat.SetElement(0, 3, 0.0);
     2554    mat.SetElement(1, 3, 0.0);
     2555    mat.SetElement(2, 3, 0.0);
     2556    double vpn[3] = {mat.GetElement(2, 0), mat.GetElement(2, 1), mat.GetElement(2, 2)};
    25572557    double pos[3];
    25582558    // With translation removed, we have an orthogonal matrix,
  • vtkvis/branches/1.8/Volume.cpp

    r5836 r6183  
    1414#include <vtkVolumeProperty.h>
    1515#include <vtkGPUVolumeRayCastMapper.h>
     16#ifndef USE_GPU_RAYCAST_MAPPER
    1617#include <vtkVolumeTextureMapper3D.h>
     18#endif
    1719#include <vtkRectilinearGrid.h>
    1820#include <vtkStructuredGrid.h>
Note: See TracChangeset for help on using the changeset viewer.