Fraxinus  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

Enumerator
axisX 
axisY 
axisZ 
axisCOUNT 

Definition at line 39 of file cxReadFbgsMessage.h.

Constructor & Destructor Documentation

cx::ReadFbgsMessage::ReadFbgsMessage ( VisServicesPtr  services)

Definition at line 33 of file cxReadFbgsMessage.cpp.

Member Function Documentation

void cx::ReadFbgsMessage::clearAxisVectors ( )
protected

Definition at line 291 of file cxReadFbgsMessage.cpp.

void cx::ReadFbgsMessage::clearPolyData ( )
protected

Definition at line 284 of file cxReadFbgsMessage.cpp.

bool cx::ReadFbgsMessage::createPolyData ( )

Definition at line 216 of file cxReadFbgsMessage.cpp.

vtkActorPtr cx::ReadFbgsMessage::getActor ( )

Definition at line 68 of file cxReadFbgsMessage.cpp.

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

Definition at line 114 of file cxReadFbgsMessage.cpp.

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

Definition at line 94 of file cxReadFbgsMessage.cpp.

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

Definition at line 205 of file cxReadFbgsMessage.cpp.

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

Definition at line 261 of file cxReadFbgsMessage.cpp.

MeshPtr cx::ReadFbgsMessage::getMesh ( )

Definition at line 298 of file cxReadFbgsMessage.cpp.

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

Definition at line 58 of file cxReadFbgsMessage.h.

vtkPolyDataPtr cx::ReadFbgsMessage::getPolyData ( )

Definition at line 63 of file cxReadFbgsMessage.cpp.

int cx::ReadFbgsMessage::getRangeMax ( )

Definition at line 84 of file cxReadFbgsMessage.cpp.

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

Definition at line 249 of file cxReadFbgsMessage.cpp.

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

Definition at line 134 of file cxReadFbgsMessage.cpp.

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

Definition at line 151 of file cxReadFbgsMessage.cpp.

bool cx::ReadFbgsMessage::saveMeshSnapshot ( )

Definition at line 323 of file cxReadFbgsMessage.cpp.

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

Definition at line 73 of file cxReadFbgsMessage.cpp.

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

Definition at line 89 of file cxReadFbgsMessage.cpp.

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

Definition at line 79 of file cxReadFbgsMessage.cpp.

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

Definition at line 189 of file cxReadFbgsMessage.cpp.

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

Definition at line 180 of file cxReadFbgsMessage.cpp.

Member Data Documentation

Transform3D cx::ReadFbgsMessage::m_prMt
protected

Definition at line 68 of file cxReadFbgsMessage.h.

vtkActorPtr cx::ReadFbgsMessage::mActor
protected

Definition at line 62 of file cxReadFbgsMessage.h.

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

Definition at line 73 of file cxReadFbgsMessage.h.

vtkCellArrayPtr cx::ReadFbgsMessage::mLines
protected

Definition at line 66 of file cxReadFbgsMessage.h.

MeshPtr cx::ReadFbgsMessage::mMesh
protected

Definition at line 70 of file cxReadFbgsMessage.h.

bool cx::ReadFbgsMessage::mMeshAdded = false
protected

Definition at line 71 of file cxReadFbgsMessage.h.

vtkPointsPtr cx::ReadFbgsMessage::mPoints
protected

Definition at line 65 of file cxReadFbgsMessage.h.

vtkPolyDataPtr cx::ReadFbgsMessage::mPolyData
protected

polydata representation of the probe, in space u

Definition at line 61 of file cxReadFbgsMessage.h.

vtkPolyDataMapperPtr cx::ReadFbgsMessage::mPolyDataMapper
protected

Definition at line 63 of file cxReadFbgsMessage.h.

vtkPropertyPtr cx::ReadFbgsMessage::mProperty
protected

Definition at line 64 of file cxReadFbgsMessage.h.

int cx::ReadFbgsMessage::mRangeMax = 0
protected

Definition at line 69 of file cxReadFbgsMessage.h.

VisServicesPtr cx::ReadFbgsMessage::mServices
protected

Definition at line 60 of file cxReadFbgsMessage.h.

int cx::ReadFbgsMessage::mShapePointLockNumber = 0
protected

Definition at line 67 of file cxReadFbgsMessage.h.

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

Definition at line 74 of file cxReadFbgsMessage.h.

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

Definition at line 75 of file cxReadFbgsMessage.h.

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: