File: Window3DPicker.h

package info (click to toggle)
itksnap 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,196 kB
  • ctags: 9,196
  • sloc: cpp: 62,895; sh: 175; makefile: 13
file content (34 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef WINDOW3DPICKER_H
#define WINDOW3DPICKER_H

#include "vtkPicker.h"
#include "SNAPCommon.h"

class Generic3DModel;

class Window3DPicker : public vtkPicker
{
public:
  static Window3DPicker *New();

  vtkTypeMacro(Window3DPicker, vtkPicker)

  irisGetSetMacro(Model, Generic3DModel *)

  irisIsMacro(PickSuccessful)

  irisGetMacro(PickPosition, Vector3i)

protected:
  virtual double IntersectWithLine(double p1[3], double p2[3], double tol, vtkAssemblyPath *, vtkProp3D *, vtkAbstractMapper3D *);

  Window3DPicker();

  Generic3DModel *m_Model;
  bool m_PickSuccessful;
  Vector3i m_PickPosition;
};



#endif // WINDOW3DPICKER_H