18 #ifndef __itkVideoStream_h
19 #define __itkVideoStream_h
40 template<
class TFrameType>
72 itkStaticConstMacro(FrameDimension,
unsigned int, FrameType::ImageDimension);
73 static unsigned int GetFrameDimension()
75 return FrameType::ImageDimension;
85 void SetMinimumBufferSize(
SizeValueType minimumNumberOfFrames);
93 void InitializeEmptyFrames();
98 return reinterpret_cast<BufferType*
>(m_DataObjectBuffer.GetPointer() );
102 return reinterpret_cast<BufferType*
>(m_DataObjectBuffer.GetPointer() );
107 void SetFrameBuffer(BufferType* buffer);
112 return m_LargestPossibleSpatialRegionCache;
116 m_LargestPossibleSpatialRegionCache = map;
122 return m_RequestedSpatialRegionCache;
126 m_RequestedSpatialRegionCache = map;
131 return m_BufferedSpatialRegionCache;
135 m_BufferedSpatialRegionCache = map;
140 return m_SpacingCache;
144 m_SpacingCache = map;
149 return m_OriginCache;
158 return m_DirectionCache;
162 m_DirectionCache = map;
166 void SetFrame(
SizeValueType frameNumber, FramePointer frame);
177 void SetFrameLargestPossibleSpatialRegion(
SizeValueType frameNumber,
178 SpatialRegionType region);
180 const SpatialRegionType &
181 GetFrameLargestPossibleSpatialRegion(
SizeValueType frameNumber)
const;
184 void SetFrameRequestedSpatialRegion(
SizeValueType frameNumber,
185 SpatialRegionType region);
187 const SpatialRegionType &
188 GetFrameRequestedSpatialRegion(
SizeValueType frameNumber)
const;
191 void SetFrameBufferedSpatialRegion(
SizeValueType frameNumber,
192 SpatialRegionType region);
194 const SpatialRegionType &
195 GetFrameBufferedSpatialRegion(
SizeValueType frameNumber)
const;
198 void SetFrameSpacing(
SizeValueType frameNumber, SpacingType spacing);
200 const SpacingType & GetFrameSpacing(
SizeValueType frameNumber)
const;
203 void SetFrameOrigin(
SizeValueType frameNumber, PointType origin);
205 const PointType & GetFrameOrigin(
SizeValueType frameNumber)
const;
208 void SetFrameDirection(
SizeValueType frameNumber, DirectionType direction);
210 const DirectionType & GetFrameDirection(
SizeValueType frameNumber)
const;
215 void SetAllLargestPossibleSpatialRegions(SpatialRegionType region);
220 void SetAllRequestedSpatialRegions(SpatialRegionType region);
225 void SetAllBufferedSpatialRegions(SpatialRegionType region);
230 void SetAllFramesSpacing(SpacingType spacing);
235 void SetAllFramesOrigin(PointType origin);
240 void SetAllFramesDirection(DirectionType direction);
289 virtual void PrintSelf(std::ostream & os,
Indent indent)
const
291 Superclass::Print(os, indent);
309 void operator=(
const Self &);
316 #include "itkVideoStream.hxx"