IGSTK
|
This class renders and ImageSpatialObject in a VTK scene using a slice based representation. More...
#include <igstkImageSpatialObjectRepresentation.h>
Public Types | |
enum | OrientationType { Sagittal, Coronal, Axial } |
Orientation Type: Publically declared orientation types supported for slice viewing. More... | |
typedef unsigned int | SliceNumberType |
Type used for representing the slice number. | |
![]() | |
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 | |
Pointer | Copy () const |
Return a copy of the current object representation. | |
void | RequestSetImageSpatialObject (const ImageSpatialObjectType *ImageSpatialObject) |
Connect this representation class to the spatial object. | |
void | RequestSetSliceNumber (SliceNumberType slice) |
Request the state machine to attempt to select a slice number. | |
void | RequestSetOrientation (OrientationType orientation) |
Request the state machine to attempt to select a slice orientation. | |
void | SetWindowLevel (double window, double level) |
Set the Window Level for the representation. | |
void | SetOpacity (float alpha) |
Set the opacity. | |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const |
Print the object information in a stream. | |
void | RequestGetSliceNumberBounds () |
Returns the Minimum and Maximum number of slice available in the current orientation. | |
![]() | |
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(ImageSpatialObjectRepresentation, ObjectRepresentation) public typedef ImageSpatialObjectType::ConstPointer | ImageSpatialObjectConstPointer |
Macro with standard traits declarations. | |
![]() | |
igstkStandardAbstractClassTraitsMacro(ObjectRepresentation, Object) public typedef double | ColorScalarType |
Macro with standard traits declarations. |
Protected Member Functions | |
ImageSpatialObjectRepresentation () | |
Constructor. | |
~ImageSpatialObjectRepresentation () | |
Destructor. | |
void | DeleteActors () |
Overloaded function to delete actors. | |
void | CreateActors () |
Create the VTK actors for displaying geometry. | |
igstkObserverMacro (VTKImage, VTKImageModifiedEvent, EventHelperType::VTKImagePointerType) | |
Observer macro that will received a event with an image as payload and will store it internally. | |
igstkObserverMacro (ImageTransform, CoordinateSystemTransformToEvent, CoordinateSystemTransformToResult) | |
![]() | |
ObjectRepresentation (void) | |
~ObjectRepresentation (void) | |
void | AddActor (vtkProp *) |
Add an actor to the list. | |
void | RequestSetSpatialObject (const SpatialObject *spatialObject) |
Request the state machine to set a Spatial Object. | |
virtual bool | VerifyTimeStamp () const |
Verify the time stamp. | |
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 |
This class renders and ImageSpatialObject in a VTK scene using a slice based representation.
You can select the orientation of the slice to be Axial, Sagittal or Coronal. The number of the slice to be rendered can also be selected, as well as values of opacity, window and level.
Definition at line 51 of file igstkImageSpatialObjectRepresentation.h.
typedef unsigned int igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::SliceNumberType |
Type used for representing the slice number.
Definition at line 85 of file igstkImageSpatialObjectRepresentation.h.
enum igstk::ImageSpatialObjectRepresentation::OrientationType |
Orientation Type: Publically declared orientation types supported for slice viewing.
Definition at line 72 of file igstkImageSpatialObjectRepresentation.h.
|
protected |
Constructor.
|
protected |
Destructor.
Pointer igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::Copy | ( | ) | const |
Return a copy of the current object representation.
void igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::RequestSetImageSpatialObject | ( | const ImageSpatialObjectType * | ImageSpatialObject | ) |
Connect this representation class to the spatial object.
void igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::RequestSetSliceNumber | ( | SliceNumberType | slice | ) |
Request the state machine to attempt to select a slice number.
void igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::RequestSetOrientation | ( | OrientationType | orientation | ) |
Request the state machine to attempt to select a slice orientation.
void igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::SetWindowLevel | ( | double | window, |
double | level | ||
) |
Set the Window Level for the representation.
void igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::SetOpacity | ( | float | alpha | ) |
Set the opacity.
|
virtual |
Print the object information in a stream.
Reimplemented from igstk::ObjectRepresentation.
Reimplemented in igstk::CTImageSpatialObjectRepresentation, igstk::PETImageSpatialObjectRepresentation, igstk::USImageObjectRepresentation, and igstk::MRImageSpatialObjectRepresentation.
void igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::RequestGetSliceNumberBounds | ( | ) |
Returns the Minimum and Maximum number of slice available in the current orientation.
|
protectedvirtual |
Overloaded function to delete actors.
Reimplemented from igstk::ObjectRepresentation.
|
protectedvirtual |
Create the VTK actors for displaying geometry.
Implements igstk::ObjectRepresentation.
|
protected |
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 ImageSpatialObject when an image is requested.
|
protected |
igstkStandardTemplatedClassTraitsMacro ( ImageSpatialObjectRepresentation, ObjectRepresentation ) public typedef ImageSpatialObjectType::ConstPointer igstk::ImageSpatialObjectRepresentation< TImageSpatialObject >::ImageSpatialObjectConstPointer |
Macro with standard traits declarations.
Definition at line 57 of file igstkImageSpatialObjectRepresentation.h.