27 #include <vtkSmartPointer.h>
59 float *hsv =
new float[3];
62 if (itIsoDoseLevel->GetVisibleColorWash())
64 cCalc->RGBToHSV(itIsoDoseLevel->GetColor()[0], itIsoDoseLevel->GetColor()[1], itIsoDoseLevel->GetColor()[2], &hsv[0], &hsv[1], &hsv[2]);
65 transferFunction->AddHSVPoint(itIsoDoseLevel->GetDoseValue()*referenceDose, hsv[0], hsv[1], hsv[2], 1.0, 1.0);
71 mitkTransFunc->SetColorTransferFunction(transferFunction);
72 mitkTransFuncProp->SetValue(mitkTransFunc);
73 node->
SetProperty(
"Image Rendering.Transfer Function", mitkTransFuncProp);
78 node->
SetProperty(
"Image Rendering.Mode", renderingModeProp);
itk::SmartPointer< Self > Pointer
static const std::string REFERENCE_DOSE_PROPERTY_NAME
static const std::string DOSE_FREE_ISO_VALUES_PROPERTY_NAME
static const std::string DOSE_ISO_LEVELS_PROPERTY_NAME
void SetFloatProperty(const char *propertyKey, float floatValue, const mitk::BaseRenderer *renderer=nullptr)
Convenience method for setting float properties (instances of FloatProperty)
void SetBoolProperty(const char *propertyKey, bool boolValue, const mitk::BaseRenderer *renderer=nullptr)
Convenience method for setting boolean properties (instances of BoolProperty)
IsoDoseLevelSet::Pointer MITKDICOMRT_EXPORT GeneratIsoLevels_Virtuos()
static const std::string DOSE_SHOW_COLORWASH_PROPERTY_NAME
void SetProperty(const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr)
Set the property (instance of BaseProperty) with key propertyKey in the PropertyList of the renderer ...
static const std::string DOSE_SHOW_ISOLINES_PROPERTY_NAME
double DoseValueAbs
Represents absolute dose values (in Gy).
void MITKDICOMRT_EXPORT ConfigureNodeAsDoseNode(mitk::DataNode *node, mitk::DoseValueAbs referenceDose)
Class for nodes of the DataTree.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.