IGSTK
|
Add 2D annotations to the viewport. More...
#include <igstkAnnotation2D.h>
Public Types | |
typedef std::vector < vtkTextActor * > | ActorsListType |
Type defining the container of actors. | |
![]() | |
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 | |
igstkStandardClassTraitsMacro (Annotation2D, Object) void RequestSetAnnotationText(int | |
const std::string &void | RequestSetFontColor (int index, double red, double green, double blue) |
Request to change font color. | |
void | RequestSetFontSize (int index, int fontSize) |
Request to change font size. | |
void | RequestAddAnnotations () |
Request add annotations. | |
void | SetLogger (LoggerType *logger) |
Connect the Logger for this class. | |
virtual ActorsListType | GetActors () |
Get the VTK actors. | |
![]() | |
virtual const char * | GetNameOfClass () const |
void | RemoveObserver (unsigned long tag) const |
Protected Member Functions | |
LoggerType * | GetLogger () const |
Declarations needed for the Logging. | |
Annotation2D (void) | |
~Annotation2D (void) | |
void | AddActors (vtkTextActor *) |
Add an actor. | |
void | DeleteActors () |
Delete Actors. | |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const |
Print the object informations in a stream. | |
void | RequestSetAnnotationsViewPort (int horizontal, int vertical) |
Request to Set viewport. | |
![]() | |
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. |
Friends | |
class | View |
class | QView |
REMOVE this when QView class is removed from the sandbox. |
Additional Inherited Members | |
![]() | |
static Pointer | New (void) |
Add 2D annotations to the viewport.
This class is used to add 2D annotations to the viewport. Annotations can be added to any of the four corners of the viewport.
TODO image html igstkAnnotation2D.png "2D Annotation State Machine Diagram" TODO image latex igstkAnnotation2D.eps "2D Annotation Machine Diagram"
Definition at line 53 of file igstkAnnotation2D.h.
typedef std::vector< vtkTextActor* > igstk::Annotation2D::ActorsListType |
Type defining the container of actors.
Definition at line 77 of file igstkAnnotation2D.h.
|
protected |
|
protected |
igstk::Annotation2D::igstkStandardClassTraitsMacro | ( | Annotation2D | , |
Object | |||
) |
const std::string& void igstk::Annotation2D::RequestSetFontColor | ( | int | index, |
double | red, | ||
double | green, | ||
double | blue | ||
) |
Request to change font color.
void igstk::Annotation2D::RequestSetFontSize | ( | int | index, |
int | fontSize | ||
) |
Request to change font size.
void igstk::Annotation2D::RequestAddAnnotations | ( | ) |
Request add annotations.
|
protected |
Declarations needed for the Logging.
Reimplemented from igstk::Object.
void igstk::Annotation2D::SetLogger | ( | LoggerType * | logger | ) |
Connect the Logger for this class.
Reimplemented from igstk::Object.
|
virtual |
Get the VTK actors.
|
protected |
Add an actor.
|
protected |
Delete Actors.
|
protectedvirtual |
Print the object informations in a stream.
Reimplemented from igstk::Object.
|
protected |
Request to Set viewport.
|
friend |
Definition at line 83 of file igstkAnnotation2D.h.
|
friend |
REMOVE this when QView class is removed from the sandbox.
Definition at line 88 of file igstkAnnotation2D.h.