CustusX
15.4.0-beta
An IGT application
|
Picking of points in an image. More...
#include <cxPickerRep.h>
Public Slots | |
void | pickLandmarkSlot (vtkObject *renderWindowInteractor) |
When you use the renderwindowinteractor. More... | |
Signals | |
void | pointPicked (Vector3D p_r) |
void | dataPicked (QString uid) |
the rep sends out a signal when the user picks a point on it More... | |
Public Member Functions | |
virtual | ~PickerRep () |
empty More... | |
virtual QString | getType () const |
returns a string identifying this class type More... | |
void | setTool (ToolPtr tool) |
set the tool to listen to More... | |
void | setEnabled (bool on) |
void | setGlyph (MeshPtr glyph) |
void | pickLandmark (const Vector3D &clickPosition, vtkRendererPtr renderer) |
When you don't use the renderwindowinteractor. More... | |
Vector3D | getPosition () const |
void | setSphereRadius (double radius) |
Public Member Functions inherited from cx::RepImpl | |
RepImpl (const QString &uid="", const QString &name="") | |
virtual | ~RepImpl () |
virtual void | connectToView (ViewPtr theView) |
virtual void | disconnectFromView (ViewPtr theView) |
virtual bool | isConnectedToView (ViewPtr theView) const |
void | setName (QString name) |
QString | getName () const |
QString | getUid () const |
virtual void | printSelf (std::ostream &os, Indent indent) |
Public Member Functions inherited from cx::Rep | |
virtual | ~Rep () |
Static Public Member Functions | |
static PickerRepPtr | New (PatientModelServicePtr dataManager, const QString &uid="") |
for creating new instances More... | |
Static Public Member Functions inherited from cx::RepImpl | |
template<class REP > | |
static boost::shared_ptr< REP > | wrap_new (REP *object, QString uid) |
Protected Member Functions | |
PickerRep (PatientModelServicePtr dataManager) | |
use New instead More... | |
virtual void | addRepActorsToViewRenderer (ViewPtr view) |
connects to the renderwindowinteractor More... | |
virtual void | removeRepActorsFromViewRenderer (ViewPtr view) |
disconnects from the renderwindowinteractor More... | |
void | connectInteractor () |
void | disconnectInteractor () |
void | scaleSphere () |
virtual void | onModifiedStartRender () |
void | toolHasChanged () |
void | OnLeftButtonDown () |
void | OnLeftButtonUp () |
void | OnMouseMove () |
Vector3D | getDisplacement () |
Vector3D | ComputeDisplayToWorld (Vector3D p_d) |
Vector3D | ComputeWorldToDisplay (Vector3D p_w) |
void | setGlyphCenter (Vector3D pos) |
Protected Member Functions inherited from cx::RepImpl | |
ViewPtr | getView () const |
vtkRendererPtr | getRenderer () |
RepPtr | getSelf () |
Static Protected Member Functions | |
static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
bool | mEnabled |
bool | mConnected |
Interactor connected. More... | |
ToolPtr | mTool |
the connected tool More... | |
Vector3D | mPickedPoint |
the last point that was successfully sampled from intersection with an image More... | |
double | mSphereRadius |
MeshPtr | mGlyph |
GeometricRepPtr | mGlyphRep |
Vector3D | mClickedPoint |
bool | mIsDragging |
bool | mSnapToSurface |
if set, clicking on a Data surface will pick that point More... | |
GraphicalPoint3DPtr | mGraphicalPoint |
ViewportListenerPtr | mViewportListener |
vtkCallbackCommandPtr | mCallbackCommand |
PatientModelServicePtr | mDataManager |
Additional Inherited Members | |
Protected Slots inherited from cx::RepImpl | |
void | setModified () |
Picking of points in an image.
When enabled, clicking in the view is interpreted as picking a point on the attached image. The picked point is the projection of the mouse click onto the image. Threshold is used to determine hit.
The point is displayed, and the value emitted as a signal.
Used by CustusX. Not used by Sonowand.
Definition at line 70 of file cxPickerRep.h.
|
virtual |
empty
Definition at line 107 of file cxPickerRep.cpp.
|
protected |
use New instead
Definition at line 79 of file cxPickerRep.cpp.
|
protectedvirtual |
connects to the renderwindowinteractor
Implements cx::RepImpl.
Definition at line 425 of file cxPickerRep.cpp.
Convert a point in display to world. Based on method in vtkInteractorObserver
Definition at line 311 of file cxPickerRep.cpp.
Convert a point in world to display Based on method in vtkInteractorObserver
Definition at line 324 of file cxPickerRep.cpp.
|
protected |
Definition at line 397 of file cxPickerRep.cpp.
|
signal |
the rep sends out a signal when the user picks a point on it
|
protected |
Definition at line 412 of file cxPickerRep.cpp.
|
protected |
Get the displacement in the view plane since last event.
Definition at line 336 of file cxPickerRep.cpp.
Vector3D cx::PickerRep::getPosition | ( | ) | const |
Definition at line 463 of file cxPickerRep.cpp.
|
virtual |
returns a string identifying this class type
Implements cx::RepImpl.
Definition at line 110 of file cxPickerRep.cpp.
|
static |
for creating new instances
Definition at line 75 of file cxPickerRep.cpp.
|
protected |
Definition at line 358 of file cxPickerRep.cpp.
|
protected |
Definition at line 388 of file cxPickerRep.cpp.
|
protectedvirtual |
Reimplemented from cx::RepImpl.
Definition at line 248 of file cxPickerRep.cpp.
|
protected |
Definition at line 363 of file cxPickerRep.cpp.
void cx::PickerRep::pickLandmark | ( | const Vector3D & | clickPosition, |
vtkRendererPtr | renderer | ||
) |
When you don't use the renderwindowinteractor.
Trace a ray from clickPosition along the camera view direction and intersect the image.
[in] | clickPosition | the click position in DISPLAY coordinates |
[in] | renderer | the renderer from which to get the camera |
Definition at line 169 of file cxPickerRep.cpp.
|
slot |
When you use the renderwindowinteractor.
Definition at line 230 of file cxPickerRep.cpp.
|
signal |
|
staticprotected |
Definition at line 288 of file cxPickerRep.cpp.
|
protectedvirtual |
disconnects from the renderwindowinteractor
Implements cx::RepImpl.
Definition at line 450 of file cxPickerRep.cpp.
|
protected |
Definition at line 97 of file cxPickerRep.cpp.
void cx::PickerRep::setEnabled | ( | bool | on | ) |
Definition at line 268 of file cxPickerRep.cpp.
void cx::PickerRep::setGlyph | ( | MeshPtr | glyph | ) |
Definition at line 143 of file cxPickerRep.cpp.
|
protected |
Definition at line 379 of file cxPickerRep.cpp.
void cx::PickerRep::setSphereRadius | ( | double | radius | ) |
Definition at line 115 of file cxPickerRep.cpp.
void cx::PickerRep::setTool | ( | ToolPtr | tool | ) |
set the tool to listen to
Definition at line 122 of file cxPickerRep.cpp.
|
protected |
Definition at line 253 of file cxPickerRep.cpp.
|
protected |
Definition at line 131 of file cxPickerRep.h.
|
protected |
Definition at line 124 of file cxPickerRep.h.
|
protected |
Interactor connected.
Definition at line 118 of file cxPickerRep.h.
|
protected |
Definition at line 132 of file cxPickerRep.h.
|
protected |
Definition at line 117 of file cxPickerRep.h.
|
protected |
Definition at line 122 of file cxPickerRep.h.
|
protected |
Definition at line 123 of file cxPickerRep.h.
|
protected |
Definition at line 129 of file cxPickerRep.h.
|
protected |
Definition at line 125 of file cxPickerRep.h.
|
protected |
the last point that was successfully sampled from intersection with an image
Definition at line 120 of file cxPickerRep.h.
|
protected |
if set, clicking on a Data surface will pick that point
Definition at line 127 of file cxPickerRep.h.
|
protected |
Definition at line 121 of file cxPickerRep.h.
|
protected |
the connected tool
Definition at line 119 of file cxPickerRep.h.
|
protected |
Definition at line 130 of file cxPickerRep.h.