NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::ReadFbgsMessage Class Reference

#include <cxReadFbgsMessage.h>

Public Types

enum  AXIS { axisX, axisY, axisZ, axisCOUNT }
 

Public Member Functions

 ReadFbgsMessage (VisServicesPtr services)
 
void readBuffer (QString buffer)
 
void setColor (QColor color)
 
vtkPolyDataPtr getPolyData ()
 
vtkActorPtr getActor ()
 
void set_prMt (Transform3D prMt)
 
void setShapePointLock (int posNumber)
 
bool createPolyData ()
 
std::vector< double > * getAxisPosVector (AXIS axis)
 
int getRangeMax ()
 
MeshPtr getMesh ()
 
bool saveMeshSnapshot ()
 

Static Public Member Functions

static QString getMeshUid ()
 

Protected Member Functions

QString getAxisString (AXIS axis)
 
void clearPolyData ()
 
void clearAxisVectors ()
 
int readPosForOneAxis (AXIS axis, QStringList &bufferList, int previousPos)
 
int getAxisStringPosition (QStringList &bufferList, AXIS axis, int startFrom)
 
bool toInt (QString string, int &value)
 
bool toDouble (QString string, double &value)
 
virtual Transform3D lockShape (int position)
 
Vector3D getDeltaPosition (int pos)
 

Protected Attributes

VisServicesPtr mServices
 
vtkPolyDataPtr mPolyData
 polydata representation of the probe, in space u More...
 
vtkActorPtr mActor
 
vtkPolyDataMapperPtr mPolyDataMapper
 
vtkPropertyPtr mProperty
 
vtkPointsPtr mPoints
 
vtkCellArrayPtr mLines
 
int mShapePointLockNumber = 0
 
Transform3D m_prMt
 
int mRangeMax = 0
 
MeshPtr mMesh
 
bool mMeshAdded = false
 
std::vector< AXISmAxis
 
std::vector< double > mXaxis
 
std::vector< double > mYaxis
 
std::vector< double > mZaxis
 

Detailed Description

Class for decoding the messages from the FBGS, and creating a vtkPolyData.

Date
2022-11-09
Author
Ole Vegard Solberg

Definition at line 36 of file cxReadFbgsMessage.h.

Member Enumeration Documentation

◆ AXIS

Enumerator
axisX 
axisY 
axisZ 
axisCOUNT 

Definition at line 39 of file cxReadFbgsMessage.h.

Constructor & Destructor Documentation

◆ ReadFbgsMessage()

cx::ReadFbgsMessage::ReadFbgsMessage ( VisServicesPtr  services)

Definition at line 33 of file cxReadFbgsMessage.cpp.

Member Function Documentation

◆ clearAxisVectors()

void cx::ReadFbgsMessage::clearAxisVectors ( )
protected

Definition at line 291 of file cxReadFbgsMessage.cpp.

◆ clearPolyData()

void cx::ReadFbgsMessage::clearPolyData ( )
protected

Definition at line 284 of file cxReadFbgsMessage.cpp.

◆ createPolyData()

bool cx::ReadFbgsMessage::createPolyData ( )

Definition at line 216 of file cxReadFbgsMessage.cpp.

◆ getActor()

vtkActorPtr cx::ReadFbgsMessage::getActor ( )

Definition at line 68 of file cxReadFbgsMessage.cpp.

◆ getAxisPosVector()

std::vector< double > * cx::ReadFbgsMessage::getAxisPosVector ( AXIS  axis)

Definition at line 114 of file cxReadFbgsMessage.cpp.

◆ getAxisString()

QString cx::ReadFbgsMessage::getAxisString ( AXIS  axis)
protected

Definition at line 94 of file cxReadFbgsMessage.cpp.

◆ getAxisStringPosition()

int cx::ReadFbgsMessage::getAxisStringPosition ( QStringList &  bufferList,
AXIS  axis,
int  startFrom 
)
protected

Definition at line 205 of file cxReadFbgsMessage.cpp.

◆ getDeltaPosition()

Vector3D cx::ReadFbgsMessage::getDeltaPosition ( int  pos)
protected

Definition at line 261 of file cxReadFbgsMessage.cpp.

◆ getMesh()

MeshPtr cx::ReadFbgsMessage::getMesh ( )

Definition at line 298 of file cxReadFbgsMessage.cpp.

◆ getMeshUid()

static QString cx::ReadFbgsMessage::getMeshUid ( )
inlinestatic

Definition at line 58 of file cxReadFbgsMessage.h.

◆ getPolyData()

vtkPolyDataPtr cx::ReadFbgsMessage::getPolyData ( )

Definition at line 63 of file cxReadFbgsMessage.cpp.

◆ getRangeMax()

int cx::ReadFbgsMessage::getRangeMax ( )

Definition at line 84 of file cxReadFbgsMessage.cpp.

◆ lockShape()

Transform3D cx::ReadFbgsMessage::lockShape ( int  position)
protectedvirtual

Definition at line 249 of file cxReadFbgsMessage.cpp.

◆ readBuffer()

void cx::ReadFbgsMessage::readBuffer ( QString  buffer)

Definition at line 134 of file cxReadFbgsMessage.cpp.

◆ readPosForOneAxis()

int cx::ReadFbgsMessage::readPosForOneAxis ( AXIS  axis,
QStringList &  bufferList,
int  previousPos 
)
protected

Definition at line 151 of file cxReadFbgsMessage.cpp.

◆ saveMeshSnapshot()

bool cx::ReadFbgsMessage::saveMeshSnapshot ( )

Definition at line 323 of file cxReadFbgsMessage.cpp.

◆ set_prMt()

void cx::ReadFbgsMessage::set_prMt ( Transform3D  prMt)

Definition at line 73 of file cxReadFbgsMessage.cpp.

◆ setColor()

void cx::ReadFbgsMessage::setColor ( QColor  color)

Definition at line 89 of file cxReadFbgsMessage.cpp.

◆ setShapePointLock()

void cx::ReadFbgsMessage::setShapePointLock ( int  posNumber)

Definition at line 79 of file cxReadFbgsMessage.cpp.

◆ toDouble()

bool cx::ReadFbgsMessage::toDouble ( QString  string,
double &  value 
)
protected

Definition at line 189 of file cxReadFbgsMessage.cpp.

◆ toInt()

bool cx::ReadFbgsMessage::toInt ( QString  string,
int &  value 
)
protected

Definition at line 180 of file cxReadFbgsMessage.cpp.

Member Data Documentation

◆ m_prMt

Transform3D cx::ReadFbgsMessage::m_prMt
protected

Definition at line 68 of file cxReadFbgsMessage.h.

◆ mActor

vtkActorPtr cx::ReadFbgsMessage::mActor
protected

Definition at line 62 of file cxReadFbgsMessage.h.

◆ mAxis

std::vector<AXIS> cx::ReadFbgsMessage::mAxis
protected

Definition at line 73 of file cxReadFbgsMessage.h.

◆ mLines

vtkCellArrayPtr cx::ReadFbgsMessage::mLines
protected

Definition at line 66 of file cxReadFbgsMessage.h.

◆ mMesh

MeshPtr cx::ReadFbgsMessage::mMesh
protected

Definition at line 70 of file cxReadFbgsMessage.h.

◆ mMeshAdded

bool cx::ReadFbgsMessage::mMeshAdded = false
protected

Definition at line 71 of file cxReadFbgsMessage.h.

◆ mPoints

vtkPointsPtr cx::ReadFbgsMessage::mPoints
protected

Definition at line 65 of file cxReadFbgsMessage.h.

◆ mPolyData

vtkPolyDataPtr cx::ReadFbgsMessage::mPolyData
protected

polydata representation of the probe, in space u

Definition at line 61 of file cxReadFbgsMessage.h.

◆ mPolyDataMapper

vtkPolyDataMapperPtr cx::ReadFbgsMessage::mPolyDataMapper
protected

Definition at line 63 of file cxReadFbgsMessage.h.

◆ mProperty

vtkPropertyPtr cx::ReadFbgsMessage::mProperty
protected

Definition at line 64 of file cxReadFbgsMessage.h.

◆ mRangeMax

int cx::ReadFbgsMessage::mRangeMax = 0
protected

Definition at line 69 of file cxReadFbgsMessage.h.

◆ mServices

VisServicesPtr cx::ReadFbgsMessage::mServices
protected

Definition at line 60 of file cxReadFbgsMessage.h.

◆ mShapePointLockNumber

int cx::ReadFbgsMessage::mShapePointLockNumber = 0
protected

Definition at line 67 of file cxReadFbgsMessage.h.

◆ mXaxis

std::vector<double> cx::ReadFbgsMessage::mXaxis
protected

Definition at line 74 of file cxReadFbgsMessage.h.

◆ mYaxis

std::vector<double> cx::ReadFbgsMessage::mYaxis
protected

Definition at line 75 of file cxReadFbgsMessage.h.

◆ mZaxis

std::vector<double> cx::ReadFbgsMessage::mZaxis
protected

Definition at line 76 of file cxReadFbgsMessage.h.


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