SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
svkDataView Class Referenceabstract

#include <svkDataView.h>

Inheritance diagram for svkDataView:
svkImageView2D svkOverlayView svkPlotGridView svkSpectraReferenceView

Public Member Functions

 vtkTypeMacro (svkDataView, vtkObject)
 
 svkDataView ()
 Constructor. More...
 
 ~svkDataView ()
 Destructor. More...
 
virtual void SetInput (svkImageData *data, int index=0)=0
 
virtual svkImageDataGetInput (int index=0)
 
virtual void RemoveInput (int index=0)
 Sets input data set to NULL for index and call Delete. More...
 
virtual void SetController (svkDataViewController *controller)
 
virtual svkDataViewControllerGetController ()
 
virtual void SetSlice (int slice)=0
 
virtual int GetSlice ()
 
virtual void SetWindowLevelRange (double lower, double upper, int index)
 
virtual void Refresh ()
 
virtual void SetRWInteractor (vtkRenderWindowInteractor *rwi)
 
virtual void SetPropState (int propIndex, bool visible)
 
virtual void TurnPropOn (int propIndex)
 
virtual void TurnPropOff (int propIndex)
 
virtual bool IsPropOn (int propIndex)
 
virtual void SetRendererState (int rendererIndex, bool visible)
 
virtual void TurnRendererOn (int rendererIndex)
 
virtual void TurnRendererOff (int rendererIndex)
 
virtual bool IsRendererOn (int rendererIndex)
 
virtual void SetVisibility (int actorIndex, bool visible)
 Is it in the views current displayed FOV? More...
 
virtual vtkRenderer * GetRenderer (int index)
 
virtual void SetRenderer (int index, vtkRenderer *ren)
 
virtual vtkProp * GetProp (int index)
 
virtual void SetProp (int index, vtkProp *prop)
 
virtual void SetOrientation (svkDcmHeader::Orientation orientation)
 
virtual svkDcmHeader::Orientation GetOrientation ()
 
void ValidationOff ()
 

Static Public Member Functions

static void ClipMapperToTlcBrc (svkImageData *data, vtkAbstractMapper *mapper, int tlcBrc[2], double clip_tolerance_row, double clip_tolerance_column, double clip_tolerance_slice)
 
static void GetClippingIndexFromTlcBrc (svkImageData *data, int indexRange[2][3], int tlcBrc[2])
 
static void GetClippingPlanes (vtkPlaneCollection *planes, svkImageData *data, int *tlcBrc, double clip_tolerance_row, double clip_tolerance_column, double clip_tolerance_slice)
 
static bool IsTlcBrcWithinData (svkImageData *data, int tlcBrc[2])
 
static bool IsTlcBrcWithinData (svkImageData *data, int tlcID, int brcID)
 
static void ResetTlcBrcForNewOrientation (svkImageData *data, svkDcmHeader::Orientation orientation, int tlcBrc[2], int &slice)
 

Protected Member Functions

virtual void UpdateProps ()
 
void ObserveData (svkImageData *data)
 

Static Protected Member Functions

static void UpdateView (vtkObject *subject, unsigned long eid, void *thisObject, void *callData)
 

Protected Attributes

vector< vtkRenderer * > renCollection
 
vector< vtkProp * > propCollection
 
vtkRenderWindowInteractor * rwi
 
vector< svkImageData * > dataVector
 
svkDataViewControllercontroller
 
vtkCallbackCommand * dataModifiedCallback
 
svkDcmHeader::Orientation orientation
 
int tlcBrc [2]
 the top left, bottom right corners of the current view More...
 
int slice
 
vector< bool > isPropOn
 
vector< bool > isRendererOn
 
vector< bool > isPropVisible
 
bool isValidationOn
 

Friends

class svkDataViewController
 

Constructor & Destructor Documentation

Member Function Documentation

void ClipMapperToTlcBrc ( svkImageData data,
vtkAbstractMapper *  mapper,
int  tlcBrc[2],
double  clip_tolerance_row,
double  clip_tolerance_column,
double  clip_tolerance_slice 
)
static

Generates the clipping planes for the mMMapper. This is how the boundries set are enforced, after the data is scaled, it is clipped so that data outside the plot range is simply not shown.

References DEBUG, and svkDataView::GetClippingPlanes().

Referenced by svkPlotGridView::GenerateClippingPlanes(), svkSpectraReferenceView::GenerateClippingPlanes(), and svkOverlayView::GenerateClippingPlanes().

void GetClippingIndexFromTlcBrc ( svkImageData data,
int  indexRange[2][3],
int  tlcBrc[2] 
)
static

Get the index that should be clipped based on the tlcBrc

References svkImageData::GetIndexFromID().

Referenced by svkDataView::GetClippingPlanes().

void GetClippingPlanes ( vtkPlaneCollection *  planes,
svkImageData data,
int *  tlcBrc,
double  clip_tolerance_row,
double  clip_tolerance_column,
double  clip_tolerance_slice 
)
static
svkDataViewController * GetController ( )
virtual
svkImageData * GetInput ( int  index = 0)
virtual

gets the input.

References svkDataView::dataVector.

svkDcmHeader::Orientation GetOrientation ( )
virtual
vtkProp * GetProp ( int  index)
virtual

References svkDataView::propCollection.

Referenced by svkSpectraReferenceView::AlignCamera(), svkOverlayView::AlignCamera(), svkPlotGridView::AlignCamera(), svkPlotGridView::CreateMetaboliteOverlay(), svkPlotGridView::GenerateClippingPlanes(), svkSpectraReferenceView::GenerateClippingPlanes(), svkOverlayView::GenerateClippingPlanes(), svkPlotGridView::GeneratePlotGridActor(), svkPlotGridView::HideView(), svkPlotGridView::RemoveInput(), svkSpectraReferenceViewController::Reset(), svkOverlayViewController::Reset(), svkPlotGridView::SetColorSchema(), svkPlotGridView::SetInput(), svkSpectraReferenceView::SetInterpolationType(), svkOverlayView::SetInterpolationType(), svkSpectraReferenceView::SetLUT(), svkOverlayView::SetLUT(), svkPlotGridView::SetOverlayOpacity(), svkSpectraReferenceView::SetOverlayOpacity(), svkOverlayView::SetOverlayOpacity(), svkPlotGridView::SetOverlayTextDigits(), svkPlotGridView::SetOverlayThreshold(), svkSpectraReferenceView::SetOverlayThreshold(), svkOverlayView::SetOverlayThreshold(), svkPlotGridView::SetOverlayWLRange(), svkSpectraReferenceView::SetSlice(), svkPlotGridView::SetSlice(), svkOverlayView::SetSlice(), svkPlotGridView::SetTlcBrc(), svkSpectraReferenceView::SetupMsInput(), svkOverlayView::SetupMsInput(), svkSpectraReferenceView::SetupOverlay(), svkOverlayView::SetupOverlay(), svkPlotGridView::ShowView(), svkOverlayViewController::svkOverlayViewController(), svkSpectraReferenceViewController::svkSpectraReferenceViewController(), svkSpectraReferenceView::ToggleSelBoxVisibilityOff(), svkOverlayView::ToggleSelBoxVisibilityOff(), svkSpectraReferenceView::ToggleSelBoxVisibilityOn(), svkOverlayView::ToggleSelBoxVisibilityOn(), svkPlotGridView::UpdateDetailedPlotOverlay(), svkPlotGridView::UpdateMetaboliteImage(), and svkPlotGridView::UpdateMetaboliteTextDisplacement().

vtkRenderer * GetRenderer ( int  index)
virtual

References svkDataView::renCollection.

Referenced by svkSpectraReferenceView::AlignCamera(), svkOverlayView::AlignCamera(), svkPlotGridView::AlignCamera(), svkPlotGridView::CreateMetaboliteOverlay(), svkPlotGridView::GeneratePlotGridActor(), svkPlotGridView::HideView(), svkPlotGridView::RemoveInput(), svkOverlayView::ResetWindowLevel(), svkOverlayView::SetActiveOverlayVolume(), svkPlotGridView::SetActivePlotIndex(), svkPlotGridView::SetColorSchema(), svkPlotGridView::SetInput(), svkSpectraReferenceView::SetOrientation(), svkOverlayView::SetOrientation(), svkPlotGridView::SetOrientation(), svkSpectraReferenceView::SetRWInteractor(), svkOverlayView::SetRWInteractor(), svkPlotGridView::SetRWInteractor(), svkPlotGridView::SetSelection(), svkSpectraReferenceView::SetSelection(), svkOverlayView::SetSelection(), svkSpectraReferenceView::SetSlice(), svkPlotGridView::SetSlice(), svkOverlayView::SetSlice(), svkPlotGridView::SetTlcBrc(), svkSpectraReferenceView::SetupMrInput(), svkOverlayView::SetupMrInput(), svkSpectraReferenceView::SetupMsInput(), svkOverlayView::SetupMsInput(), svkSpectraReferenceView::SetupOverlay(), svkOverlayView::SetupOverlay(), svkPlotGridView::ShowView(), svkSpectraReferenceViewController::svkSpectraReferenceViewController(), svkSpectraReferenceViewController::UseColorOverlayStyle(), svkOverlayViewController::UseColorOverlayStyle(), svkSpectraReferenceViewController::UseRotationStyle(), svkOverlayViewController::UseRotationStyle(), svkSpectraReferenceViewController::UseSelectionStyle(), and svkOverlayViewController::UseSelectionStyle().

int GetSlice ( )
virtual
bool IsPropOn ( int  propIndex)
virtual
bool IsRendererOn ( int  rendererIndex)
virtual
bool IsTlcBrcWithinData ( svkImageData data,
int  tlcBrc[2] 
)
static
bool IsTlcBrcWithinData ( svkImageData data,
int  tlcID,
int  brcID 
)
static
void ObserveData ( svkImageData data)
protected
void Refresh ( )
virtual
void RemoveInput ( int  index = 0)
virtual

Sets input data set to NULL for index and call Delete.

Removes the input.

Reimplemented in svkOverlayView, and svkPlotGridView.

References svkDataView::dataVector.

void ResetTlcBrcForNewOrientation ( svkImageData data,
svkDcmHeader::Orientation  orientation,
int  tlcBrc[2],
int &  slice 
)
static
void SetController ( svkDataViewController controller)
virtual
virtual void SetInput ( svkImageData data,
int  index = 0 
)
pure virtual
void SetOrientation ( svkDcmHeader::Orientation  orientation)
virtual
void SetProp ( int  index,
vtkProp *  prop 
)
virtual
void SetPropState ( int  propIndex,
bool  visible 
)
virtual

View may have more than one svkImageData it's rendering, so may specify specific ImageIndex

References svkDataView::isPropOn.

void SetRenderer ( int  index,
vtkRenderer *  ren 
)
virtual
void SetRendererState ( int  rendererIndex,
bool  visible 
)
virtual
void SetRWInteractor ( vtkRenderWindowInteractor *  rwi)
virtual
virtual void SetSlice ( int  slice)
pure virtual
void SetVisibility ( int  actorIndex,
bool  visible 
)
virtual

Is it in the views current displayed FOV?

References svkDataView::isPropVisible.

void SetWindowLevelRange ( double  lower,
double  upper,
int  index 
)
virtual
void TurnPropOff ( int  propIndex)
virtual
void TurnPropOn ( int  propIndex)
virtual
void TurnRendererOff ( int  rendererIndex)
virtual
void TurnRendererOn ( int  rendererIndex)
virtual
virtual void UpdateProps ( )
inlineprotectedvirtual

Method to to get all actors from each svkImageData and update the view with it's current' properties/state, etc. via svkImageData::GetAllActorCollectins(); Probably called by the dataModifiedCallback whenevera data modified event is caught. Stub to be implemented later.

void UpdateView ( vtkObject *  subject,
unsigned long  eid,
void *  thisObject,
void *  callData 
)
staticprotected

Observer callback must be a static member: Note that vtkObject* is a pointer to the subject being observed. Here the clientData contains a pointer to the observer object

References DEBUG, and svkDataView::Refresh().

Referenced by svkDataView::ObserveData().

void ValidationOff ( )
vtkTypeMacro ( svkDataView  ,
vtkObject   
)

Friends And Related Function Documentation

friend class svkDataViewController
friend

Member Data Documentation

svkDataViewController* controller
protected
vtkCallbackCommand* dataModifiedCallback
protected
vector<svkImageData*> dataVector
protected

Referenced by svkPlotGridView::AlignCamera(), svkOverlayView::CheckDataOrientations(), svkPlotGridView::CreateMetaboliteOverlay(), svkSpectraReferenceView::FindCenterImageSlice(), svkOverlayView::FindCenterImageSlice(), svkOverlayView::FindOverlaySlice(), svkSpectraReferenceView::FindSpectraSlice(), svkOverlayView::FindSpectraSlice(), svkPlotGridView::GenerateClippingPlanes(), svkSpectraReferenceView::GenerateClippingPlanes(), svkOverlayView::GenerateClippingPlanes(), svkPlotGridView::GeneratePlotGridActor(), svkPlotGridView::GetActivePlot(), svkSpectraReferenceView::GetDataCompatibility(), svkOverlayView::GetDataCompatibility(), svkPlotGridView::GetDataCompatibility(), svkDataView::GetInput(), svkPlotGridView::HighlightSelectionVoxels(), svkSpectraReferenceView::HighlightSelectionVoxels(), svkOverlayView::HighlightSelectionVoxels(), svkDataView::RemoveInput(), svkSpectraReferenceView::ResetWindowLevel(), svkOverlayView::ResetWindowLevel(), svkOverlayView::SetActiveOverlayVolume(), svkPlotGridView::SetActiveOverlayVolume(), svkPlotGridView::SetActivePlotIndex(), svkImageView2D::SetInput(), svkSpectraReferenceView::SetInput(), svkPlotGridView::SetInput(), svkOverlayView::SetInput(), svkOverlayView::SetInputPostReslice(), svkOverlayView::SetInterpolationType(), svkPlotGridView::SetLUT(), svkSpectraReferenceView::SetLUT(), svkOverlayView::SetLUT(), svkSpectraReferenceView::SetOrientation(), svkOverlayView::SetOrientation(), svkPlotGridView::SetOrientation(), svkPlotGridView::SetOverlayOpacity(), svkPlotGridView::SetOverlayTextDigits(), svkPlotGridView::SetPlotUnits(), svkPlotGridView::SetSelection(), svkSpectraReferenceView::SetSelection(), svkOverlayView::SetSelection(), svkSpectraReferenceView::SetSlice(), svkPlotGridView::SetSlice(), svkOverlayView::SetSlice(), svkPlotGridView::SetTlcBrc(), svkSpectraReferenceView::SetTlcBrc(), svkOverlayView::SetTlcBrc(), svkSpectraReferenceView::SetupMrInput(), svkOverlayView::SetupMrInput(), svkSpectraReferenceView::SetupMsInput(), svkOverlayView::SetupMsInput(), svkSpectraReferenceView::SetupOverlay(), svkOverlayView::SetupOverlay(), svkImageView2D::svkImageView2D(), svkOverlayView::svkOverlayView(), svkPlotGridView::svkPlotGridView(), svkSpectraReferenceView::svkSpectraReferenceView(), svkSpectraReferenceView::ToggleSelBoxVisibilityOn(), svkOverlayView::ToggleSelBoxVisibilityOn(), svkPlotGridView::UpdateDetailedPlot(), svkPlotGridView::UpdateDetailedPlotOverlay(), svkSpectraReferenceView::UpdateImageSlice(), svkOverlayView::UpdateImageSlice(), svkPlotGridView::UpdateMetaboliteImage(), svkPlotGridView::UpdateMetaboliteText(), svkPlotGridView::UpdateMetaboliteTextDisplacement(), svkOverlayView::UpdateSincInterpolation(), and svkDataView::~svkDataView().

vector< bool > isPropOn
protected
vector< bool > isPropVisible
protected
vector< bool > isRendererOn
protected
bool isValidationOn
protected
svkDcmHeader::Orientation orientation
protected
vector< vtkProp* > propCollection
protected
vector< vtkRenderer* > renCollection
protected
vtkRenderWindowInteractor* rwi
protected
int slice
protected
int tlcBrc[2]
protected

The documentation for this class was generated from the following files: