#ifndef VTKHSWARRORWIDGET_H
#define VTKHSWARRORWIDGET_H
/*
* ModuleName: vtkRoboArrowWidget
* Description: 实现箭头
* Author: hsw
* Date: 2020-03-22
*
*/
#include <vtkSmartPointer.h>
#include <vtkArrowSource.h>
#include <vtkDataSetMapper.h>
#include <vtkMinimalStandardRandomSequence.h>
#include <vtkMatrix4x4.h>
#include <vtkTransform.h>
#include <vtkTransformPolyDataFilter.h>
class vtkHSWArrorWidget
{
public:
vtkHSWArrorWidget();
~vtkHSWArrorWidget();
public:
vtkSmartPointer<vtkDataSetMapper> createArrow(double* start, double* end);
private:
vtkSmartPointer<vtkArrowSource> _arrowSource;
vtkSmartPointer<vtkDataSetMapper> _arrowMapper;
};
#endif // VTKHSWARRORWIDGET_H
#include "vtkhswarrorwidget.h"
vtkHSWArrorWidget::vtkHSWArrorWidget()
{
// TODO...
}
vtkHSWArrorWidget::~vtkHSWArrorWidget()
{
// TODO...
}
vtkSmartPointer<vtkDataSetMap