Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::SliceProxy Class Reference

Provides a slice matrix based on definition and tool. More...

#include <cxSliceProxy.h>

Inheritance diagram for cx::SliceProxy:
cx::SliceProxyInterface

Signals

void toolTransformAndTimestamp (Transform3D prMt, double timestamp)
 forwarded from tool More...
 
void toolVisible (bool visible)
 forwarding of visible in tool More...
 
- Signals inherited from cx::SliceProxyInterface
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...
 
- Public Member Functions inherited from cx::SliceProxyInterface
virtual ~SliceProxyInterface ()
 
void printSelf (std::ostream &os, Indent indent)
 

Static Public Member Functions

static SliceProxyPtr create (PatientModelServicePtr dataManager)
 

Detailed Description

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.

Constructor & Destructor Documentation

cx::SliceProxy::~SliceProxy ( )
virtual

Definition at line 66 of file cxSliceProxy.cpp.

Member Function Documentation

SliceProxyPtr cx::SliceProxy::create ( PatientModelServicePtr  dataManager)
static

Definition at line 45 of file cxSliceProxy.cpp.

Transform3D cx::SliceProxy::get_sMr ( )
virtual

get slice transform, i.e. the matrix sMr transforming a point p in ref to slice space.

Implements cx::SliceProxyInterface.

Definition at line 267 of file cxSliceProxy.cpp.

SliceComputer cx::SliceProxy::getComputer ( ) const

Definition at line 216 of file cxSliceProxy.cpp.

ToolPtr cx::SliceProxy::getTool ( )

Definition at line 262 of file cxSliceProxy.cpp.

bool cx::SliceProxy::getUseTooltipOffset ( )
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 191 of file cxSliceProxy.cpp.

void cx::SliceProxy::printSelf ( std::ostream &  os,
Indent  indent 
)
virtual

Definition at line 280 of file cxSliceProxy.cpp.

void cx::SliceProxy::setAlwaysUseDefaultCenter ( bool  on)

Definition at line 161 of file cxSliceProxy.cpp.

void cx::SliceProxy::setComputer ( const SliceComputer val)

Definition at line 221 of file cxSliceProxy.cpp.

void cx::SliceProxy::setDefaultCenter ( const Vector3D c)

Definition at line 155 of file cxSliceProxy.cpp.

void cx::SliceProxy::setFollowType ( FOLLOW_TYPE  followType)

Definition at line 239 of file cxSliceProxy.cpp.

void cx::SliceProxy::setGravity ( bool  use,
const Vector3D dir 
)

Definition at line 245 of file cxSliceProxy.cpp.

void cx::SliceProxy::setOrientation ( ORIENTATION_TYPE  orientation)

Definition at line 227 of file cxSliceProxy.cpp.

void cx::SliceProxy::setPlane ( PLANE_TYPE  plane)

Definition at line 233 of file cxSliceProxy.cpp.

void cx::SliceProxy::setTool ( ToolPtr  tool)

not used here, but forwarded to users

Definition at line 76 of file cxSliceProxy.cpp.

void cx::SliceProxy::setToolViewOffset ( bool  use,
double  viewportHeight,
double  toolViewOffset,
bool  useConstrainedViewOffset = false 
)

Definition at line 250 of file cxSliceProxy.cpp.

void cx::SliceProxy::setToolViewportHeight ( double  viewportHeight)

Definition at line 256 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 128 of file cxSliceProxy.cpp.

void cx::SliceProxy::toolTransformAndTimestamp ( Transform3D  prMt,
double  timestamp 
)
signal

forwarded from tool

void cx::SliceProxy::toolVisible ( bool  visible)
signal

forwarding of visible in tool


The documentation for this class was generated from the following files: