Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkStreamingVolumeFrame.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 __vtkStreamingVolumeFrame_h
22 #define __vtkStreamingVolumeFrame_h
23 
24 // VTK includes
25 #include <vtkObject.h>
26 #include <vtkUnsignedCharArray.h>
27 
28 // vtkAddon includes
29 #include "vtkAddon.h"
30 
32 class VTK_ADDON_EXPORT vtkStreamingVolumeFrame : public vtkObject
33 {
34 public:
35 
36  static vtkStreamingVolumeFrame* New();
37  vtkTypeMacro(vtkStreamingVolumeFrame, vtkObject);
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
42  enum
43  {
47  };
48 
50  vtkSetMacro(FrameType, int);
51  vtkGetMacro(FrameType, int);
52 
54  void SetFrameData(vtkUnsignedCharArray* frameData);
55  vtkUnsignedCharArray* GetFrameData() { return this->FrameData; };
56 
62  void SetPreviousFrame(vtkStreamingVolumeFrame* previousFrame);
63  vtkStreamingVolumeFrame* GetPreviousFrame() { return this->PreviousFrame; };
64 
66  vtkSetVector3Macro(Dimensions, int);
67  vtkGetVector3Macro(Dimensions, int);
68 
70  vtkSetMacro(NumberOfComponents, int);
71  vtkGetMacro(NumberOfComponents, int);
72 
74  vtkSetMacro(VTKScalarType, int);
75  vtkGetMacro(VTKScalarType, int);
76 
78  vtkSetMacro(CodecFourCC, std::string);
79  vtkGetMacro(CodecFourCC, std::string);
80 
82  bool IsKeyFrame() { return this->FrameType == IFrame; };
83 
84 protected:
85  int Dimensions[3];
86  std::string CodecFourCC;
87  vtkSmartPointer<vtkUnsignedCharArray> FrameData;
88  int FrameType;
90  vtkSmartPointer<vtkStreamingVolumeFrame> PreviousFrame;
92 
93 protected:
96 
97 private:
99  void operator=(const vtkStreamingVolumeFrame&);
100 
101 };
102 #endif
bool IsKeyFrame()
Returns true if the frame is a "Keyframe", aka "I-Frame".
VTK object containing a single compressed frame.
vtkUnsignedCharArray * GetFrameData()
Frame interpolated from previous frames.
Frame interpolated from previous and forward frames.
vtkStreamingVolumeFrame * GetPreviousFrame()
vtkSmartPointer< vtkStreamingVolumeFrame > PreviousFrame
vtkSmartPointer< vtkUnsignedCharArray > FrameData