17#ifndef __albaGUIDialogTransferFunction2D_H__
18#define __albaGUIDialogTransferFunction2D_H__
26#include "vtkALBATransferFunction2D.h"
42class vtkVolumeProperty2;
43class vtkALBATransferFunction2D;
44class vtkALBAAdaptiveVolumeMapper;
46class vtkALBAImageMapToWidgetColors;
47class vtkImageResample;
52class vtkCriticalSection;
91 void OnSize(wxSizeEvent& event) { this->ResizePreviewWindow();
event.Skip(); }
93 void OnMotion(wxMouseEvent &event) { m_StatusBar->SetStatusText(
"", 0); m_StatusBar->SetStatusText(
"", 1); }
144 double m_DataRange[2];
145 double m_GradientRange[2];
171 void SetViewportRange(
double xmin,
double xmax,
double ymin,
double ymax) { ViewportRange[0] = xmin; ViewportRange[1] = xmax; ViewportRange[2] = ymin; ViewportRange[3] = ymax; }
175 void HighlightPoint(
int widget,
int point) { this->HighlightedWidget = widget; this->HighlightedPoint = point; }
177 void SetCurrentPosition(
double value,
double gradient) { this->CurrentPoint[0] = value; this->CurrentPoint[1] = gradient; }
179 int Pick(vtkViewport *viewport,
int x,
int y,
int &pickedPoint);
189 double ViewportRange[4];
194 double CurrentPoint[2];
199#include "vtkInteractorStyleImage.h"
227 bool m_ActiveButton[3];
228 int m_StartPosition[3][2];
Implementation of the message object for the Subject/Observer design pattern.
albaEvent - Class implementing ALBA application events.
This dialog is used to define a 2D transfer function to make a volume Ray Cast.
vtkALBAImageMapToWidgetColors * m_SliceFilter
void LoadTransferFunction()
Load volume transfer function from vme tag.
vtkRenderWindow * m_SliceWindow
void ShowModal(albaVME *vme)
albaGUIRangeSlider * m_GradientSlider
vtkVolumeProperty2 * m_VolumeProperty
vtkRenderer * m_SliceRenderer
void OnCommand(wxCommandEvent &event)
void OnSize(wxSizeEvent &event)
Handle on size event.
static VTK_THREAD_RETURN_TYPE CreatePipe(void *ptr)
vtkWidgetActor * m_WidgetActor
vtkRenderWindow * m_GraphWindow
void SaveTransferFunction()
Save volume transfer function to vme tag.
vtkRenderWindow * m_Window3D
vtkTextActor * m_WaitActor
vtkCriticalSection * m_CriticalSection
~albaGUIDialogTransferFunction2D()
vtkRenderer * m_Renderer3D
albaGUIDialogTransferFunction2D()
void ResizePreviewWindow()
wxNotebook * m_PreviewBook
vtkActor2D * m_SliceActor
albaGUIRangeSlider * m_ValueSlider
void OnIdle(wxIdleEvent &event)
mmaVolumeMaterial * m_Material
wxStatusBar * m_StatusBar
vtkImageResample * m_SliceResampler
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
vtkALBATransferFunction2D * m_TransferFunction
void OnMotion(wxMouseEvent &event)
vtkALBAAdaptiveVolumeMapper * m_Mapper3D
void InitializeControls()
vtkRenderer * m_GraphRenderer
void SetWidget(const tfWidget &widget)
albaGUIRangeSlider * m_WindowingSlider
vtkImageMapper * m_SliceMapper
albaGUIDialog is the base class for albaDialogs.
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
class name: albaGUIRangeSlider Class that handles a slider for visualising or changing range.
albaGUI is a panel with function to easily create GUI.
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
void OnMiddleButtonDown()
bool FindValueAndGradient(int x, int y, double &value, double &gradient)
static vtkInteractorStylePreviewImage * New()
vtkInteractorStylePreviewImage(const vtkInteractorStylePreviewImage &)
vtkTypeMacro(vtkInteractorStylePreviewImage, vtkInteractorStyleImage)
albaGUIDialogTransferFunction2D * m_Dialog
vtkInteractorStylePreviewImage()
void operator=(const vtkInteractorStylePreviewImage &)
void SetDialog(albaGUIDialogTransferFunction2D *dialog)