 |
VTK
9.1.0
|
Go to the documentation of this file.
19 #ifndef vtkVRCollaborationClient_h
20 #define vtkVRCollaborationClient_h
25 #include "vtkRenderingVRModule.h"
27 #include "vtksys/CommandLineArguments.hxx"
40 class vtkVRCollaborationClientInternal;
82 std::shared_ptr<void>
Data;
166 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
185 std::map<std::string, vtkSmartPointer<vtkOpenGLAvatar>>
Avatars;
bool GetDouble(double &result)
std::map< std::string, double[vtkEventDataNumberOfDevices]> AvatarUpdateTime
vtkVRCollaborationClient(const vtkVRCollaborationClient &)=delete
void SendAMessage(std::string const &msgType)
method signatures to send messages with Arguments and extract them out of messages
vtkCallbackCommand * EventCommand
void UpdateAvatarPoseFromCamera()
void SendLatestDevicePoses()
void SetInt32(int32_t val)
static void EventCallback(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
double YourLastAvatarUpdateTime
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool GetStringVector(std::vector< std::string > &result)
vtkNew< vtkTransform > TempTransform
vtkVRCollaborationClient()
std::function< void(std::string const &data, vtkLogger::Verbosity)> Callback
Hold a reference to a vtkObjectBase instance.
abstract base class for most VTK objects
void SetCollabPort(int val)
static vtkVRCollaborationClient * New()
void SetString(std::string const &in)
std::vector< Argument > GetMessageArguments()
method signatures to send messages with Arguments and extract them out of messages
void SetScaleCallback(std::function< double()> cb)
vtkVRCollaborationClient & operator=(const vtkVRCollaborationClient &)=delete
void SetCollabHost(std::string const &val)
bool GetDoubleVector(std::vector< double > &result)
bool GetString(std::string &result)
void SetDouble(double val)
vtkVRCollaborationClientInternal * Internal
void HandleCollabMessage()
void SendAMessage(std::string const &msgType, std::vector< Argument > const &args)
method signatures to send messages with Arguments and extract them out of messages
const int vtkEventDataNumberOfDevices
void SetCollabName(std::string const &val)
vtkSmartPointer< vtkOpenGLAvatar > GetAvatar(std::string id)
void SetInt32Vector(int32_t const *in, uint16_t size)
a simple class to control print indentation
bool AvatarIdle(std::string id)
void SendPoseMessage(std::string const &msgType, int index, double pos[3], double dir[3])
method signatures to send messages with Arguments and extract them out of messages
std::array< double, 4 > Orientation
virtual void HandleBroadcastMessage(std::string const &otherID, std::string const &type)
vtkOpenGLRenderWindow * RenderWindow
std::array< double, 3 > Position
std::string CollabSession
bool GetInt32Vector(std::vector< int32_t > &result)
vtkOpenGLRenderer * GetRenderer()
void SetCollabSession(std::string const &val)
std::map< std::string, vtkSmartPointer< vtkOpenGLAvatar > > Avatars
supports function callbacks
std::shared_ptr< void > Data
virtual bool Initialize(vtkOpenGLRenderer *)
void SetStringVector(std::vector< std::string > const &in)
void SetDoubleVector(double const *in, uint16_t size)
bool GetInt32(int32_t &result)
vtkOpenGLRenderer * Renderer
std::function< double()> ScaleCallback
virtual void AddArguments(vtksys::CommandLineArguments &arguments)
~vtkVRCollaborationClient() override
void SetLogCallback(std::function< void(std::string const &data, vtkLogger::Verbosity verbosity)> cb)
void Log(vtkLogger::Verbosity verbosity, std::string const &msg)