 |
VTK
9.0.1
|
Go to the documentation of this file.
20 #ifndef vtkBlockSortHelper_h
21 #define vtkBlockSortHelper_h
48 double camWorldPos[4];
55 InverseVolumeMatrix->DeepCopy(volMatrix);
56 InverseVolumeMatrix->Invert();
57 InverseVolumeMatrix->MultiplyPoint(camWorldPos, this->CameraPosition);
92 center[0] = bounds[0] + std::abs(bounds[1] - bounds[0]) / 2.0;
93 center[1] = bounds[2] + std::abs(bounds[3] - bounds[2]) / 2.0;
94 center[2] = bounds[4] + std::abs(bounds[5] - bounds[4]) / 2.0;
102 return CompareByDistanceDescending(first, second);
113 return CompareByDistanceDescending(firstIm, secondIm);
117 #endif // vtkBlockSortHelper_h
Abstract class for a volume mapper.
operator() for back-to-front sorting.
vtkCamera * GetActiveCamera()
Get the current camera.
topologically and geometrically regular array of data
represent and manipulate 4x4 transformation matrices
a virtual camera for 3D rendering
BackToFront(vtkRenderer *ren, vtkMatrix4x4 *volMatrix)
virtual double * GetPosition()
abstract specification for renderers
Collection of comparison functions for std::sort.
double * GetBounds()
Return a pointer to the geometry bounding box in the form (xmin,xmax, ymin,ymax, zmin,...
bool CompareByDistanceDescending(vtkImageData *first, vtkImageData *second)
Compares distances from images (first, second) to the camera position.
static float Distance2BetweenPoints(const float p1[3], const float p2[3])
Compute distance squared between two points p1 and p2.
void ComputeCenter(double const *bounds, double *center)
bool operator()(T *first, T *second)
virtual vtkImageData * GetInput()