VTK
9.0.2
|
operator() for back-to-front sorting. More...
#include <vtkBlockSortHelper.h>
Public Member Functions | |
BackToFront (vtkRenderer *ren, vtkMatrix4x4 *volMatrix) | |
bool | operator() (T *first, T *second) |
bool | CompareByDistanceDescending (vtkImageData *first, vtkImageData *second) |
Compares distances from images (first, second) to the camera position. More... | |
void | ComputeCenter (double const *bounds, double *center) |
bool | operator() (vtkImageData *first, vtkImageData *second) |
bool | operator() (vtkVolumeMapper *first, vtkVolumeMapper *second) |
Public Attributes | |
double | CameraPosition [4] |
operator() for back-to-front sorting.
Definition at line 40 of file vtkBlockSortHelper.h.
|
inline |
Definition at line 45 of file vtkBlockSortHelper.h.
bool vtkBlockSortHelper::BackToFront< T >::operator() | ( | T * | first, |
T * | second | ||
) |
|
inline |
Compares distances from images (first, second) to the camera position.
Returns true if the distance of first is greater than the distance of second (descending order according to the std::sort convention).
Note this does not provide the correct rendering order all the time. To get the correct rendering order (if there is one) you need a more complex algorithm.
Definition at line 73 of file vtkBlockSortHelper.h.
|
inline |
Definition at line 90 of file vtkBlockSortHelper.h.
|
inline |
Definition at line 100 of file vtkBlockSortHelper.h.
|
inline |
Definition at line 107 of file vtkBlockSortHelper.h.
double vtkBlockSortHelper::BackToFront< T >::CameraPosition[4] |
Definition at line 42 of file vtkBlockSortHelper.h.