View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members
vistle::RhrServer Class Reference

Implement remote hybrid rendering server. More...

#include <rhr/rhrserver.h>

Classes

struct  ImageParameters
 
struct  Light
 
struct  Screen
 
struct  ViewData
 
struct  ViewParameters
 

Public Types

typedef asio::ip::tcp::socket socket
 
typedef asio::ip::tcp::acceptor acceptor
 
typedef asio::ip::address address
 
typedef std::map< std::string, vistle::RenderObject::InitialVariantVisibility > InitialVariantVisibilityMap
 
typedef std::map< std::string, bool > VariantVisibilityMap
 

Public Member Functions

 RhrServer (vistle::Module *module)
 called when plugin is loaded More...
 
 ~RhrServer ()
 
int numClients () const
 
bool isConnecting () const
 
bool isConnected () const
 
unsigned short port () const
 
unsigned short destinationPort () const
 
const std::string & destinationHost () const
 
void setClientModuleId (int roduleId)
 
int width (size_t viewNum) const
 
int height (size_t viewNum) const
 
unsigned char * rgba (size_t viewNum)
 
const unsigned char * rgba (size_t viewNum) const
 
float * depth (size_t viewNum)
 
const float * depth (size_t viewNum) const
 
void resize (size_t viewNum, int w, int h)
 
void init ()
 called after plug-in is loaded and scenegraph is initialized More...
 
bool startServer (unsigned short port)
 
bool makeConnection (const std::string &host, unsigned short port, int secondsToTry=-1)
 
void preFrame ()
 this is called before every frame, used for polling for RFB messages More...
 
ViewParameters getViewParameters (int viewNum) const
 
void invalidate (int viewNum, int x, int y, int w, int h, const ViewParameters &param, bool lastView)
 
void updateModificationCount ()
 
void setColorCodec (CompressionParameters::ColorCodec value)
 
void setDepthCodec (CompressionParameters::DepthCodec value)
 
void setColorCompression (message::CompressionMode mode)
 
void setDepthPrecision (int bits)
 
void setDepthCompression (message::CompressionMode mode)
 
void setTileSize (int w, int h)
 
void setZfpMode (CompressionParameters::ZfpMode mode)
 
void setDumpImages (bool enable)
 
int timestep () const
 
void setNumTimesteps (unsigned num)
 
size_t updateCount () const
 
const VariantVisibilityMapgetVariants () const
 
bool handleMessage (const vistle::message::Message *message, const vistle::MessagePayload &payload)
 
bool handleRemoteRenderMessage (std::shared_ptr< socket > sock, const vistle::message::RemoteRenderMessage &rr)
 
bool handleMatrices (std::shared_ptr< socket > sock, const matricesMsg &mat)
 handle matrix update message More...
 
bool handleLights (std::shared_ptr< socket > sock, const lightsMsg &light)
 handle light update message More...
 
bool handleBounds (std::shared_ptr< socket > sock, const boundsMsg &bound)
 handle request for a bounding sphere update More...
 
bool handleAnimation (std::shared_ptr< socket > sock, const animationMsg &anim)
 
bool handleVariant (std::shared_ptr< socket > sock, const variantMsg &variant)
 
size_t numViews () const
 
const vistle::Matrix4viewMat (size_t viewNum) const
 
const vistle::Matrix4projMat (size_t viewNum) const
 
const vistle::Matrix4modelMat (size_t viewNum) const
 
void setBoundingSphere (const vistle::Vector3 &center, const vistle::Scalar &radius)
 
void updateVariants (const std::vector< std::pair< std::string, vistle::RenderObject::InitialVariantVisibility > > &added, const std::vector< std::string > &removed)
 

Public Attributes

std::vector< Lightlights
 
size_t lightsUpdateCount
 

Friends

struct EncodeTask
 

Detailed Description

Implement remote hybrid rendering server.


Class Documentation

◆ vistle::RhrServer::Screen

struct vistle::RhrServer::Screen
Class Members
Vector3 hpr
Scalar hsize
Vector3 pos
Scalar vsize

Member Typedef Documentation

◆ acceptor

typedef asio::ip::tcp::acceptor vistle::RhrServer::acceptor

◆ address

typedef asio::ip::address vistle::RhrServer::address

◆ InitialVariantVisibilityMap

typedef std::map<std::string, vistle::RenderObject::InitialVariantVisibility> vistle::RhrServer::InitialVariantVisibilityMap

◆ socket

typedef asio::ip::tcp::socket vistle::RhrServer::socket

◆ VariantVisibilityMap

typedef std::map<std::string, bool> vistle::RhrServer::VariantVisibilityMap

Constructor & Destructor Documentation

◆ RhrServer()

vistle::RhrServer::RhrServer ( vistle::Module module)
explicit

called when plugin is loaded

◆ ~RhrServer()

vistle::RhrServer::~RhrServer ( )

Member Function Documentation

◆ depth() [1/2]

float * vistle::RhrServer::depth ( size_t  viewNum)

◆ depth() [2/2]

const float * vistle::RhrServer::depth ( size_t  viewNum) const

◆ destinationHost()

const std::string & vistle::RhrServer::destinationHost ( ) const

◆ destinationPort()

unsigned short vistle::RhrServer::destinationPort ( ) const

◆ getVariants()

const RhrServer::VariantVisibilityMap & vistle::RhrServer::getVariants ( ) const

◆ getViewParameters()

RhrServer::ViewParameters vistle::RhrServer::getViewParameters ( int  viewNum) const

◆ handleAnimation()

bool vistle::RhrServer::handleAnimation ( std::shared_ptr< socket sock,
const animationMsg anim 
)

◆ handleBounds()

bool vistle::RhrServer::handleBounds ( std::shared_ptr< socket sock,
const boundsMsg bound 
)

handle request for a bounding sphere update

◆ handleLights()

bool vistle::RhrServer::handleLights ( std::shared_ptr< socket sock,
const lightsMsg light 
)

handle light update message

◆ handleMatrices()

bool vistle::RhrServer::handleMatrices ( std::shared_ptr< socket sock,
const matricesMsg mat 
)

handle matrix update message

◆ handleMessage()

bool vistle::RhrServer::handleMessage ( const vistle::message::Message message,
const vistle::MessagePayload payload 
)

◆ handleRemoteRenderMessage()

bool vistle::RhrServer::handleRemoteRenderMessage ( std::shared_ptr< socket sock,
const vistle::message::RemoteRenderMessage rr 
)

◆ handleVariant()

bool vistle::RhrServer::handleVariant ( std::shared_ptr< socket sock,
const variantMsg variant 
)

◆ height()

int vistle::RhrServer::height ( size_t  viewNum) const

◆ init()

void vistle::RhrServer::init ( )

called after plug-in is loaded and scenegraph is initialized

◆ invalidate()

void vistle::RhrServer::invalidate ( int  viewNum,
int  x,
int  y,
int  w,
int  h,
const ViewParameters param,
bool  lastView 
)

◆ isConnected()

bool vistle::RhrServer::isConnected ( ) const

◆ isConnecting()

bool vistle::RhrServer::isConnecting ( ) const

◆ makeConnection()

bool vistle::RhrServer::makeConnection ( const std::string &  host,
unsigned short  port,
int  secondsToTry = -1 
)

◆ modelMat()

const vistle::Matrix4 & vistle::RhrServer::modelMat ( size_t  viewNum) const

◆ numClients()

int vistle::RhrServer::numClients ( ) const

◆ numViews()

size_t vistle::RhrServer::numViews ( ) const

◆ port()

unsigned short vistle::RhrServer::port ( ) const

◆ preFrame()

void vistle::RhrServer::preFrame ( )

this is called before every frame, used for polling for RFB messages

◆ projMat()

const vistle::Matrix4 & vistle::RhrServer::projMat ( size_t  viewNum) const

◆ resize()

void vistle::RhrServer::resize ( size_t  viewNum,
int  w,
int  h 
)

◆ rgba() [1/2]

unsigned char * vistle::RhrServer::rgba ( size_t  viewNum)

◆ rgba() [2/2]

const unsigned char * vistle::RhrServer::rgba ( size_t  viewNum) const

◆ setBoundingSphere()

void vistle::RhrServer::setBoundingSphere ( const vistle::Vector3 center,
const vistle::Scalar radius 
)

◆ setClientModuleId()

void vistle::RhrServer::setClientModuleId ( int  roduleId)

◆ setColorCodec()

void vistle::RhrServer::setColorCodec ( CompressionParameters::ColorCodec  value)

◆ setColorCompression()

void vistle::RhrServer::setColorCompression ( message::CompressionMode  mode)

◆ setDepthCodec()

void vistle::RhrServer::setDepthCodec ( CompressionParameters::DepthCodec  value)

◆ setDepthCompression()

void vistle::RhrServer::setDepthCompression ( message::CompressionMode  mode)

◆ setDepthPrecision()

void vistle::RhrServer::setDepthPrecision ( int  bits)

◆ setDumpImages()

void vistle::RhrServer::setDumpImages ( bool  enable)

◆ setNumTimesteps()

void vistle::RhrServer::setNumTimesteps ( unsigned  num)

◆ setTileSize()

void vistle::RhrServer::setTileSize ( int  w,
int  h 
)

◆ setZfpMode()

void vistle::RhrServer::setZfpMode ( CompressionParameters::ZfpMode  mode)

◆ startServer()

bool vistle::RhrServer::startServer ( unsigned short  port)

◆ timestep()

int vistle::RhrServer::timestep ( ) const

◆ updateCount()

size_t vistle::RhrServer::updateCount ( ) const

◆ updateModificationCount()

void vistle::RhrServer::updateModificationCount ( )

◆ updateVariants()

void vistle::RhrServer::updateVariants ( const std::vector< std::pair< std::string, vistle::RenderObject::InitialVariantVisibility > > &  added,
const std::vector< std::string > &  removed 
)

◆ viewMat()

const vistle::Matrix4 & vistle::RhrServer::viewMat ( size_t  viewNum) const

◆ width()

int vistle::RhrServer::width ( size_t  viewNum) const

Friends And Related Function Documentation

◆ EncodeTask

friend struct EncodeTask
friend

Member Data Documentation

◆ lights

std::vector<Light> vistle::RhrServer::lights

◆ lightsUpdateCount

size_t vistle::RhrServer::lightsUpdateCount

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