IGSTK
|
#include <igstkVideoFrameRepresentation.h>
Public Types | |
typedef VideoFrameSpatialObjectType::ConstPointer | VideoFrameSpatialObjectConstPointer |
![]() | |
typedef double | OpacityType |
Type for representing the opacity of the object. | |
![]() | |
typedef Object | Self |
General Typedefs. | |
typedef ::itk::Object | Superclass |
typedef ::itk::SmartPointer< Self > | Pointer |
typedef ::itk::SmartPointer < const Self > | ConstPointer |
typedef igstk::Logger | LoggerType |
Public Member Functions | |
void | RequestSetVideoFrameSpatialObject (const VideoFrameSpatialObjectType *spatialObject) |
Connect this representation class to the spatial object. | |
igstkObserverMacro (VTKImage, VTKImageModifiedEvent, EventHelperType::VTKImagePointerType) | |
Observer macro that will received a event with an image as payload and will store it internally. | |
void | SetWindowLevel (double window, double level) |
Set the Window Level for the representation. | |
void | SaveScreenShot (const std::string &filename) |
Pointer | Copy () const |
Return a copy of the current object representation. | |
![]() | |
void | SetColor (ColorScalarType r, ColorScalarType g, ColorScalarType b) |
Set the color. | |
ColorScalarType | GetRed () const |
Get each color component. | |
ColorScalarType | GetGreen () const |
ColorScalarType | GetBlue () const |
virtual void | SetOpacity (OpacityType alpha) |
Set/Get the opacity. | |
virtual OpacityType | GetOpacity () |
virtual ActorsListType | GetActors () |
Get the VTK actors. | |
virtual void | RequestUpdateRepresentation (const TimeStamp &time, const CoordinateSystem *cs) |
Update the visual representation with changes in the geometry. | |
![]() | |
virtual const char * | GetNameOfClass () const |
void | SetLogger (LoggerType *logger) |
Connect the Logger for this class. | |
void | RemoveObserver (unsigned long tag) const |
Public Attributes | |
igstkStandardTemplatedClassTraitsMacro(VideoFrameRepresentation, ObjectRepresentation) typedef itk typedef TVideoFrameSpatialObject | VideoFrameSpatialObjectType |
Observer type for loaded event, the callback can be set to a member function. | |
![]() | |
igstkStandardAbstractClassTraitsMacro(ObjectRepresentation, Object) public typedef double | ColorScalarType |
Macro with standard traits declarations. |
Protected Member Functions | |
VideoFrameRepresentation (void) | |
~VideoFrameRepresentation (void) | |
void | DeleteActors () |
Overloaded function to delete actors. | |
bool | VerifyTimeStamp () const |
Verify the time stamp. | |
void | CreateActors () |
Create the VTK actors for displaying geometry. | |
![]() | |
ObjectRepresentation (void) | |
~ObjectRepresentation (void) | |
void | AddActor (vtkProp *) |
Add an actor to the list. | |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const |
Print the object informations in a stream. | |
void | RequestSetSpatialObject (const SpatialObject *spatialObject) |
Request the state machine to set a Spatial Object. | |
TimeStamp | GetRenderTimeStamp () const |
Get Time stamp for the time at which the next rendering will take place. | |
![]() | |
LoggerType * | GetLogger () const |
Object (void) | |
Constructor is protected in order to enforce the use of the New() operator. | |
virtual | ~Object (void) |
void | RegisterObservedObject (const ::igstk::Object *object, unsigned long tag) |
Register observed objects in an internal array so that they can be disconnected upon destruction. | |
void | RemoveFromObservedObjects () |
Remove observers that this object may have connected to other objects. |
Additional Inherited Members | |
![]() | |
static Pointer | New (void) |
![]() | |
ActorsListType | m_Actors |
OpacityType | m_Opacity |
Definition at line 32 of file igstkVideoFrameRepresentation.h.
typedef VideoFrameSpatialObjectType::ConstPointer igstk::VideoFrameRepresentation< TVideoFrameSpatialObject >::VideoFrameSpatialObjectConstPointer |
Definition at line 45 of file igstkVideoFrameRepresentation.h.
|
protected |
|
protected |
void igstk::VideoFrameRepresentation< TVideoFrameSpatialObject >::RequestSetVideoFrameSpatialObject | ( | const VideoFrameSpatialObjectType * | spatialObject | ) |
Connect this representation class to the spatial object.
igstk::VideoFrameRepresentation< TVideoFrameSpatialObject >::igstkObserverMacro | ( | VTKImage | , |
VTKImageModifiedEvent | , | ||
EventHelperType::VTKImagePointerType | |||
) |
Observer macro that will received a event with an image as payload and will store it internally.
This will be the receptor of the event sent by the VideoFrameSpatialObject when an image is requested.
void igstk::VideoFrameRepresentation< TVideoFrameSpatialObject >::SetWindowLevel | ( | double | window, |
double | level | ||
) |
Set the Window Level for the representation.
void igstk::VideoFrameRepresentation< TVideoFrameSpatialObject >::SaveScreenShot | ( | const std::string & | filename | ) |
Pointer igstk::VideoFrameRepresentation< TVideoFrameSpatialObject >::Copy | ( | ) | const |
Return a copy of the current object representation.
|
protectedvirtual |
Overloaded function to delete actors.
Reimplemented from igstk::ObjectRepresentation.
|
protectedvirtual |
Verify the time stamp.
A default implementation is provided that checks if the spatial object transform is within the Rendering time period. This method could be overridden in derived classes that can use other criteria to verify the time stamp.
Reimplemented from igstk::ObjectRepresentation.
|
protectedvirtual |
Create the VTK actors for displaying geometry.
Implements igstk::ObjectRepresentation.
igstkStandardTemplatedClassTraitsMacro ( VideoFrameRepresentation, ObjectRepresentation ) typedef itk typedef TVideoFrameSpatialObject igstk::VideoFrameRepresentation< TVideoFrameSpatialObject >::VideoFrameSpatialObjectType |
Observer type for loaded event, the callback can be set to a member function.
Definition at line 36 of file igstkVideoFrameRepresentation.h.