PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkPlusGetPolydataCommand Class Reference

This command is used to answer the OpenIGTLink message GET_POLYDATA. GET_POLYDATA returns the requested polydata. More...

#include <src/PlusServer/Commands/vtkPlusGetPolydataCommand.h>

Inheritance diagram for vtkPlusGetPolydataCommand:
Inheritance graph
[legend]
Collaboration diagram for vtkPlusGetPolydataCommand:
Collaboration graph
[legend]

Public Types

typedef vtkPlusCommand Superclass
 

Public Member Functions

virtual vtkPlusCommandClone ()
 
virtual PlusStatus Execute ()
 
virtual const char * GetClassName ()
 
virtual void GetCommandNames (std::list< std::string > &cmdNames)
 
virtual std::string GetDescription (const std::string &commandName)
 
virtual int IsA (const char *type)
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual PlusStatus ReadConfiguration (vtkXMLDataElement *aConfig)
 
void SetNameToGetPolydata ()
 
 vtkGetStdStringMacro (PolydataId)
 
 vtkSetStdStringMacro (PolydataId)
 
virtual PlusStatus WriteConfiguration (vtkXMLDataElement *aConfig)
 
- Public Member Functions inherited from vtkPlusCommand
virtual int GetClientId ()
 
virtual uint32_t GetId ()
 
virtual bool GetRespondWithCommandMessage ()
 
void PopCommandResponses (PlusCommandResponseList &responses)
 
virtual void SetClientId (int)
 
virtual void SetCommandProcessor (vtkPlusCommandProcessor *processor)
 
virtual void SetId (uint32_t)
 
void SetMetaData (const igtl::MessageBase::MetaDataMap &metaData)
 
virtual void SetRespondWithCommandMessage (bool)
 
 vtkGetStdStringMacro (Name)
 
 vtkGetStdStringMacro (DeviceName)
 
 vtkSetStdStringMacro (Name)
 
 vtkSetStdStringMacro (DeviceName)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPlusGetPolydataCommandNew ()
 
static vtkPlusGetPolydataCommandSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkPlusCommand
static PlusStatus GenerateCommandDeviceName (const std::string &uid, std::string &outDeviceName)
 
static std::string GenerateReplyDeviceName (uint32_t uid)
 
static std::string GetPrefixFromCommandDeviceName (const std::string &deviceName)
 
static std::string GetUidFromCommandDeviceName (const std::string &deviceName)
 
static bool IsCommandDeviceName (const std::string &deviceName)
 
static bool IsReplyDeviceName (const std::string &deviceName, const std::string &uid=std::string(""))
 

Protected Member Functions

PlusStatus ExecutePolydataReply (std::string &outErrorString)
 
 vtkPlusGetPolydataCommand ()
 
virtual ~vtkPlusGetPolydataCommand ()
 
- Protected Member Functions inherited from vtkPlusCommand
virtual vtkPlusDataCollectorGetDataCollector ()
 
virtual vtkIGSIOTransformRepository * GetTransformRepository ()
 
void QueueCommandResponse (PlusStatus status, const std::string &message, const std::string &error="", const igtl::MessageBase::MetaDataMap *metaData=nullptr)
 
PlusStatus ValidateName ()
 
 vtkPlusCommand ()
 
virtual ~vtkPlusCommand ()
 

Protected Attributes

std::string PolydataId
 
- Protected Attributes inherited from vtkPlusCommand
int ClientId
 
vtkPlusCommandProcessorCommandProcessor
 
PlusCommandResponseList CommandResponseQueue
 
std::string DeviceName
 
uint32_t Id
 
igtl::MessageBase::MetaDataMap MetaData
 
std::string Name
 
bool RespondWithCommandMessage
 

Additional Inherited Members

- Static Public Attributes inherited from vtkPlusCommand
static const std::string DEVICE_NAME_COMMAND = "CMD"
 
static const std::string DEVICE_NAME_REPLY = "ACK"
 

Detailed Description

This command is used to answer the OpenIGTLink message GET_POLYDATA. GET_POLYDATA returns the requested polydata.

Definition at line 18 of file vtkPlusGetPolydataCommand.h.

Member Typedef Documentation

◆ Superclass

Definition at line 23 of file vtkPlusGetPolydataCommand.h.

Constructor & Destructor Documentation

◆ vtkPlusGetPolydataCommand()

vtkPlusGetPolydataCommand::vtkPlusGetPolydataCommand ( )
protected

Definition at line 27 of file vtkPlusGetPolydataCommand.cxx.

◆ ~vtkPlusGetPolydataCommand()

vtkPlusGetPolydataCommand::~vtkPlusGetPolydataCommand ( )
protectedvirtual

Definition at line 34 of file vtkPlusGetPolydataCommand.cxx.

Member Function Documentation

◆ Clone()

virtual vtkPlusCommand* vtkPlusGetPolydataCommand::Clone ( )
inlinevirtual

Implements vtkPlusCommand.

Definition at line 25 of file vtkPlusGetPolydataCommand.h.

◆ Execute()

PlusStatus vtkPlusGetPolydataCommand::Execute ( )
virtual

Executes the command

Implements vtkPlusCommand.

Definition at line 104 of file vtkPlusGetPolydataCommand.cxx.

◆ ExecutePolydataReply()

PlusStatus vtkPlusGetPolydataCommand::ExecutePolydataReply ( std::string &  outErrorString)
protected

Prepare sending image as a response

Definition at line 123 of file vtkPlusGetPolydataCommand.cxx.

◆ GetClassName()

virtual const char* vtkPlusGetPolydataCommand::GetClassName ( )
virtual

◆ GetCommandNames()

void vtkPlusGetPolydataCommand::GetCommandNames ( std::list< std::string > &  cmdNames)
virtual

Get all the command names that this class can execute

Implements vtkPlusCommand.

Definition at line 79 of file vtkPlusGetPolydataCommand.cxx.

◆ GetDescription()

std::string vtkPlusGetPolydataCommand::GetDescription ( const std::string &  commandName)
virtual

Gets the description for the specified command name.

Implements vtkPlusCommand.

Definition at line 86 of file vtkPlusGetPolydataCommand.cxx.

◆ IsA()

virtual int vtkPlusGetPolydataCommand::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkPlusGetPolydataCommand::IsTypeOf ( const char *  type)
static

◆ New()

static vtkPlusGetPolydataCommand* vtkPlusGetPolydataCommand::New ( )
static

◆ PrintSelf()

void vtkPlusGetPolydataCommand::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Reimplemented from vtkPlusCommand.

Definition at line 39 of file vtkPlusGetPolydataCommand.cxx.

◆ ReadConfiguration()

PlusStatus vtkPlusGetPolydataCommand::ReadConfiguration ( vtkXMLDataElement *  aConfig)
virtual

Read command parameters from XML

Reimplemented from vtkPlusCommand.

Definition at line 45 of file vtkPlusGetPolydataCommand.cxx.

◆ SafeDownCast()

static vtkPlusGetPolydataCommand* vtkPlusGetPolydataCommand::SafeDownCast ( vtkObject *  o)
static

◆ SetNameToGetPolydata()

void vtkPlusGetPolydataCommand::SetNameToGetPolydata ( )

Definition at line 98 of file vtkPlusGetPolydataCommand.cxx.

◆ vtkGetStdStringMacro()

vtkPlusGetPolydataCommand::vtkGetStdStringMacro ( PolydataId  )

Id of the device

◆ vtkSetStdStringMacro()

vtkPlusGetPolydataCommand::vtkSetStdStringMacro ( PolydataId  )

◆ WriteConfiguration()

PlusStatus vtkPlusGetPolydataCommand::WriteConfiguration ( vtkXMLDataElement *  aConfig)
virtual

Write command parameters to XML

Reimplemented from vtkPlusCommand.

Definition at line 66 of file vtkPlusGetPolydataCommand.cxx.

Member Data Documentation

◆ PolydataId

std::string vtkPlusGetPolydataCommand::PolydataId
protected

Definition at line 56 of file vtkPlusGetPolydataCommand.h.


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