Hi all
I just want to add userinteraction(rigth mouse click) to a vtk chart .can anyone please guide me .
This is what I have done upto now.But nothing happend.
class customMouseInteractorStyle : public vtkInteractorStyleTrackballCamera
{
public:
static customMouseInteractorStyle* New();
vtkTypeMacro(customMouseInteractorStyle, vtkInteractorStyleTrackballCamera);
virtual void OnRightButtonDown();
};
vtkStandardNewMacro(customMouseInteractorStyle);
void customMouseInteractorStyle::OnRightButtonDown()
{
vtkInteractorStyleTrackballCamera::OnRightButtonDown();
std::cout << "test";
};
void viewGraph::DrawGraph() {
vtkNew colors;
vtkNew style;
renderWindowInteractor->SetInteractorStyle(style);
}
**Inside my DrawGraph() I have created my xy chart
Thank you in advance.