![]() |
CustusX
15.4.0-beta
An IGT application
|
Provides a slice matrix based on definition and tool. More...
#include <cxSliceProxy.h>
Signals | |
void | toolTransformAndTimestamp (Transform3D prMt, double timestamp) |
forwarded from tool More... | |
void | toolVisible (bool visible) |
forwarding of visible in tool More... | |
![]() | |
void | transformChanged (Transform3D sMr) |
emitted when transform is changed. More... | |
Public Member Functions | |
virtual | ~SliceProxy () |
void | setTool (ToolPtr tool) |
void | setOrientation (ORIENTATION_TYPE orientation) |
void | setPlane (PLANE_TYPE plane) |
void | setFollowType (FOLLOW_TYPE followType) |
void | initializeFromPlane (PLANE_TYPE plane, bool useGravity, const Vector3D &gravityDir, bool useViewOffset, double viewportHeight, double toolViewOffset, bool useConstrainedViewOffset=false) |
void | setGravity (bool use, const Vector3D &dir) |
void | setToolViewOffset (bool use, double viewportHeight, double toolViewOffset, bool useConstrainedViewOffset=false) |
void | setToolViewportHeight (double viewportHeight) |
void | setDefaultCenter (const Vector3D &c) |
void | setAlwaysUseDefaultCenter (bool on) |
SliceComputer | getComputer () const |
void | setComputer (const SliceComputer &val) |
ToolPtr | getTool () |
virtual Transform3D | get_sMr () |
get slice transform, i.e. the matrix sMr transforming a point p in ref to slice space. More... | |
virtual void | printSelf (std::ostream &os, Indent indent) |
bool | getUseTooltipOffset () |
Return true if the active tools configured tool tip offset should be used for this slice proxy. More... | |
void | setUseTooltipOffset (bool) |
Enable or disable usage of the tools tool tip offset for this slice proxy. More... | |
![]() | |
virtual | ~SliceProxyInterface () |
void | printSelf (std::ostream &os, Indent indent) |
Static Public Member Functions | |
static SliceProxyPtr | create (PatientModelServicePtr dataManager) |
Provides a slice matrix based on definition and tool.
Helper class that connects to a tool and generates slice matrices based on it and other slice parameters.
Used as the slicer in Sonowand. Used as the slicer in CustusX.
Definition at line 102 of file cxSliceProxy.h.
|
virtual |
Definition at line 64 of file cxSliceProxy.cpp.
|
static |
Definition at line 45 of file cxSliceProxy.cpp.
|
virtual |
get slice transform, i.e. the matrix sMr transforming a point p in ref to slice space.
Implements cx::SliceProxyInterface.
Definition at line 268 of file cxSliceProxy.cpp.
SliceComputer cx::SliceProxy::getComputer | ( | ) | const |
Definition at line 217 of file cxSliceProxy.cpp.
ToolPtr cx::SliceProxy::getTool | ( | ) |
Definition at line 263 of file cxSliceProxy.cpp.
|
inline |
Return true if the active tools configured tool tip offset should be used for this slice proxy.
Definition at line 131 of file cxSliceProxy.h.
void cx::SliceProxy::initializeFromPlane | ( | PLANE_TYPE | plane, |
bool | useGravity, | ||
const Vector3D & | gravityDir, | ||
bool | useViewOffset, | ||
double | viewportHeight, | ||
double | toolViewOffset, | ||
bool | useConstrainedViewOffset = false |
||
) |
Group the typical plane definition uses together.
Definition at line 192 of file cxSliceProxy.cpp.
|
virtual |
Definition at line 281 of file cxSliceProxy.cpp.
void cx::SliceProxy::setAlwaysUseDefaultCenter | ( | bool | on | ) |
Definition at line 153 of file cxSliceProxy.cpp.
void cx::SliceProxy::setComputer | ( | const SliceComputer & | val | ) |
Definition at line 222 of file cxSliceProxy.cpp.
void cx::SliceProxy::setDefaultCenter | ( | const Vector3D & | c | ) |
Definition at line 147 of file cxSliceProxy.cpp.
void cx::SliceProxy::setFollowType | ( | FOLLOW_TYPE | followType | ) |
Definition at line 240 of file cxSliceProxy.cpp.
void cx::SliceProxy::setGravity | ( | bool | use, |
const Vector3D & | dir | ||
) |
Definition at line 246 of file cxSliceProxy.cpp.
void cx::SliceProxy::setOrientation | ( | ORIENTATION_TYPE | orientation | ) |
Definition at line 228 of file cxSliceProxy.cpp.
void cx::SliceProxy::setPlane | ( | PLANE_TYPE | plane | ) |
Definition at line 234 of file cxSliceProxy.cpp.
void cx::SliceProxy::setTool | ( | ToolPtr | tool | ) |
not used here, but forwarded to users
Definition at line 68 of file cxSliceProxy.cpp.
void cx::SliceProxy::setToolViewOffset | ( | bool | use, |
double | viewportHeight, | ||
double | toolViewOffset, | ||
bool | useConstrainedViewOffset = false |
||
) |
Definition at line 251 of file cxSliceProxy.cpp.
void cx::SliceProxy::setToolViewportHeight | ( | double | viewportHeight | ) |
Definition at line 257 of file cxSliceProxy.cpp.
void cx::SliceProxy::setUseTooltipOffset | ( | bool | use | ) |
Enable or disable usage of the tools tool tip offset for this slice proxy.
x
Definition at line 120 of file cxSliceProxy.cpp.
|
signal |
forwarded from tool
|
signal |
forwarding of visible in tool