21#ifndef __vtkSegmentationLabelmapSurfaceMapper_h
22#define __vtkSegmentationLabelmapSurfaceMapper_h
24#include "vtkSlicerSegmentationsModuleMRMLDisplayableManagerExport.h"
49 void PrintSelf(ostream& os, vtkIndent indent)
override;
57 void SetLabelColor(
int labelValue,
double r,
double g,
double b,
double opacity = 1.0);
128 bool IntersectWithRay(
const double p1[3],
const double p2[3],
double t1,
double t2, vtkMatrix4x4* toWorld,
double& t,
double xyz[3],
double n[3])
override;
134 void Render(vtkRenderer* ren, vtkActor* actor)
override;
136 using Superclass::GetBounds;
161 vtkInternal* Internal;
vtkMRMLRayCastMapper()=default
Image data containing orientation information.
Render a labelmap as smooth surfaces, computed on the GPU.
int GetShownLabelAtPosition(const double ijk[3], double maximumDistance=1.5)
void Render(vtkRenderer *ren, vtkActor *actor) override
static vtkSegmentationLabelmapSurfaceMapper * New()
void PrintSelf(ostream &os, vtkIndent indent) override
int NumberOfDistanceFieldComputations
vtkOrientedImageData * GetLabelmap()
double * GetBounds() VTK_SIZEHINT(6) override
vtkIdType MaximumNumberOfVoxels
int FillInputPortInformation(int port, vtkInformation *info) override
void RemoveAllLabelColors()
Remove all label colors (all labels are hidden).
void ReleaseGraphicsResources(vtkWindow *window) override
void SetLabelmap(vtkOrientedImageData *labelmap)
Labelmap to render. Geometry (spacing, directions) is taken into account when computing distances.
double ImageSampleDistance
bool IntersectWithRay(const double p1[3], const double p2[3], double t1, double t2, vtkMatrix4x4 *toWorld, double &t, double xyz[3], double n[3]) override
bool KeepWhereAnyClippingPlaneKeeps
vtkSegmentationLabelmapSurfaceMapper()
void SetLabelColor(int labelValue, double r, double g, double b, double opacity=1.0)