IGSTK
|
Provides functionality of rendering a scene in a 2D window. More...
#include <igstkView2D.h>
Public Types | |
enum | OrientationType { Sagittal, Coronal, Axial } |
Orientation Type: Publically declared orientation types supported for slice viewing. More... | |
![]() | |
typedef Object | Self |
General Typedefs. More... | |
typedef ::itk::Object | Superclass |
typedef ::itk::SmartPointer< Self > | Pointer |
typedef ::itk::SmartPointer < const Self > | ConstPointer |
typedef igstk::Logger | LoggerType |
Public Member Functions | |
igstkStandardClassTraitsMacro (View2D, View) | |
void | PrintSelf (std::ostream &os,::itk::Indent indent) const |
Print the object information in a stream. More... | |
void | RequestSetOrientation (const OrientationType &orientation) |
Select a slice orientation. More... | |
![]() | |
igstkStandardClassTraitsMacro (View, Object) | |
Macro with standard traits declarations. More... | |
void | SetRefreshRate (double frequency) |
Set the desired frequency for refreshing the view. More... | |
void | RequestAddObject (ObjectRepresentation *object) |
Add an object representation to the list of children and associate it with a specific view. More... | |
void | RequestAddAnnotation2D (Annotation2D::Pointer annotation) |
Add annotation to the view. More... | |
void | RequestRemoveObject (ObjectRepresentation *object) |
Remove the object passed as arguments from the list of children, only if it is associated to a particular view. More... | |
void | RequestSaveScreenShot (const std::string &filename) |
Request to save a screen shot into a file. More... | |
void | Print (std::ostream &os,::itk::Indent indent=0) const |
Print the object information in a stream. More... | |
void | SetLogger (LoggerType *logger) |
void | RequestResetCamera () |
Request to return the camera to a known position. More... | |
void | RequestStart () |
Request Start the periodic refreshing of the view. More... | |
void | RequestStop () |
Request Stopping the periodic refreshing of the view. More... | |
void | SetCameraPosition (double x, double y, double z) |
Set Camera position. More... | |
void | SetCameraFocalPoint (double x, double y, double z) |
Set camera focal point. More... | |
void | SetCameraViewUp (double vx, double vy, double vz) |
Set Camera View Up vector. More... | |
void | SetCameraClippingRange (double dNear, double dFar) |
Set Clipping range. More... | |
void | SetCameraParallelProjection (bool flag) |
Turn on/off parallel projection. More... | |
void | SetRendererBackgroundColor (double red, double green, double blue) |
Set renderer background color. More... | |
void | SetCameraZoomFactor (double rate) |
Set camera zoom factor. More... | |
![]() | |
virtual const char * | GetNameOfClass () const |
void | SetLogger (LoggerType *logger) |
Connect the Logger for this class. More... | |
void | RemoveObserver (unsigned long tag) const |
Protected Member Functions | |
View2D () | |
Constructor. More... | |
virtual | ~View2D (void) |
Destructor. More... | |
![]() | |
LoggerType * | GetLogger () const |
Set up variables, types and methods related to the Logger. More... | |
View () | |
virtual | ~View (void) |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const |
Print the object information in a stream. More... | |
void | SetInteractorStyle (vtkInteractorStyle *style) |
Set the interactor style in the derived classes. More... | |
void | RequestSetRenderWindowSize (int width, int height) |
Set the size of the render window. More... | |
void | RequestInitializeRenderWindowInteractor () |
Request initialize the RenderWindow interactor. More... | |
void | SetPickedPointCoordinates (double xPosition, double yPosition) |
Sets the coordinates of the point picked. More... | |
![]() | |
LoggerType * | GetLogger () const |
Object (void) | |
Constructor is protected in order to enforce the use of the New() operator. More... | |
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. More... | |
void | RemoveFromObservedObjects () |
Remove observers that this object may have connected to other objects. More... | |
Additional Inherited Members | |
![]() | |
static Pointer | New (void) |
Provides functionality of rendering a scene in a 2D window.
This class derives from the View class, and represents the abstraction of a window in a GUI in which 3D objects will be displayed but from a point of view in which the camera never changes the orientation of the field of view. Zooming and Panning operations are possible in this window.
Definition at line 42 of file igstkView2D.h.
Orientation Type: Publically declared orientation types supported for slice viewing.
Enumerator | |
---|---|
Sagittal | |
Coronal | |
Axial |
Definition at line 53 of file igstkView2D.h.
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
void igstk::View2D::PrintSelf | ( | std::ostream & | os, |
::itk::Indent | indent | ||
) | const |
Print the object information in a stream.
void igstk::View2D::RequestSetOrientation | ( | const OrientationType & | orientation | ) |
Select a slice orientation.