00001 #include "vuSphLfFlt_XYZ_Axis.h"
00002
00003 template <int SIZE, class TYPE>
00004 vuSphLfFlt_XYZ_Axis<SIZE,TYPE>::vuSphLfFlt_XYZ_Axis(const vuString& filterName)
00005 : vuSphericFilter<SIZE,TYPE>(filterName)
00006 {
00007 }
00008
00009 template <int S, class T> void vuSphLfFlt_XYZ_Axis<S,T>::
00010 calcFilteredViews(vuSphericView<S,T>**& views,dword& count)
00011 {
00012 CHECKNDELETE(views);
00013
00014 dword *idxList = NULL;
00015 count = 3;
00016
00017 views = new vuSphericView<S,T>*[count];
00018 if (!getNearestViews(idxList, count, vuVector(0,0,1))) return;
00019 views[0] = m_volume->getView(idxList[0]);
00020 CHECKNDELETE(idxList);
00021
00022 if (!getNearestViews(idxList, count, vuVector(0,1,0))) return;
00023 views[1] = m_volume->getView(idxList[0]);
00024 CHECKNDELETE(idxList);
00025
00026 if (!getNearestViews(idxList, count, vuVector(1,0,0))) return;
00027 views[2] = m_volume->getView(idxList[0]);
00028 CHECKNDELETE(idxList);
00029 }