16#ifndef __appInteractor2DMeasure_Template_h
17#define __appInteractor2DMeasure_Template_h
24#include "vtkPolyData.h"
25#include "vtkPolyDataMapper.h"
32class vtkDataSetMapper;
35class vtkPolyDataMapper2D;
37class vtkTransformPolyDataFilter;
49 void AddMeasure(
double * pointUL,
double * pointUR,
double * pointDR,
double * pointDL);
51 virtual void EditPoints(
int index,
double * pointUL,
double * pointUR,
double * pointDR,
double * pointDL);
52 virtual void EditTextureCoord(
int index,
double * pointUL,
double * pointUR,
double * pointDR,
double * pointDL);
68 void GetMeasurePoints(
int index,
double * pointUL,
double * pointUR,
double * pointDR,
double * pointDL);
71 virtual void Show(
bool show);
76 void Rotate(
double angle,
double *origin = NULL);
78 void CropImage(albaVMEImage *vmeImage,
double *bounds);
83 vtkTexture*
GetTexture(
int index) {
return m_TexturedQuadVector[index]->GetTexture(); }
84 void SetTexture(
int index, vtkTexture* texture) { m_TexturedQuadVector[index]->SetTexture(texture); }
86 vtkLookupTable*
GetLut() {
return m_TemplateLookupTable; };
127 friend class appInteractor2DMeasure_TemplateTest;
virtual void EditMeasure(int index, double *point)
Edit Measure.
virtual void EditTextureCoord(int index, double *pointUL, double *pointUR, double *pointDR, double *pointDL)
virtual void FindAndHighlight(double *point)
Find Measure Point and Set Action.
void SetTextureOpacity(double opacity)
void ShowPoints(bool show)
std::vector< albaActor2dStackHelper * > m_PointsStackVectorUR
wxString GetConfigDirectory()
std::vector< albaActor2dStackHelper * > m_PointsStackVectorC
std::vector< albaActor2dStackHelper * > m_PointsStackVectorDR
virtual void RemoveMeasure(int index)
Delete the Measure.
void GetCenter(int index, double *center)
void UpdateTexureActor(double *pointUL, double *pointUR, double *pointDR, double *pointDL)
void SetTexture(int index, vtkTexture *texture)
albaInteractor2DMeasure_Template()
void SetTextureColor(double r, double g, double b)
virtual void SetPointSize(double size)
void CropImage(albaVMEImage *vmeImage, double *bounds)
void MoveMeasure(int index, double *point)
Move Measure.
void ShowTexture(bool show)
void SetConfigDir(wxString dir)
virtual ~albaInteractor2DMeasure_Template()
vtkLookupTable * GetLut()
albaTypeMacro(albaInteractor2DMeasure_Template, albaInteractor2DMeasure)
vtkLookupTable * m_TemplateLookupTable
void CropImage(albaVMEImage *vmeImage)
std::vector< vtkActor * > m_TexturedQuadVector
virtual void Show(bool show)
bool Save(albaVME *input, wxString tag)
vtkTexture * GetTexture(int index)
std::vector< vtkPolyData * > m_QuadVector
void GetMeasurePoints(int index, double *pointUL, double *pointUR, double *pointDR, double *pointDL)
Get measure points.
void SetTexture(vtkImageData *imageData)
std::vector< albaActor2dStackHelper * > m_PointsStackVectorDL
void UpdatePointsActor(double *pointUL, double *pointUR, double *pointDR, double *pointDL)
void DrawNewMeasure(double *wp)
Draw New Measure.
std::vector< albaActor2dStackHelper * > m_PointsStackVectorUL
bool Load(albaVME *input, wxString tag)
LOAD/SAVE.
void AddMeasure(double *pointUL, double *pointUR, double *pointDR, double *pointDL)
Add Measure.
virtual void SelectMeasure(int index)
Select a Measure.
virtual void EditPoints(int index, double *pointUL, double *pointUR, double *pointDR, double *pointDL)
Edit Points.
void Rotate(double angle, double *origin=NULL)