How to draw an arrow like the 3D slicer?
Something like you would need to use an arrowSource and then a GlyphSource oriented by the eigenvectors filter. You can check out how it’s done in Slicer:
I guess this is what you’d like to see:
/*=========================================================================
Copyright (c) ProxSim ltd., Kwun Tong, Hong Kong. All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This file was originally developed by Davide Punzo, punzodavide@hotmail.it,
and development was supported by ProxSim ltd.
=========================================================================*/
// VTK includes
#include "vtkCallbackCommand.h"
This file has been truncated. show original
thanks! I have not read code of 3D slicer. So thanks for your suggestion!