You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/3rd/VTK7.1/include/vtkEllipsoidTensorProbeRepr...

96 lines
2.8 KiB
C++

/*=========================================================================
Program: Visualization Toolkit
Module: vtkEllipsoidTensorProbeRepresentation.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkEllipsoidTensorProbeRepresentation
* @brief A concrete implementation of vtkTensorProbeRepresentation that renders tensors as ellipoids.
*
* vtkEllipsoidTensorProbeRepresentation is a concrete implementation of
* vtkTensorProbeRepresentation. It renders tensors as ellipsoids. Locations
* between two points when probed have the tensors linearly interpolated
* from the neighboring locations on the polyline.
*
* @sa
* vtkTensorProbeWidget
*/
#ifndef vtkEllipsoidTensorProbeRepresentation_h
#define vtkEllipsoidTensorProbeRepresentation_h
#include "vtkInteractionWidgetsModule.h" // For export macro
#include "vtkTensorProbeRepresentation.h"
class vtkCellPicker;
class vtkTensorGlyph;
class vtkPolyDataNormals;
class VTKINTERACTIONWIDGETS_EXPORT vtkEllipsoidTensorProbeRepresentation :
public vtkTensorProbeRepresentation
{
public:
static vtkEllipsoidTensorProbeRepresentation *New();
//@{
/**
* Standard methods for instances of this class.
*/
vtkTypeMacro(vtkEllipsoidTensorProbeRepresentation,
vtkTensorProbeRepresentation);
void PrintSelf(ostream& os, vtkIndent indent);
//@}
virtual void BuildRepresentation();
virtual int RenderOpaqueGeometry(vtkViewport *);
/**
* Can we pick the tensor glyph at the current cursor pos
*/
virtual int SelectProbe( int pos[2] );
//@{
/**
* See vtkProp for details.
*/
virtual void GetActors(vtkPropCollection *);
virtual void ReleaseGraphicsResources(vtkWindow *);
//@}
protected:
vtkEllipsoidTensorProbeRepresentation();
~vtkEllipsoidTensorProbeRepresentation();
// Get the interpolated tensor at the current position
void EvaluateTensor( double t[9] );
// Register internal Pickers within PickingManager
virtual void RegisterPickers();
vtkActor * EllipsoidActor;
vtkPolyDataMapper * EllipsoidMapper;
vtkPolyData * TensorSource;
vtkTensorGlyph * TensorGlypher;
vtkCellPicker * CellPicker;
vtkPolyDataNormals * PolyDataNormals;
private:
vtkEllipsoidTensorProbeRepresentation(const
vtkEllipsoidTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
void operator=(const
vtkEllipsoidTensorProbeRepresentation&) VTK_DELETE_FUNCTION;
};
#endif