Changeset 5701 for nanovis/branches/1.2
- Timestamp:
- Jun 16, 2015 12:37:36 PM (9 years ago)
- Location:
- nanovis/branches/1.2
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/branches/1.2/Flow.cpp
r5588 r5701 87 87 if (isDataLoaded()) { 88 88 BBox bbox; 89 _volume->get WorldSpaceBounds(bbox.min, bbox.max);89 _volume->getBounds(bbox.min, bbox.max); 90 90 allBounds.extend(bbox); 91 91 } … … 95 95 if ((!onlyVisible || box->visible()) && getVolume() != NULL) { 96 96 BBox bbox; 97 box->getWorldSpaceBounds(bbox.min, bbox.max, 98 getVolume()); 97 box->getBounds(bbox.min, bbox.max, getVolume()); 99 98 allBounds.extend(bbox); 100 99 } -
nanovis/branches/1.2/FlowBox.cpp
r4904 r5701 45 45 46 46 void 47 FlowBox::get WorldSpaceBounds(Vector3f& bboxMin,48 49 47 FlowBox::getBounds(Vector3f& bboxMin, 48 Vector3f& bboxMax, 49 const Volume *vol) const 50 50 { 51 51 bboxMin.set(FLT_MAX, FLT_MAX, FLT_MAX); -
nanovis/branches/1.2/FlowBox.h
r4893 r5701 63 63 } 64 64 65 void get WorldSpaceBounds(vrmath::Vector3f& min,66 67 65 void getBounds(vrmath::Vector3f& min, 66 vrmath::Vector3f& max, 67 const Volume *volume) const; 68 68 69 69 private: -
nanovis/branches/1.2/HeightMap.cpp
r5699 r5701 493 493 494 494 void 495 HeightMap::get WorldSpaceBounds(Vector3f& bboxMin,496 495 HeightMap::getBounds(Vector3f& bboxMin, 496 Vector3f& bboxMax) const 497 497 { 498 498 bboxMin.set(xAxis.min(), yAxis.min(), zAxis.min()); -
nanovis/branches/1.2/HeightMap.h
r5551 r5701 113 113 } 114 114 115 void get WorldSpaceBounds(vrmath::Vector3f& bboxMin, vrmath::Vector3f& bboxMax) const;115 void getBounds(vrmath::Vector3f& bboxMin, vrmath::Vector3f& bboxMax) const; 116 116 117 117 AxisRange xAxis, yAxis, zAxis, wAxis; -
nanovis/branches/1.2/Volume.cpp
r5588 r5701 101 101 } 102 102 103 void Volume::get WorldSpaceBounds(Vector3f& bboxMin, Vector3f& bboxMax) const103 void Volume::getBounds(Vector3f& bboxMin, Vector3f& bboxMax) const 104 104 { 105 105 Vector3f scale = getPhysicalScaling(); -
nanovis/branches/1.2/Volume.h
r5588 r5701 316 316 } 317 317 318 void get WorldSpaceBounds(vrmath::Vector3f& bboxMin,319 318 void getBounds(vrmath::Vector3f& bboxMin, 319 vrmath::Vector3f& bboxMax) const; 320 320 321 321 double sampleDistanceX() const -
nanovis/branches/1.2/VolumeRenderer.h
r4889 r5701 65 65 void deactivateVolumeShader(); 66 66 67 void drawBoundingBox(float x0, float y0, float z0,68 float x1, float y1, float z1,69 float r, float g, float b, float line_width);67 static void drawBoundingBox(float x0, float y0, float z0, 68 float x1, float y1, float z1, 69 float r, float g, float b, float line_width); 70 70 71 void getEyeSpaceBounds(const vrmath::Matrix4x4d& mv,72 double& xMin, double& xMax,73 double& yMin, double& yMax,74 double& zNear, double& zFar);71 static void getEyeSpaceBounds(const vrmath::Matrix4x4d& mv, 72 double& xMin, double& xMax, 73 double& yMin, double& yMax, 74 double& zNear, double& zFar); 75 75 76 76 VolumeInterpolator *_volumeInterpolator; -
nanovis/branches/1.2/nanovis.cpp
r5698 r5701 749 749 750 750 BBox bbox; 751 volume->get WorldSpaceBounds(bbox.min, bbox.max);751 volume->getBounds(bbox.min, bbox.max); 752 752 sceneBounds.extend(bbox); 753 753 } … … 761 761 762 762 BBox bbox; 763 heightMap->get WorldSpaceBounds(bbox.min, bbox.max);763 heightMap->getBounds(bbox.min, bbox.max); 764 764 sceneBounds.extend(bbox); 765 765 } … … 1013 1013 1014 1014 // Now render things in the scene 1015 1015 1016 orientationIndicator->setPosition(sceneBounds.getCenter()); 1016 1017 orientationIndicator->setScale(sceneBounds.getSize());
Note: See TracChangeset
for help on using the changeset viewer.