Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuSphericFilter< SIZE, TYPE > Class Template Reference

#include <vuSphericFilter.h>

Inheritance diagram for vuSphericFilter< SIZE, TYPE >:

Inheritance graph
[legend]
Collaboration diagram for vuSphericFilter< SIZE, TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuSphericFilter ()
 vuSphericFilter (const vuString &filterName)
 vuSphericFilter (const vuSphericFilter< SIZE, TYPE > &other)
virtual ~vuSphericFilter ()
void setVolume (vu1611< SIZE, TYPE > *volume)
 Sets the volume, on which the filter is applied.
vu1611< SIZE, TYPE > * getVolume ()
 Returns the volume.
virtual void calcFilteredViews (vuSphericView< SIZE, TYPE > **&views, dword &count)=0
 filters the views This method holds the functionality of the filter.
void applyFilteredViews (vuSphericViewFilter< SIZE, TYPE > *viewFilter)
 this function should be used to apply the filtered views to the according viewFilter
bool operator== (const vuSphericFilter< SIZE, TYPE > &other)
bool operator!= (const vuSphericFilter< SIZE, TYPE > &other)

Static Public Member Functions

bool getNearestViews (dword *&idxList, dword &count, vuVector lookFrom, dword numOfViews, vuSphericView< SIZE, TYPE > *&views)
bool getNearestViews (dword *&idxList, dword &count, vuVector lookFrom, dword numOfViews, vuSphericView< SIZE, TYPE > **views)

Protected Member Functions

void log (const char *msg)
bool getNearestViews (dword *&idxList, dword &count)
 computes the &count nearest views, according to the camera
bool getNearestViews (dword *&idxList, dword &count, vuVector lookFrom)

Protected Attributes

vu1611< SIZE, TYPE > * m_volume
 The volume, on which the filter is applied.

template<int SIZE, class TYPE>
class vuSphericFilter< SIZE, TYPE >


Constructor & Destructor Documentation

template<int S, class T>
vuSphericFilter< S, T >::vuSphericFilter  ) 
 

Definition at line 24 of file vuSphericFilter.cpp.

References vuSphericFilter< SIZE, TYPE >::m_volume.

template<int S, class T>
vuSphericFilter< S, T >::vuSphericFilter const vuString filterName  ) 
 

Definition at line 30 of file vuSphericFilter.cpp.

References vuSphericFilter< SIZE, TYPE >::m_volume.

template<int S, class T>
vuSphericFilter< S, T >::vuSphericFilter const vuSphericFilter< SIZE, TYPE > &  other  ) 
 

Definition at line 37 of file vuSphericFilter.cpp.

References vuSphericFilter< SIZE, TYPE >::m_volume.

template<int S, class T>
vuSphericFilter< S, T >::~vuSphericFilter  )  [virtual]
 

Definition at line 45 of file vuSphericFilter.cpp.


Member Function Documentation

template<int S, class T>
void vuSphericFilter< S, T >::applyFilteredViews vuSphericViewFilter< SIZE, TYPE > *  viewFilter  ) 
 

this function should be used to apply the filtered views to the according viewFilter

Definition at line 68 of file vuSphericFilter.cpp.

References vuSphericFilter< SIZE, TYPE >::calcFilteredViews(), CHECKNDELETE, dword, vuSphericViewFilter< SIZE, TYPE >::setNumberOfViews(), and vuSphericViewFilter< SIZE, TYPE >::setView().

Here is the call graph for this function:

template<int SIZE, class TYPE>
virtual void vuSphericFilter< SIZE, TYPE >::calcFilteredViews vuSphericView< SIZE, TYPE > **&  views,
dword count
[pure virtual]
 

filters the views This method holds the functionality of the filter.

It has to be implemented by subclasses.

Referenced by vuSphericFilter< SIZE, TYPE >::applyFilteredViews().

template<int S, class T>
bool vuSphericFilter< S, T >::getNearestViews dword *&  idxList,
dword count,
vuVector  lookFrom,
dword  numOfViews,
vuSphericView< SIZE, TYPE > **  views
[static]
 

Definition at line 181 of file vuSphericFilter.cpp.

References vuVector::dot, dot(), dword, vuSphericView< SIZE, TYPE >::getLookFrom(), and vuVector::makeUnit().

Here is the call graph for this function:

template<int S, class T>
bool vuSphericFilter< S, T >::getNearestViews dword *&  idxList,
dword count,
vuVector  lookFrom,
dword  numOfViews,
vuSphericView< SIZE, TYPE > *&  views
[static]
 

Definition at line 118 of file vuSphericFilter.cpp.

References vuVector::dot, dot(), dword, vuSphericView< SIZE, TYPE >::getLookFrom(), and vuVector::makeUnit().

Here is the call graph for this function:

template<int S, class T>
bool vuSphericFilter< S, T >::getNearestViews dword *&  idxList,
dword count,
vuVector  lookFrom
[protected]
 

Definition at line 105 of file vuSphericFilter.cpp.

References vuSphericFilter< SIZE, TYPE >::getNearestViews(), vuSphericFilter< SIZE, TYPE >::log(), and vuSphericFilter< SIZE, TYPE >::m_volume.

Here is the call graph for this function:

template<int S, class T>
bool vuSphericFilter< S, T >::getNearestViews dword *&  idxList,
dword count
[protected]
 

computes the &count nearest views, according to the camera

Note:
returns a 'newed' index list with length &count

&count might be changed!!!

Definition at line 83 of file vuSphericFilter.cpp.

References vuCamera::getLookAtVector(), vuSphericFilter< SIZE, TYPE >::log(), vuSphericFilter< SIZE, TYPE >::m_volume, and vuVector::makeUnit().

Referenced by vuSphLfFlt_Z_Axis< SIZE, TYPE >::calcFilteredViews(), vuSphLfFlt_XZ_Axis< SIZE, TYPE >::calcFilteredViews(), vuSphLfFlt_XYZ_Axis< SIZE, TYPE >::calcFilteredViews(), vuSphLfFlt_Triangle< SIZE, TYPE >::calcFilteredViews(), vuSphLfFlt_Nearest< SIZE, TYPE >::calcFilteredViews(), vuSphLfFlt_Line< SIZE, TYPE >::calcFilteredViews(), vuSphLfFlt_BestMatch< SIZE, TYPE >::calcFilteredViews(), vuSphericFilter< SIZE, TYPE >::getNearestViews(), vuSphericInteractive< SIZE, TYPE >::indexOfNearestView(), vuSimpleFBR< SIZE, TYPE >::OnButtonSnap2View(), vuSphLfFlt_Line< SIZE, TYPE >::preview(), and vuSphLfFlt_BestMatch< SIZE, TYPE >::preview().

Here is the call graph for this function:

template<int S, class T>
vu1611< S, T > * vuSphericFilter< S, T >::getVolume  ) 
 

Returns the volume.

Definition at line 56 of file vuSphericFilter.cpp.

template<int S, class T>
void vuSphericFilter< S, T >::log const char *  msg  )  [protected]
 

Definition at line 62 of file vuSphericFilter.cpp.

Referenced by vuSphLfFlt_BestMatch< SIZE, TYPE >::calcFilteredViews(), and vuSphericFilter< SIZE, TYPE >::getNearestViews().

template<int S, class T>
bool vuSphericFilter< S, T >::operator!= const vuSphericFilter< SIZE, TYPE > &  other  ) 
 

Definition at line 251 of file vuSphericFilter.cpp.

References vuSphericFilter< SIZE, TYPE >::operator==().

Here is the call graph for this function:

template<int S, class T>
bool vuSphericFilter< S, T >::operator== const vuSphericFilter< SIZE, TYPE > &  other  ) 
 

Definition at line 244 of file vuSphericFilter.cpp.

Referenced by vuSphericFilter< SIZE, TYPE >::operator!=().

template<int S, class T>
void vuSphericFilter< S, T >::setVolume vu1611< SIZE, TYPE > *  volume  ) 
 

Sets the volume, on which the filter is applied.

Definition at line 50 of file vuSphericFilter.cpp.

References vuSphericFilter< SIZE, TYPE >::m_volume.

Referenced by vu1611_2< SIZE, TYPE >::setFilter().


Member Data Documentation

template<int SIZE, class TYPE>
vu1611<SIZE,TYPE>* vuSphericFilter< SIZE, TYPE >::m_volume [protected]
 

The volume, on which the filter is applied.

Definition at line 54 of file vuSphericFilter.h.

Referenced by vuSphericFilter< SIZE, TYPE >::getNearestViews(), vuSphericFilter< SIZE, TYPE >::setVolume(), and vuSphericFilter< SIZE, TYPE >::vuSphericFilter().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:22:04 2004 for vuVolume by  doxygen 1.3.9.1