Changeset 5406 for nanovis/branches
- Timestamp:
- May 4, 2015, 4:31:25 AM (9 years ago)
- Location:
- nanovis/branches/1.2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/branches/1.2/Volume.cpp
r4904 r5406 31 31 double Volume::valueMax = 1.0; 32 32 33 Volume::Volume(float x, float y, float z, 34 int width, int height, int depth, 33 Volume::Volume(int width, int height, int depth, 35 34 int numComponents, float *data, 36 35 double vmin, double vmax, double nonZeroMin) : … … 51 50 _cutplanesVisible(true), 52 51 _tex(NULL), 53 _position( x, y, z),52 _position(0, 0, 0), 54 53 _scale(1, 1, 1), 55 54 _numSlices(512), -
nanovis/branches/1.2/Volume.h
r4904 r5406 58 58 * each axis. Sample spacing may differ between X, Y and Z 59 59 * 60 * \param x X location61 * \param y Y location62 * \param z Z location63 60 * \param width Number of samples in X 64 61 * \param height Number of samples in Y … … 70 67 * \param nonZeroMin Scalar minimum which is greater than zero 71 68 */ 72 Volume(float x, float y, float z, 73 int width, int height, int depth, 69 Volume(int width, int height, int depth, 74 70 int numComponents, 75 71 float *data, -
nanovis/branches/1.2/VolumeInterpolator.cpp
r4908 r5406 136 136 _numComponents = volume->numComponents(); 137 137 _numBytes = _dataCount * _numComponents * sizeof(float); 138 Vector3f pos = volume->getPosition(); 139 _volume = new Volume(pos.x, pos.y, pos.z, 140 volume->width(), 138 _volume = new Volume(volume->width(), 141 139 volume->height(), 142 140 volume->depth(), -
nanovis/branches/1.2/ZincBlendeReconstructor.cpp
r4904 r5406 260 260 cellSize.z = 0.25 / depth; 261 261 262 zincBlendeVolume = new ZincBlendeVolume(origin.x, origin.y, origin.z, 263 width, height, depth, 4, 262 zincBlendeVolume = new ZincBlendeVolume(width, height, depth, 4, 264 263 fourAnionVolume, fourCationVolume, 265 264 vmin, vmax, nzero_min, cellSize); 265 266 zincBlendeVolume->xAxis.setRange(origin.x, origin.x + delta.x * (width-1)); 267 zincBlendeVolume->yAxis.setRange(origin.y, origin.y + delta.y * (height-1)); 268 zincBlendeVolume->zAxis.setRange(origin.z, origin.z + delta.z * (depth-1)); 266 269 267 270 return zincBlendeVolume; … … 338 341 cellSize.z = 0.25 / depth; 339 342 340 zincBlendeVolume = new ZincBlendeVolume(origin.x, origin.y, origin.z, 341 width, height, depth, 4, 343 zincBlendeVolume = new ZincBlendeVolume(width, height, depth, 4, 342 344 fourAnionVolume, fourCationVolume, 343 345 vmin, vmax, nzero_min, cellSize); 346 347 zincBlendeVolume->xAxis.setRange(origin.x, origin.x + delta.x * (width-1)); 348 zincBlendeVolume->yAxis.setRange(origin.y, origin.y + delta.y * (height-1)); 349 zincBlendeVolume->zAxis.setRange(origin.z, origin.z + delta.z * (depth-1)); 344 350 345 351 return zincBlendeVolume; -
nanovis/branches/1.2/ZincBlendeVolume.cpp
r4904 r5406 24 24 using namespace vrmath; 25 25 26 ZincBlendeVolume::ZincBlendeVolume(float x, float y, float z, 27 int width, int height, int depth, 26 ZincBlendeVolume::ZincBlendeVolume(int width, int height, int depth, 28 27 int numComponents, 29 28 float *dataVolumeA, float *dataVolumeB, 30 29 double vmin, double vmax, double nonZeroMin, 31 30 const Vector3f& cellSz) : 32 Volume( x, y, z,width, height, depth, numComponents, dataVolumeA, vmin, vmax, nonZeroMin),31 Volume(width, height, depth, numComponents, dataVolumeA, vmin, vmax, nonZeroMin), 33 32 cellSize(cellSz) 34 33 { -
nanovis/branches/1.2/ZincBlendeVolume.h
r4923 r5406 21 21 { 22 22 public: 23 ZincBlendeVolume(float x, float y, float z, 24 int width, int height, int depth, int numComponents, 23 ZincBlendeVolume(int width, int height, int depth, int numComponents, 25 24 float *dataVolumeA, float *dataVolumeB, 26 25 double vmin, double vmax, double nonZeroMin, -
nanovis/branches/1.2/nanovis.cpp
r5405 r5406 255 255 } 256 256 257 Volume *volume = new Volume(0.f, 0.f, 0.f, 258 width, height, depth, 257 Volume *volume = new Volume(width, height, depth, 259 258 numComponents, 260 259 data, vmin, vmax, nonZeroMin);
Note: See TracChangeset
for help on using the changeset viewer.