Fraxinus
2023.01.05-dev+develop.0da12
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 () |
virtual void | onEveryRender () |
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 49 of file cxPickerRep.h.
|
virtual |
empty
Definition at line 86 of file cxPickerRep.cpp.
|
protected |
use New instead
Definition at line 58 of file cxPickerRep.cpp.
|
protectedvirtual |
connects to the renderwindowinteractor
Implements cx::RepImpl.
Definition at line 405 of file cxPickerRep.cpp.
Convert a point in display to world. Based on method in vtkInteractorObserver
Definition at line 291 of file cxPickerRep.cpp.
Convert a point in world to display Based on method in vtkInteractorObserver
Definition at line 304 of file cxPickerRep.cpp.
|
protected |
Definition at line 377 of file cxPickerRep.cpp.
|
signal |
the rep sends out a signal when the user picks a point on it
|
protected |
Definition at line 392 of file cxPickerRep.cpp.
|
protected |
Get the displacement in the view plane since last event.
Definition at line 316 of file cxPickerRep.cpp.
Vector3D cx::PickerRep::getPosition | ( | ) | const |
Definition at line 443 of file cxPickerRep.cpp.
|
virtual |
returns a string identifying this class type
Implements cx::RepImpl.
Definition at line 89 of file cxPickerRep.cpp.
|
static |
for creating new instances
Definition at line 54 of file cxPickerRep.cpp.
|
protected |
Definition at line 338 of file cxPickerRep.cpp.
|
protected |
Definition at line 368 of file cxPickerRep.cpp.
|
protectedvirtual |
Reimplemented from cx::RepImpl.
Definition at line 228 of file cxPickerRep.cpp.
|
protected |
Definition at line 343 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 148 of file cxPickerRep.cpp.
|
slot |
When you use the renderwindowinteractor.
Definition at line 209 of file cxPickerRep.cpp.
|
signal |
|
staticprotected |
Definition at line 268 of file cxPickerRep.cpp.
|
protectedvirtual |
disconnects from the renderwindowinteractor
Implements cx::RepImpl.
Definition at line 430 of file cxPickerRep.cpp.
|
protected |
Definition at line 76 of file cxPickerRep.cpp.
void cx::PickerRep::setEnabled | ( | bool | on | ) |
Definition at line 248 of file cxPickerRep.cpp.
void cx::PickerRep::setGlyph | ( | MeshPtr | glyph | ) |
Definition at line 122 of file cxPickerRep.cpp.
|
protected |
Definition at line 359 of file cxPickerRep.cpp.
void cx::PickerRep::setSphereRadius | ( | double | radius | ) |
Definition at line 94 of file cxPickerRep.cpp.
void cx::PickerRep::setTool | ( | ToolPtr | tool | ) |
set the tool to listen to
Definition at line 101 of file cxPickerRep.cpp.
|
protected |
Definition at line 233 of file cxPickerRep.cpp.
|
protected |
Definition at line 110 of file cxPickerRep.h.
|
protected |
Definition at line 103 of file cxPickerRep.h.
|
protected |
Interactor connected.
Definition at line 97 of file cxPickerRep.h.
|
protected |
Definition at line 111 of file cxPickerRep.h.
|
protected |
Definition at line 96 of file cxPickerRep.h.
|
protected |
Definition at line 101 of file cxPickerRep.h.
|
protected |
Definition at line 102 of file cxPickerRep.h.
|
protected |
Definition at line 108 of file cxPickerRep.h.
|
protected |
Definition at line 104 of file cxPickerRep.h.
|
protected |
the last point that was successfully sampled from intersection with an image
Definition at line 99 of file cxPickerRep.h.
|
protected |
if set, clicking on a Data surface will pick that point
Definition at line 106 of file cxPickerRep.h.
|
protected |
Definition at line 100 of file cxPickerRep.h.
|
protected |
the connected tool
Definition at line 98 of file cxPickerRep.h.
|
protected |
Definition at line 109 of file cxPickerRep.h.