diff --git a/Libs/MRML/Core/Testing/vtkMRMLStreamingVolumeNodeTest1.cxx b/Libs/MRML/Core/Testing/vtkMRMLStreamingVolumeNodeTest1.cxx index bcdfcfc37297a6692e04526aba0fb7b49a2a4148..8c42949b71165354baccae380bfbdca63a41810e 100644 --- a/Libs/MRML/Core/Testing/vtkMRMLStreamingVolumeNodeTest1.cxx +++ b/Libs/MRML/Core/Testing/vtkMRMLStreamingVolumeNodeTest1.cxx @@ -20,11 +20,14 @@ Care Ontario. // MRML includes #include "vtkMRMLCoreTestingMacros.h" +#include "vtkMRMLScene.h" #include "vtkMRMLStreamingVolumeNode.h" int vtkMRMLStreamingVolumeNodeTest1(int , char * [] ) { vtkNew node1; + vtkNew scene; + scene->AddNode(node1); EXERCISE_ALL_BASIC_MRML_METHODS(node1.GetPointer()); int width = 10; diff --git a/Libs/MRML/Core/vtkMRMLStreamingVolumeNode.cxx b/Libs/MRML/Core/vtkMRMLStreamingVolumeNode.cxx index 93284279e81824aa7e5395b33dbcb4be08136462..eb56eb03f68ba8cf6548bdc341c4fa86b1b59e18 100644 --- a/Libs/MRML/Core/vtkMRMLStreamingVolumeNode.cxx +++ b/Libs/MRML/Core/vtkMRMLStreamingVolumeNode.cxx @@ -155,7 +155,7 @@ vtkStreamingVolumeCodec* vtkMRMLStreamingVolumeNode::GetCodec() (this->Codec && this->Codec->GetFourCC() != this->GetCodecFourCC())) { - this->Codec = vtkStreamingVolumeCodecFactory::GetInstance()->CreateCodecByFourCC(this->GetCodecFourCC()); + this->Codec = vtkSmartPointer::Take(vtkStreamingVolumeCodecFactory::GetInstance()->CreateCodecByFourCC(this->GetCodecFourCC())); } return this->Codec; } diff --git a/Libs/vtkAddon/vtkRawRGBVolumeCodec.h b/Libs/vtkAddon/vtkRawRGBVolumeCodec.h index 7dad34bc1963bb1b8c7a52a2ceb1be1267f94772..a7cab25b31b8f27f0b646b1823146d69a8068aaa 100644 --- a/Libs/vtkAddon/vtkRawRGBVolumeCodec.h +++ b/Libs/vtkAddon/vtkRawRGBVolumeCodec.h @@ -51,6 +51,10 @@ protected: /// There are no parameters to update within this codec virtual bool UpdateParameterInternal(std::string vtkNotUsed(parameterValue), std::string vtkNotUsed(parameterName)) { return false; }; + /// Return the codec parameter description + /// There are no parameters to update within this codec + virtual std::string GetParameterDescription(std::string vtkNotUsed(parameterName)) { return ""; }; + private: vtkRawRGBVolumeCodec(const vtkRawRGBVolumeCodec&); void operator=(const vtkRawRGBVolumeCodec&); diff --git a/Libs/vtkAddon/vtkStreamingVolumeCodec.h b/Libs/vtkAddon/vtkStreamingVolumeCodec.h index 4f581f3063aaee74cb52936215463034a3909284..b32aeeef5a0c91ab25bb7ce4e85cdb93b1998f78 100644 --- a/Libs/vtkAddon/vtkStreamingVolumeCodec.h +++ b/Libs/vtkAddon/vtkStreamingVolumeCodec.h @@ -93,7 +93,7 @@ public: /// Get parameter description as a string /// \param parameterName String containing the name of the parameter /// Returns the description of the parameter as a string, and returns an empty string if the parameter name is invalid - virtual std::string GetParameterDescription(std::string parameterName) { return ""; }; + virtual std::string GetParameterDescription(std::string parameterName) = 0; /// Set a parameter for the codec /// \param parameterName String containing the name of the parameter