Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
CameraVisualization controls the camera according to the spatial information of the navigation data. More...
#include <mitkCameraVisualization.h>
Public Member Functions | |
mitkClassMacro (CameraVisualization, NavigationDataToNavigationDataFilter) | |
Pointer | Clone () const |
virtual void | SetDirectionOfProjectionInToolCoordinates (mitk::Vector3D _arg) |
sets the direction of projection of the camera of the renderer in tool coordinates More... | |
virtual void | SetViewUpInToolCoordinates (mitk::Vector3D _arg) |
sets the view up vector of the camera of the renderer in tool coordinates More... | |
virtual void | SetFocalLength (float _arg) |
sets the focal length of the camera More... | |
virtual mitk::Vector3D | GetDirectionOfProjectionInToolCoordinates () const |
returns the direction of projection of the camera of the renderer in tool coordinates More... | |
virtual mitk::Vector3D | GetViewUpInToolCoordinates () const |
returns the view up vector of the camera of the renderer in tool coordinates More... | |
virtual float | GetFocalLength () const |
returns the focal length of the camera More... | |
virtual void | SetRenderer (mitk::BaseRenderer *renderer) |
sets renderer that visualizes the navigation data More... | |
virtual const mitk::BaseRenderer * | GetRenderer () |
returns the renderer that visualizes the navigation data More... | |
virtual void | SetParameters (const mitk::PropertyList *p) override |
Set all filter parameters as the PropertyList p. More... | |
mitk::PropertyList::ConstPointer | GetParameters () const override |
Get all filter parameters as a PropertyList. More... | |
Public Member Functions inherited from mitk::NavigationDataToNavigationDataFilter | |
mitkClassMacro (NavigationDataToNavigationDataFilter, NavigationDataSource) | |
virtual void | SetInput (const NavigationData *nd) |
Set the input of this filter. More... | |
virtual void | SetInput (unsigned int idx, const NavigationData *nd) |
Set input with id idx of this filter. More... | |
const NavigationData * | GetInput (void) const |
Get the input of this filter. More... | |
const NavigationData * | GetInput (unsigned int idx) const |
Get the input with id idx of this filter. More... | |
const NavigationData * | GetInput (std::string navDataName) const |
Get the input with name navDataName of this filter. More... | |
DataObjectPointerArraySizeType | GetInputIndex (std::string navDataName) |
return the index of the input with name navDataName, throw std::invalid_argument exception if that name was not found More... | |
virtual void | ConnectTo (mitk::NavigationDataSource *UpstreamFilter) |
Connects the input of this filter to the outputs of the given NavigationDataSource. More... | |
Public Member Functions inherited from mitk::NavigationDataSource | |
mitkClassMacroItkParent (NavigationDataSource, itk::ProcessObject) | |
virtual std::string | GetName () |
virtual void | SetName (std::string _arg) |
Sets the human readable name of this source. There is also a default name, but you can use this method if you need to define it on your own. More... | |
NavigationData * | GetOutput (void) |
return the output (output with id 0) of the filter More... | |
NavigationData * | GetOutput (DataObjectPointerArraySizeType idx) |
return the output with id idx of the filter More... | |
NavigationData * | GetOutput (const std::string &navDataName) |
return the output with name navDataName of the filter More... | |
DataObjectPointerArraySizeType | GetOutputIndex (std::string navDataName) |
return the index of the output with name navDataName, -1 if no output with that name was found More... | |
virtual void | RegisterAsMicroservice () |
Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice(). More... | |
virtual void | UnRegisterMicroservice () |
Registers this object as a Microservice, making it available to every module and/or plugin. More... | |
std::string | GetMicroserviceID () |
Returns the id that this device is registered with. The id will only be valid, if the NavigationDataSource has been registered using RegisterAsMicroservice(). More... | |
virtual void | GraftNthOutput (unsigned int idx, itk::DataObject *graft) |
Graft the specified DataObject onto this ProcessObject's output. More... | |
virtual void | GraftOutput (itk::DataObject *graft) |
Graft the specified DataObject onto this ProcessObject's output. More... | |
virtual itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
virtual itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
virtual void | Freeze () |
virtual void | UnFreeze () |
virtual bool | GetIsFrozen () |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
CameraVisualization () | |
virtual | ~CameraVisualization () |
virtual void | GenerateData () override |
filter execute method More... | |
Protected Member Functions inherited from mitk::NavigationDataToNavigationDataFilter | |
NavigationDataToNavigationDataFilter () | |
virtual | ~NavigationDataToNavigationDataFilter () |
void | CreateOutputsForAllInputs () |
Create an output for each input. More... | |
Protected Member Functions inherited from mitk::NavigationDataSource | |
NavigationDataSource () | |
virtual | ~NavigationDataSource () |
Protected Attributes | |
mitk::BaseRenderer::Pointer | m_Renderer |
renderer that visualizes the navigation data- More... | |
Vector3D | m_DirectionOfProjectionInToolCoordinates |
vector of the direction of projection in tool coordinates More... | |
Vector3D | m_ViewUpInToolCoordinates |
view up vector in tool coordinates More... | |
Vector3D | m_DirectionOfProjection |
vector of the current direction of view of the camera in world coordinates More... | |
Point3D | m_CameraPosition |
current position of the camera More... | |
ScalarType | m_FocalLength |
focal length of the camera: distance between camera position and focal point. More... | |
Protected Attributes inherited from mitk::NavigationDataSource | |
std::string | m_Name |
bool | m_IsFrozen |
Additional Inherited Members | |
Static Public Attributes inherited from mitk::NavigationDataSource | |
static const std::string | US_INTERFACE_NAME |
These Constants are used in conjunction with Microservices. More... | |
static const std::string | US_PROPKEY_DEVICENAME |
static const std::string | US_PROPKEY_ID |
static const std::string | US_PROPKEY_ISACTIVE |
CameraVisualization controls the camera according to the spatial information of the navigation data.
Documentation The camera of the renderer will be placed at the position of the navigation data and oriented according to its orientation and the camera specific information "direction of projection", "view up", "focal length", "view angle"
Definition at line 32 of file mitkCameraVisualization.h.
|
protected |
Definition at line 27 of file mitkCameraVisualization.cpp.
References m_DirectionOfProjectionInToolCoordinates, and m_ViewUpInToolCoordinates.
|
protectedvirtual |
Definition at line 40 of file mitkCameraVisualization.cpp.
Pointer mitk::CameraVisualization::Clone | ( | ) | const |
|
overrideprotectedvirtual |
filter execute method
Documentation positions and orients camera according to the position and orientation hold in the NavigationData
Definition at line 46 of file mitkCameraVisualization.cpp.
References mitk::NavigationData::GetOrientation(), mitk::NavigationData::GetPosition(), mitk::NavigationData::Graft(), mitk::NavigationData::IsDataValid(), and mitk::New().
|
virtual |
returns the direction of projection of the camera of the renderer in tool coordinates
|
virtual |
returns the focal length of the camera
|
overridevirtual |
Get all filter parameters as a PropertyList.
Documentation This method returns a PropertyList containing the following properties (name : data type):
Reimplemented from mitk::NavigationDataSource.
Definition at line 135 of file mitkCameraVisualization.cpp.
References mitk::Vector3DProperty::New(), and mitk::PropertyList::New().
|
virtual |
returns the renderer that visualizes the navigation data
Definition at line 110 of file mitkCameraVisualization.cpp.
|
virtual |
returns the view up vector of the camera of the renderer in tool coordinates
mitk::CameraVisualization::mitkClassMacro | ( | CameraVisualization | , |
NavigationDataToNavigationDataFilter | |||
) |
|
static |
|
virtual |
sets the direction of projection of the camera of the renderer in tool coordinates
|
virtual |
sets the focal length of the camera
|
overridevirtual |
Set all filter parameters as the PropertyList p.
Documentation This method reads the following properties from the PropertyList (name : data type):
Reimplemented from mitk::NavigationDataSource.
Definition at line 116 of file mitkCameraVisualization.cpp.
References mitk::PropertyList::GetPropertyValue().
|
virtual |
sets renderer that visualizes the navigation data
Definition at line 104 of file mitkCameraVisualization.cpp.
|
virtual |
sets the view up vector of the camera of the renderer in tool coordinates
|
protected |
current position of the camera
Definition at line 120 of file mitkCameraVisualization.h.
|
protected |
vector of the current direction of view of the camera in world coordinates
Definition at line 119 of file mitkCameraVisualization.h.
|
protected |
vector of the direction of projection in tool coordinates
Definition at line 117 of file mitkCameraVisualization.h.
Referenced by CameraVisualization().
|
protected |
focal length of the camera: distance between camera position and focal point.
Definition at line 121 of file mitkCameraVisualization.h.
|
protected |
renderer that visualizes the navigation data-
Definition at line 115 of file mitkCameraVisualization.h.
|
protected |
view up vector in tool coordinates
Definition at line 118 of file mitkCameraVisualization.h.
Referenced by CameraVisualization().