Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkRawRGBVolumeCodec.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4 Queen's University, Kingston, ON, Canada. All Rights Reserved.
5 
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 
15 This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16 and was supported through CANARIE's Research Software Program, and Cancer
17 Care Ontario.
18 
19 ==============================================================================*/
20 
21 #ifndef __vtkRawRGBVolumeCodec_h
22 #define __vtkRawRGBVolumeCodec_h
23 
24 // vtkAddon includes
26 
28 class VTK_ADDON_EXPORT vtkRawRGBVolumeCodec : public vtkStreamingVolumeCodec
29 {
30 public:
31  static vtkRawRGBVolumeCodec *New();
32  virtual vtkStreamingVolumeCodec* CreateCodecInstance() VTK_OVERRIDE;
34 
35  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
36 
37  // FourCC code representing 24-bit RGB using 8 bits per color
38  virtual std::string GetFourCC() VTK_OVERRIDE { return "RV24"; };
39 
40 protected:
43 
45  virtual bool DecodeFrameInternal(vtkStreamingVolumeFrame* inputFrame, vtkImageData* outputImageData, bool saveDecodedImage = true) VTK_OVERRIDE;
46 
48  virtual bool EncodeImageDataInternal(vtkImageData* outputImageData, vtkStreamingVolumeFrame* inputFrame, bool forceKeyFrame) VTK_OVERRIDE;
49 
52  virtual bool UpdateParameterInternal(std::string vtkNotUsed(parameterValue), std::string vtkNotUsed(parameterName)) VTK_OVERRIDE { return false; };
53 
56  virtual std::string GetParameterDescription(std::string vtkNotUsed(parameterName)) { return ""; };
57 
58 private:
60  void operator=(const vtkRawRGBVolumeCodec&);
61 };
62 
63 #endif
virtual vtkStreamingVolumeCodec * CreateCodecInstance()=0
Creates an instance of the codec.
virtual std::string GetParameterDescription(std::string vtkNotUsed(parameterName))
VTK object containing a single compressed frame.
LRU Cache.
Codec for storing imagedata in an 24-bit RGB format (8-bit color depth, no compression) ...
VTK object for representing a volume compression codec (normally a video compression codec) ...
virtual bool DecodeFrameInternal(vtkStreamingVolumeFrame *inputFrame, vtkImageData *outputImageData, bool saveDecodedImage=true)=0
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual std::string GetFourCC() VTK_OVERRIDE