17 #ifndef __igstkVideoFrameRepresentation_h
18 #define __igstkVideoFrameRepresentation_h
26 class vtkImageMapToColors;
31 template <
class TV
ideoFrameSpatialObject >
41 typedef itk::ReceptorMemberCommand <
Self > LoadedObserverType;
44 typedef typename VideoFrameSpatialObjectType::
ConstPointer
85 vtkImageData *m_ImageData;
86 vtkImageActor *m_ImageActor;
87 vtkLookupTable *m_LookupTable;
88 vtkImageMapToColors *m_MapColors;
95 std::
string m_ScreenShotFileName;
98 virtual
void UpdateRepresentationProcessing();
105 void SetVideoFrameSpatialObjectProcessing();
109 void SetImage( const vtkImageData * image );
112 void ConnectVTKPipelineProcessing();
115 typename VTKImageObserver::
Pointer m_VTKImageObserver;
118 igstkDeclareInputMacro( ValidVideoFrameSpatialObject );
119 igstkDeclareInputMacro( NullVideoFrameSpatialObject );
120 igstkDeclareInputMacro( EmptyVideoFrameSpatialObject );
121 igstkDeclareInputMacro( ConnectVTKPipeline );
124 igstkDeclareStateMacro( NullVideoFrameSpatialObject );
125 igstkDeclareStateMacro( ValidVideoFrameSpatialObject );
130 #ifndef IGSTK_MANUAL_INSTANTIATION
131 #include "igstkVideoFrameRepresentation.txx"
134 #endif // __igstkVideoFrameRepresentation_h
void DeleteActors()
Overloaded function to delete actors.
igstkObserverMacro(VTKImage, VTKImageModifiedEvent, EventHelperType::VTKImagePointerType)
Observer macro that will received a event with an image as payload and will store it internally...
void CreateActors()
Create the VTK actors for displaying geometry.
#define igstkStandardTemplatedClassTraitsMacro(classname, superclassname)
Convenience macro for the traits of a templated class.
void SetWindowLevel(double window, double level)
Set the Window Level for the representation.
void SaveScreenShot(const std::string &filename)
Base class for all the IGSTK classes.
igstkStandardTemplatedClassTraitsMacro(VideoFrameRepresentation, ObjectRepresentation) typedef itk typedef TVideoFrameSpatialObject VideoFrameSpatialObjectType
Observer type for loaded event, the callback can be set to a member function.
Pointer Copy() const
Return a copy of the current object representation.
VideoFrameSpatialObjectType::ConstPointer VideoFrameSpatialObjectConstPointer
::itk::SmartPointer< Self > Pointer
bool VerifyTimeStamp() const
Verify the time stamp.
void RequestSetVideoFrameSpatialObject(const VideoFrameSpatialObjectType *spatialObject)
Connect this representation class to the spatial object.
::itk::SmartPointer< const Self > ConstPointer
An abstract base class for all the igstk representation objects.
vtkImageData * VTKImagePointerType