21 #ifndef __vtkStreamingVolumeCodec_h 22 #define __vtkStreamingVolumeCodec_h 30 #include <vtkImageData.h> 31 #include <vtkObject.h> 32 #include <vtkUnsignedCharArray.h> 37 #ifndef vtkCodecNewMacro 38 #define vtkCodecNewMacro(newClass) \ 39 vtkStandardNewMacro(newClass); \ 40 vtkStreamingVolumeCodec* newClass::CreateCodecInstance() \ 42 return newClass::New(); \ 51 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
55 virtual std::string GetFourCC() = 0;
73 virtual bool EncodeImageData(vtkImageData* inputImageData,
vtkStreamingVolumeFrame* outputStreamingFrame,
bool forceKeyFrame=
false);
78 virtual void SetParametersFromString(std::string parameterString);
83 virtual std::string GetParametersAsString();
87 ParameterModifiedEvent = 18003
96 virtual std::string GetParameterDescription(std::string parameterName) = 0;
102 virtual bool SetParameter(std::string parameterName, std::string parameterValue);
108 virtual bool GetParameter(std::string parameterName, std::string& parameterValue);
112 virtual void SetParameters(std::map<std::string, std::string> parameters);
115 std::vector<std::string> GetParameterPresetNames()
const;
120 std::string GetParameterPresetValue(
const std::string& presetName)
const;
125 std::string GetParameterPresetName(
const std::string& presetValue)
const;
146 virtual bool SetParametersFromPresetValue(
const std::string& presetValue);
151 vtkGetMacro(DefaultParameterPresetValue, std::string);
159 virtual bool UpdateParameterInternal(std::string parameterName, std::string parameterValue) = 0;
167 virtual bool DecodeFrameInternal(
vtkStreamingVolumeFrame* inputFrame, vtkImageData* outputImageData,
bool saveDecodedImage =
true) = 0;
175 virtual bool EncodeImageDataInternal(vtkImageData* inputImageData,
vtkStreamingVolumeFrame* outputFrame,
bool forceKeyFrame) = 0;
std::vector< ParameterPreset > ParameterPresets
VTK object containing a single compressed frame.
std::string DefaultParameterPresetValue
#define vtkGetStdVectorMacro(name, type)
VTK object for representing a volume compression codec (normally a video compression codec) ...
std::map< std::string, std::string > Parameters
vtkSmartPointer< vtkStreamingVolumeFrame > LastDecodedFrame
std::vector< std::string > AvailiableParameterNames
int GetNumberOfParameterPresets() const
Get the number of parameter presets.