COVISE Core
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
covise::CoviseRender Class Reference

#include <RenderInterface.h>

Inheritance diagram for covise::CoviseRender:
Inheritance graph
[legend]
Collaboration diagram for covise::CoviseRender:
Collaboration graph
[legend]

Static Public Member Functions

static void set_module_description (const char *)
 
static void add_port (enum appl_port_type, const char *)
 
static void add_port (enum appl_port_type, const char *, const char *, const char *)
 
static void remove_ports ()
 
static void set_port_description (char *, char *)
 
static void set_port_default (const char *, const char *)
 
static void set_port_datatype (char *, char *)
 
static void set_port_dependency (char *, char *)
 
static void set_port_required (char *, int)
 
static void init (int argc, char *argv[])
 
static void reset ()
 
static void handleControllerMessage ()
 
static void sendFinishedMsg ()
 
static int check_and_handle_event (float time=0.0)
 
static covise::Messagecheck_event (float time=0.0)
 
static void handle_event (covise::Message *msg)
 
static void do_one_event ()
 
static void ReceiveOneMsg ()
 
static int deleteConnection ()
 
static void main_loop ()
 
static void progress_main_loop ()
 
static void set_render_callback (CoviseCallback *f, void *userData)
 
static void set_render_module_callback (voidFuncintvoidpDef *f)
 
static void set_add_object_callback (CoviseCallback *f, void *userData)
 
static void set_covise_error_callback (CoviseCallback *f, void *userData)
 
static void set_delete_object_callback (CoviseCallback *f, void *userData)
 
static void remove_render_callback ()
 
static void remove_add_object_callback ()
 
static void remove_covise_error_callback ()
 
static void remove_delete_object_callback ()
 
static int isReplace ()
 
static char * get_object_name ()
 
static char * get_render_keyword ()
 
static char * get_render_data ()
 
static void set_applMsg (Message *new_msg)
 
static Messageget_applMsg ()
 
static void send_quit_message ()
 
static void callRenderCallback (void)
 
static void callAddObjectCallback (void)
 
static void callCoviseErrorCallback (void)
 
static void callDeleteObjectCallback (void)
 
- Static Public Member Functions inherited from covise::CoviseBase
static int parseMessage (char *line, char *token[], int tmax, const char *sep)
 
static void set_progress_callback (CoviseCallback *f, void *userData)
 
static void set_quit_callback (CoviseCallback *f, void *userData)
 
static void set_quit_info_callback (CoviseCallback *f, void *userData)
 
static void set_custom_callback (const CoviseCallback2 &f)
 
static void set_param_callback (CoviseParamCallback *f, void *userData)
 
static void remove_progress_callback ()
 
static void remove_quit_callback ()
 
static void remove_quit_info_callback ()
 
static void remove_custom_callback ()
 
static void remove_param_callback ()
 
static void set_master_switch_callback (CoviseCallback *f, void *userData)
 
static void remove_master_switch_callback ()
 
static bool is_master ()
 
static int request_param (const char *name)
 
static void enable_param (const char *name)
 
static void disable_param (const char *name)
 
static void hide_param (const char *name)
 
static void show_param (const char *name)
 
static void cancel_param (const char *name)
 
static void reopen_param (const char *name)
 
static int get_reply_passwd (const char **host, const char **user, const char **passwd)
 
static int get_reply_cli (const char **command)
 
static int get_reply_int_slider (long *min, long *max, long *val)
 
static int get_reply_float_slider (float *min, float *max, float *val)
 
static int get_reply_int_vector (int pos, long *val)
 
static int get_reply_float_vector (int pos, float *val)
 
static int get_reply_int_scalar (long *val)
 
static int get_reply_int64_scalar (int64_t *val)
 
static int get_reply_float_scalar (float *val)
 
static int get_reply_boolean (int *)
 
static int get_reply_string (const char **string)
 
static int get_reply_browser (const char **file)
 
static int get_reply_timer (long *start, long *delta, long *state)
 
static int get_reply_arrayset (const char **msg_buf)
 
static int get_reply_choice (int *selected_pos)
 
static int get_reply_choice (int pos, string *choiceLabels)
 
static int get_reply_colormapchoice (int *selected_pos)
 
static int get_reply_colormapchoice (TColormapChoice *values)
 
static int get_reply_material (string *value)
 
static int get_reply_colormap (float *min, float *max, int *len, colormap_type *type)
 
static int get_reply_colormap (int pos, float *r, float *g, float *b, float *a, float *x)
 
static int get_reply_color (float *r, float *g, float *b, float *a)
 
static int update_slider_param (const char *name, long min, long max, long val)
 
static int update_slider_param (const char *name, float min, float max, float val)
 
static int update_scalar_param (const char *name, long val)
 
static int update_scalar_param (const char *name, float val)
 
static int update_vector_param (const char *name, int num, long *list)
 
static int update_vector_param (const char *name, int num, float *list)
 
static int update_string_param (const char *name, char *string)
 
static int update_text_param (const char *name, char *text, int linenum)
 
static int update_boolean_param (const char *name, int val)
 
static int update_choice_param (const char *name, int len, const char *const *list, int pos)
 
static int update_timer_param (const char *name, long start, long delta, long state)
 
static int update_colormap_param (const char *name, float min, float max, const string &cmap)
 
static int update_material_param (const char *name, const string &value)
 
static int update_colormapchoice_param (const char *name, int num, int pos, TColormapChoice *list)
 
static int update_color_param (const char *name, float r, float g, float b, float a)
 
static int get_socket_id ()
 
static const char * get_instance ()
 
static const char * get_host ()
 
static const char * get_module ()
 
static const char * get_reply_param_name ()
 
static void sendWarning (const char *fmt,...)
 send warning messages - printf style More...
 
static void sendError (const char *fmt,...)
 send warning messages - printf style More...
 
static void sendInfo (const char *string,...)
 send warning messages - printf style More...
 
static int send_message (covise_msg_type type, const char *msg_string)
 
static int send_ui_message (const char *keyword, const char *string)
 
static int send_feedback_message (const char *keyword, const char *string)
 
static void set_feedback_info (const char *string)
 
static const char * get_feedback_info ()
 
static char get_feedback_type ()
 
static void send_quit_request ()
 
static void log_message (int line, const char *file, const char *comment)
 
static FILE * fopen (const char *file, const char *mode, char **returnPath=NULL)
 
static int open (const char *file, int mode)
 
static DIR * opendir (const char *file)
 
static void getname (char *buf, const char *file, const char *addpath=NULL)
 
static bool getnameinpath (char *buf, const char *file, const char *path)
 
static void addInteractor (coDistributedObject *obj, const char *name, const char *value)
 
static void printDesc (const char *callname)
 

Static Private Member Functions

static void doParam (Message *m)
 
static void doRender (char *key, char *data)
 
static void doRenderModule (const DataHandle &dh)
 
static void doAddObject (const coDistributedObject *, char *name)
 
static void doCoviseError (const char *error)
 
static void doDeleteObject (char *name)
 
static int doQuit ()
 

Static Private Attributes

static int replaceObject = 0
 
static char * render_keyword = NULL
 
static char * render_data = NULL
 
static char * object_name = NULL
 
static voidFuncintvoidpDefrenderModuleCallbackFunc = NULL
 
static CoviseCallbackrenderCallbackFunc = NULL
 
static voidrenderUserData = 0L
 
static voidrenderCallbackData = 0L
 
static CoviseCallbackaddObjectCallbackFunc = NULL
 
static voidaddObjectUserData = 0L
 
static voidaddObjectCallbackData = 0L
 
static CoviseCallbackcoviseErrorCallbackFunc = NULL
 
static voidcoviseErrorUserData = 0L
 
static voidcoviseErrorCallbackData = 0L
 
static CoviseCallbackdeleteObjectCallbackFunc = NULL
 
static voiddeleteObjectUserData = 0L
 
static voiddeleteObjectCallbackData = 0L
 

Additional Inherited Members

- Public Types inherited from covise::CoviseBase
enum  { MAX_PORTS = 4096 }
 
enum  { ADD_OBJ , DEL_OBJ }
 
- Public Member Functions inherited from covise::CoviseBase
 CoviseBase ()
 
- Static Public Attributes inherited from covise::CoviseBase
static ApplicationProcessappmod = NULL
 
- Static Protected Member Functions inherited from covise::CoviseBase
static void remove_socket (int sock_id)
 
static std::string get_description_message ()
 
static std::string get_param_description (appl_port_type type)
 
static void doProgress ()
 
static void doCustom (Message *m)
 
static void doMasterSwitch ()
 
static void doSlaveSwitch ()
 
static void signal_handler (int signo, void *)
 
static void init_emergency_message (void)
 
static void callProgressCallback (void)
 
static void callQuitCallback (void)
 
static void callQuitInfoCallback (void)
 
static void callCustomCallback (const covise::Message &msg)
 
static void callMasterSwitchCallback (void)
 
static void callParamCallback (bool inMapLoading)
 
- Static Protected Attributes inherited from covise::CoviseBase
static int error = 0
 
static char * reply_keyword = NULL
 
static char * reply_param_name = NULL
 
static char * reply_param_type = NULL
 
static const char ** reply_buffer = NULL
 
static int no_of_reply_tokens = 0
 
static vector< stringtokenlist
 
static MessageapplMsg = NULL
 
static int socket_id = 0
 
static std::string h_name
 
static std::string m_name
 
static std::string instance
 
static Message emergency_message
 
static char * emergency_data
 
static const char * module_description = NULL
 
static bool master = false
 
static char * port_name [MAX_PORTS] = { NULL, NULL }
 
static char * port_description [MAX_PORTS]
 
static enum appl_port_type port_type [MAX_PORTS]
 
static const char * port_default [MAX_PORTS]
 
static char * port_datatype [MAX_PORTS]
 
static char * port_dependency [MAX_PORTS]
 
static int port_required [MAX_PORTS]
 
static int init_flag = 0
 
static char * feedback_info = NULL
 
static CoviseCallbackprogressCallbackFunc = NULL
 
static voidprogressUserData = 0L
 
static voidprogressCallbackData = 0L
 
static CoviseCallbackquitCallbackFunc = NULL
 
static voidquitUserData = 0L
 
static voidquitCallbackData = 0L
 
static CoviseCallbackquitInfoCallbackFunc = NULL
 
static voidquitInfoUserData = 0L
 
static voidquitInfoCallbackData = 0L
 
static CoviseCallback2 customCallbackFunc
 
static CoviseCallbackmasterSwitchCallbackFunc = NULL
 
static voidmasterSwitchUserData = 0L
 
static CoviseParamCallbackparamCallbackFunc = NULL
 
static voidparamUserData = 0L
 
static voidparamCallbackData = 0L
 

Member Function Documentation

◆ add_port() [1/2]

void CoviseRender::add_port ( enum appl_port_type  type,
const char *  name 
)
static

◆ add_port() [2/2]

void CoviseRender::add_port ( enum appl_port_type  type,
const char *  name,
const char *  dt,
const char *  descr 
)
static

◆ callAddObjectCallback()

void CoviseRender::callAddObjectCallback ( void  )
static

◆ callCoviseErrorCallback()

void CoviseRender::callCoviseErrorCallback ( void  )
static

◆ callDeleteObjectCallback()

void CoviseRender::callDeleteObjectCallback ( void  )
static

◆ callRenderCallback()

void CoviseRender::callRenderCallback ( void  )
static

◆ check_and_handle_event()

int CoviseRender::check_and_handle_event ( float  time = 0.0)
static

◆ check_event()

covise::Message * CoviseRender::check_event ( float  time = 0.0)
static

◆ deleteConnection()

int CoviseRender::deleteConnection ( )
static

◆ do_one_event()

void CoviseRender::do_one_event ( )
static

◆ doAddObject()

void CoviseRender::doAddObject ( const coDistributedObject obj,
char *  name 
)
staticprivate

◆ doCoviseError()

void CoviseRender::doCoviseError ( const char *  error)
staticprivate

◆ doDeleteObject()

void CoviseRender::doDeleteObject ( char *  name)
staticprivate

◆ doParam()

void CoviseRender::doParam ( Message m)
staticprivate

◆ doQuit()

int CoviseRender::doQuit ( )
staticprivate

◆ doRender()

void CoviseRender::doRender ( char *  key,
char *  data 
)
staticprivate

◆ doRenderModule()

void CoviseRender::doRenderModule ( const DataHandle dh)
staticprivate

◆ get_applMsg()

static Message * covise::CoviseRender::get_applMsg ( )
inlinestatic

◆ get_object_name()

static char * covise::CoviseRender::get_object_name ( )
inlinestatic

◆ get_render_data()

static char * covise::CoviseRender::get_render_data ( )
inlinestatic

◆ get_render_keyword()

static char * covise::CoviseRender::get_render_keyword ( )
inlinestatic

◆ handle_event()

void CoviseRender::handle_event ( covise::Message msg)
static

use global applMsg

◆ handleControllerMessage()

void CoviseRender::handleControllerMessage ( )
static

◆ init()

void CoviseRender::init ( int  argc,
char *  argv[] 
)
static

◆ isReplace()

int CoviseRender::isReplace ( )
static

◆ main_loop()

void CoviseRender::main_loop ( )
static

◆ progress_main_loop()

void CoviseRender::progress_main_loop ( )
static

◆ ReceiveOneMsg()

static void covise::CoviseRender::ReceiveOneMsg ( )
static

◆ remove_add_object_callback()

void CoviseRender::remove_add_object_callback ( void  )
static

◆ remove_covise_error_callback()

void CoviseRender::remove_covise_error_callback ( void  )
static

◆ remove_delete_object_callback()

void CoviseRender::remove_delete_object_callback ( void  )
static

◆ remove_ports()

void CoviseRender::remove_ports ( )
static

◆ remove_render_callback()

void CoviseRender::remove_render_callback ( void  )
static

◆ reset()

static void covise::CoviseRender::reset ( void  )
inlinestatic

◆ send_quit_message()

void CoviseRender::send_quit_message ( )
static

◆ sendFinishedMsg()

void CoviseRender::sendFinishedMsg ( )
static

◆ set_add_object_callback()

void CoviseRender::set_add_object_callback ( CoviseCallback f,
void userData 
)
static

◆ set_applMsg()

static void covise::CoviseRender::set_applMsg ( Message new_msg)
inlinestatic

◆ set_covise_error_callback()

void CoviseRender::set_covise_error_callback ( CoviseCallback f,
void userData 
)
static

◆ set_delete_object_callback()

void CoviseRender::set_delete_object_callback ( CoviseCallback f,
void userData 
)
static

◆ set_module_description()

void CoviseRender::set_module_description ( const char *  descr)
static

◆ set_port_datatype()

void CoviseRender::set_port_datatype ( char *  name,
char *  dt 
)
static

◆ set_port_default()

void CoviseRender::set_port_default ( const char *  name,
const char *  def 
)
static

◆ set_port_dependency()

static void covise::CoviseRender::set_port_dependency ( char *  ,
char *   
)
static

◆ set_port_description()

void CoviseRender::set_port_description ( char *  name,
char *  descr 
)
static

◆ set_port_required()

void CoviseRender::set_port_required ( char *  name,
int  req 
)
static

◆ set_render_callback()

void CoviseRender::set_render_callback ( CoviseCallback f,
void userData 
)
static

◆ set_render_module_callback()

void CoviseRender::set_render_module_callback ( voidFuncintvoidpDef f)
static

Member Data Documentation

◆ addObjectCallbackData

void * CoviseRender::addObjectCallbackData = 0L
staticprivate

◆ addObjectCallbackFunc

CoviseCallback * CoviseRender::addObjectCallbackFunc = NULL
staticprivate

◆ addObjectUserData

void * CoviseRender::addObjectUserData = 0L
staticprivate

◆ coviseErrorCallbackData

void * CoviseRender::coviseErrorCallbackData = 0L
staticprivate

◆ coviseErrorCallbackFunc

CoviseCallback * CoviseRender::coviseErrorCallbackFunc = NULL
staticprivate

◆ coviseErrorUserData

void * CoviseRender::coviseErrorUserData = 0L
staticprivate

◆ deleteObjectCallbackData

void * CoviseRender::deleteObjectCallbackData = 0L
staticprivate

◆ deleteObjectCallbackFunc

CoviseCallback * CoviseRender::deleteObjectCallbackFunc = NULL
staticprivate

◆ deleteObjectUserData

void * CoviseRender::deleteObjectUserData = 0L
staticprivate

◆ object_name

char * CoviseRender::object_name = NULL
staticprivate

◆ render_data

char * CoviseRender::render_data = NULL
staticprivate

◆ render_keyword

char * CoviseRender::render_keyword = NULL
staticprivate

◆ renderCallbackData

void * CoviseRender::renderCallbackData = 0L
staticprivate

◆ renderCallbackFunc

CoviseCallback * CoviseRender::renderCallbackFunc = NULL
staticprivate

◆ renderModuleCallbackFunc

voidFuncintvoidpDef * CoviseRender::renderModuleCallbackFunc = NULL
staticprivate

◆ renderUserData

void * CoviseRender::renderUserData = 0L
staticprivate

◆ replaceObject

int CoviseRender::replaceObject = 0
staticprivate

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