Factory class of supported OpenIGTLink message types.
More...
#include <src/PlusOpenIGTLink/vtkPlusIgtlMessageFactory.h>
|
int | PackCommandMessage (igtl::MessageBase::Pointer igtlMessage, std::vector< igtl::MessageBase::Pointer > &igtlMessages) |
|
int | PackImageMessage (const PlusIgtlClientInfo &clientInfo, vtkIGSIOTransformRepository &transformRepository, const std::string &messageType, igtl::MessageBase::Pointer igtlMessage, igsioTrackedFrame &trackedFrame, std::vector< igtl::MessageBase::Pointer > &igtlMessages, int clientId) |
|
int | PackPositionMessage (const PlusIgtlClientInfo &clientInfo, vtkIGSIOTransformRepository &transformRepository, igtl::MessageBase::Pointer igtlMessage, igsioTrackedFrame &trackedFrame, std::vector< igtl::MessageBase::Pointer > &igtlMessages) |
|
int | PackStringMessage (const PlusIgtlClientInfo &clientInfo, igsioTrackedFrame &trackedFrame, igtl::MessageBase::Pointer igtlMessage, std::vector< igtl::MessageBase::Pointer > &igtlMessages) |
|
int | PackTrackedFrameMessage (igtl::MessageBase::Pointer igtlMessage, const PlusIgtlClientInfo &clientInfo, vtkIGSIOTransformRepository &transformRepository, igsioTrackedFrame &trackedFrame, std::vector< igtl::MessageBase::Pointer > &igtlMessages) |
|
int | PackTrackingDataMessage (const PlusIgtlClientInfo &clientInfo, igsioTrackedFrame &trackedFrame, vtkIGSIOTransformRepository &transformRepository, bool packValidTransformsOnly, igtl::MessageBase::Pointer igtlMessage, std::vector< igtl::MessageBase::Pointer > &igtlMessages) |
|
int | PackTransformMessage (const PlusIgtlClientInfo &clientInfo, vtkIGSIOTransformRepository &transformRepository, bool packValidTransformsOnly, igtl::MessageBase::Pointer igtlMessage, igsioTrackedFrame &trackedFrame, std::vector< igtl::MessageBase::Pointer > &igtlMessages) |
|
int | PackUsMessage (igtl::MessageBase::Pointer igtlMessage, igsioTrackedFrame &trackedFrame, std::vector< igtl::MessageBase::Pointer > &igtlMessages) |
|
| vtkPlusIgtlMessageFactory () |
|
virtual | ~vtkPlusIgtlMessageFactory () |
|
Factory class of supported OpenIGTLink message types.
This class is a factory class of supported OpenIGTLink message types to localize the message creation code.
Definition at line 35 of file vtkPlusIgtlMessageFactory.h.
◆ PointerToMessageBaseNew
typedef igtl::MessageBase::Pointer(* vtkPlusIgtlMessageFactory::PointerToMessageBaseNew) () |
◆ Superclass
◆ vtkPlusIgtlMessageFactory()
vtkPlusIgtlMessageFactory::vtkPlusIgtlMessageFactory |
( |
| ) |
|
|
protected |
◆ ~vtkPlusIgtlMessageFactory()
vtkPlusIgtlMessageFactory::~vtkPlusIgtlMessageFactory |
( |
| ) |
|
|
protectedvirtual |
◆ CreateHeaderMessage()
igtl::MessageHeader::Pointer vtkPlusIgtlMessageFactory::CreateHeaderMessage |
( |
int |
headerVersion | ) |
const |
Constructs a message header. Throws invalid_argument if headerMsg is NULL. Throws invalid_argument if this->IsValid(headerMsg) returns false. Creates message, calls InitBuffer()
Definition at line 91 of file vtkPlusIgtlMessageFactory.cxx.
◆ CreateReceiveMessage()
igtl::MessageBase::Pointer vtkPlusIgtlMessageFactory::CreateReceiveMessage |
( |
igtl::MessageHeader::Pointer |
headerMsg | ) |
const |
Constructs a message from the given populated header. Throws invalid_argument if headerMsg is NULL. Throws invalid_argument if this->IsValid(headerMsg) returns false. Creates message, sets header onto message and calls AllocateBuffer() on the message.
Definition at line 97 of file vtkPlusIgtlMessageFactory.cxx.
◆ CreateSendMessage()
igtl::MessageBase::Pointer vtkPlusIgtlMessageFactory::CreateSendMessage |
( |
const std::string & |
messageType, |
|
|
int |
headerVersion |
|
) |
| const |
Constructs an empty message from the given message type. Throws invalid_argument if messageType is empty. Creates message, sets header onto message and calls AllocateBuffer() on the message.
Definition at line 126 of file vtkPlusIgtlMessageFactory.cxx.
◆ GetClassName()
virtual const char* vtkPlusIgtlMessageFactory::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetMessageTypeNewPointer()
Get pointer to message type new function, or NULL if the message type not registered Usage: igtl::MessageBase::Pointer message = GetMessageTypeNewPointer("IMAGE")();
Definition at line 73 of file vtkPlusIgtlMessageFactory.cxx.
◆ IsA()
virtual int vtkPlusIgtlMessageFactory::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkPlusIgtlMessageFactory::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ New()
◆ PackCommandMessage()
int vtkPlusIgtlMessageFactory::PackCommandMessage |
( |
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages |
|
) |
| |
|
protected |
◆ PackImageMessage()
int vtkPlusIgtlMessageFactory::PackImageMessage |
( |
const PlusIgtlClientInfo & |
clientInfo, |
|
|
vtkIGSIOTransformRepository & |
transformRepository, |
|
|
const std::string & |
messageType, |
|
|
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages, |
|
|
int |
clientId |
|
) |
| |
|
protected |
◆ PackMessages()
PlusStatus vtkPlusIgtlMessageFactory::PackMessages |
( |
int |
clientId, |
|
|
const PlusIgtlClientInfo & |
clientInfo, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtMessages, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
bool |
packValidTransformsOnly, |
|
|
vtkIGSIOTransformRepository * |
transformRepository = NULL |
|
) |
| |
Generate and pack IGTL messages from tracked frame
- Parameters
-
clientId | Id of the client that messages will be sent to |
packValidTransformsOnly | Control whether or not to pack transform messages if they contain invalid transforms |
clientInfo | Specifies list of message types and names to generate for a client. |
igtMessages | Output list for the generated IGTL messages |
trackedFrame | Input tracked frame data used for IGTL message generation |
transformRepository | Transform repository used for computing the selected transforms |
Definition at line 142 of file vtkPlusIgtlMessageFactory.cxx.
◆ PackPositionMessage()
int vtkPlusIgtlMessageFactory::PackPositionMessage |
( |
const PlusIgtlClientInfo & |
clientInfo, |
|
|
vtkIGSIOTransformRepository & |
transformRepository, |
|
|
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages |
|
) |
| |
|
protected |
◆ PackStringMessage()
int vtkPlusIgtlMessageFactory::PackStringMessage |
( |
const PlusIgtlClientInfo & |
clientInfo, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages |
|
) |
| |
|
protected |
◆ PackTrackedFrameMessage()
int vtkPlusIgtlMessageFactory::PackTrackedFrameMessage |
( |
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
const PlusIgtlClientInfo & |
clientInfo, |
|
|
vtkIGSIOTransformRepository & |
transformRepository, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages |
|
) |
| |
|
protected |
◆ PackTrackingDataMessage()
int vtkPlusIgtlMessageFactory::PackTrackingDataMessage |
( |
const PlusIgtlClientInfo & |
clientInfo, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
vtkIGSIOTransformRepository & |
transformRepository, |
|
|
bool |
packValidTransformsOnly, |
|
|
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages |
|
) |
| |
|
protected |
◆ PackTransformMessage()
int vtkPlusIgtlMessageFactory::PackTransformMessage |
( |
const PlusIgtlClientInfo & |
clientInfo, |
|
|
vtkIGSIOTransformRepository & |
transformRepository, |
|
|
bool |
packValidTransformsOnly, |
|
|
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages |
|
) |
| |
|
protected |
◆ PackUsMessage()
int vtkPlusIgtlMessageFactory::PackUsMessage |
( |
igtl::MessageBase::Pointer |
igtlMessage, |
|
|
igsioTrackedFrame & |
trackedFrame, |
|
|
std::vector< igtl::MessageBase::Pointer > & |
igtlMessages |
|
) |
| |
|
protected |
◆ PrintAvailableMessageTypes()
void vtkPlusIgtlMessageFactory::PrintAvailableMessageTypes |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
◆ PrintSelf()
void vtkPlusIgtlMessageFactory::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
◆ SafeDownCast()
◆ IgtlFactory
igtl::MessageFactory::Pointer vtkPlusIgtlMessageFactory::IgtlFactory |
|
protected |
The documentation for this class was generated from the following files: