COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Public Member Functions | Private Attributes | List of all members
covise::coCallFeedback Class Reference

#include <coCallFeedback.h>

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

Classes

struct  paraRec
 

Public Member Functions

 coCallFeedback ()
 
 coCallFeedback (const coCallFeedback &orig)
 
virtual ~coCallFeedback ()
 
void init (const char *n, const char *attrib)
 
void unMask (char *string) const
 
void sendFeedback (const char *info, const char *key, const char *data=NULL)
 
void executeModule (void)
 
void copyModule ()
 
void copyModuleExec ()
 
void deleteModule ()
 
int getBooleanParam (unsigned int paraNo, int &value) const
 
int getIntScalarParam (unsigned int paraNo, int &value) const
 
int getFloatScalarParam (unsigned int paraNo, float &value) const
 
int getIntSliderParam (unsigned int paraNo, int &min, int &max, int &val) const
 
int getFloatSliderParam (unsigned int paraNo, float &min, float &max, float &val) const
 
int getIntVectorParam (unsigned int paraNo, int &numElem, int *&val) const
 
int getFloatVectorParam (unsigned int paraNo, int &numElem, float *&val) const
 
int getStringParam (unsigned int paraNo, const char *&val) const
 
int getChoiceParam (unsigned int paraNo, int &num, char **&labels, int &active) const
 
int getFileBrowserParam (unsigned int paraNo, char *&val) const
 
int getBooleanParam (const std::string &paraName, int &value) const
 
int getIntScalarParam (const std::string &paraName, int &value) const
 
int getFloatScalarParam (const std::string &paraName, float &value) const
 
int getIntSliderParam (const std::string &paraName, int &min, int &max, int &val) const
 
int getFloatSliderParam (const std::string &paraName, float &min, float &max, float &val) const
 
int getIntVectorParam (const std::string &paraName, int &numElem, int *&val) const
 
int getFloatVectorParam (const std::string &paraName, int &numElem, float *&val) const
 
int getStringParam (const std::string &paraName, const char *&val) const
 
int getChoiceParam (const std::string &paraName, int &num, char **&labels, int &active) const
 
int getFileBrowserParam (const std::string &paraName, char *&val) const
 
void setBooleanParam (const char *name, int val)
 
void setScalarParam (const char *name, float val)
 
void setScalarParam (const char *name, int val)
 
void setSliderParam (const char *name, float min, float max, float value)
 
void setSliderParam (const char *name, int min, int max, int value)
 
void setVectorParam (const char *name, int numElem, float *field)
 
void setVectorParam (const char *name, float u, float v, float w)
 
void setVectorParam (const char *name, int numElem, int *field)
 
void setVectorParam (const char *name, int u, int v, int w)
 
void setStringParam (const char *name, const char *val)
 
void setChoiceParam (const char *name, int num, const char *const *list, int pos)
 
void setFileBrowserParam (const char *name, const char *val)
 
void setChoiceParam (const char *name, int const pos)
 
void setChoiceParam (const char *name, std::string const label)
 
void setFloatSliderParam (const char *name, float const value)
 
const char * getObjName ()
 
const char * getPluginName ()
 
const char * getModuleName ()
 
int getModuleInstance ()
 
const char * getModuleHost ()
 
const char * getInfo ()
 
int getNumParam () const
 
int getNumUser () const
 
const char * getParaName (unsigned int i) const
 
const char * getParaType (unsigned int i) const
 
const char * getParaValue (unsigned int i) const
 
const char * getString (unsigned int i) const
 
void print (FILE *outfile)
 
- Public Member Functions inherited from covise::CoviseBase
 CoviseBase ()
 

Private Attributes

char * d_feedbackInfo
 
int d_refCount
 
char * d_objName
 
char * d_moduleName
 
int d_moduleInstance
 
char * d_moduleHost
 
char * d_pluginName
 
char * d_infoString
 
unsigned int d_numPara
 
unsigned int d_numUser
 
paraRecd_param
 
char ** d_user
 
char * d_splitString
 

Additional Inherited Members

- Public Types inherited from covise::CoviseBase
enum  { MAX_PORTS = 4096 }
 
enum  { ADD_OBJ, DEL_OBJ }
 
- 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 (CoviseCallback *f, void *userData)
 
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_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 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 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 (void)
 
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 const char * h_name = NULL
 
static const char * m_name = NULL
 
static const char * instance = NULL
 
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 CoviseCallbackcustomCallbackFunc = NULL
 
static voidcustomUserData = 0L
 
static voidcustomCallbackData = 0L
 
static CoviseCallbackmasterSwitchCallbackFunc = NULL
 
static voidmasterSwitchUserData = 0L
 
static CoviseParamCallbackparamCallbackFunc = NULL
 
static voidparamUserData = 0L
 
static voidparamCallbackData = 0L
 

Constructor & Destructor Documentation

covise::coCallFeedback::coCallFeedback ( )
covise::coCallFeedback::coCallFeedback ( const coCallFeedback orig)
covise::coCallFeedback::~coCallFeedback ( )
virtual

Member Function Documentation

void covise::coCallFeedback::copyModule ( )
void covise::coCallFeedback::copyModuleExec ( )
void covise::coCallFeedback::deleteModule ( )
void covise::coCallFeedback::executeModule ( void  )
int covise::coCallFeedback::getBooleanParam ( unsigned int  paraNo,
int &  value 
) const
int covise::coCallFeedback::getBooleanParam ( const std::string paraName,
int &  value 
) const
int covise::coCallFeedback::getChoiceParam ( unsigned int  paraNo,
int &  num,
char **&  labels,
int &  active 
) const
int covise::coCallFeedback::getChoiceParam ( const std::string paraName,
int &  num,
char **&  labels,
int &  active 
) const
int covise::coCallFeedback::getFileBrowserParam ( unsigned int  paraNo,
char *&  val 
) const
int covise::coCallFeedback::getFileBrowserParam ( const std::string paraName,
char *&  val 
) const
int covise::coCallFeedback::getFloatScalarParam ( unsigned int  paraNo,
float &  value 
) const
int covise::coCallFeedback::getFloatScalarParam ( const std::string paraName,
float &  value 
) const
int covise::coCallFeedback::getFloatSliderParam ( unsigned int  paraNo,
float &  min,
float &  max,
float &  val 
) const
int covise::coCallFeedback::getFloatSliderParam ( const std::string paraName,
float &  min,
float &  max,
float &  val 
) const
int covise::coCallFeedback::getFloatVectorParam ( unsigned int  paraNo,
int &  numElem,
float *&  val 
) const
int covise::coCallFeedback::getFloatVectorParam ( const std::string paraName,
int &  numElem,
float *&  val 
) const
const char* covise::coCallFeedback::getInfo ( )
inline
int covise::coCallFeedback::getIntScalarParam ( unsigned int  paraNo,
int &  value 
) const
int covise::coCallFeedback::getIntScalarParam ( const std::string paraName,
int &  value 
) const
int covise::coCallFeedback::getIntSliderParam ( unsigned int  paraNo,
int &  min,
int &  max,
int &  val 
) const
int covise::coCallFeedback::getIntSliderParam ( const std::string paraName,
int &  min,
int &  max,
int &  val 
) const
int covise::coCallFeedback::getIntVectorParam ( unsigned int  paraNo,
int &  numElem,
int *&  val 
) const
int covise::coCallFeedback::getIntVectorParam ( const std::string paraName,
int &  numElem,
int *&  val 
) const
const char* covise::coCallFeedback::getModuleHost ( )
inline
int covise::coCallFeedback::getModuleInstance ( )
inline
const char* covise::coCallFeedback::getModuleName ( )
inline
int covise::coCallFeedback::getNumParam ( ) const
inline
int covise::coCallFeedback::getNumUser ( ) const
inline
const char* covise::coCallFeedback::getObjName ( )
inline
const char * covise::coCallFeedback::getParaName ( unsigned int  i) const
const char* covise::coCallFeedback::getParaType ( unsigned int  i) const
const char* covise::coCallFeedback::getParaValue ( unsigned int  i) const
const char* covise::coCallFeedback::getPluginName ( )
inline
const char* covise::coCallFeedback::getString ( unsigned int  i) const
int covise::coCallFeedback::getStringParam ( unsigned int  paraNo,
const char *&  val 
) const
int covise::coCallFeedback::getStringParam ( const std::string paraName,
const char *&  val 
) const
void covise::coCallFeedback::init ( const char *  n,
const char *  attrib 
)

read type

read value

void covise::coCallFeedback::print ( FILE *  outfile)
void covise::coCallFeedback::sendFeedback ( const char *  info,
const char *  key,
const char *  data = NULL 
)
void covise::coCallFeedback::setBooleanParam ( const char *  name,
int  val 
)
void covise::coCallFeedback::setChoiceParam ( const char *  name,
int  num,
const char *const *  list,
int  pos 
)
void covise::coCallFeedback::setChoiceParam ( const char *  name,
int const  pos 
)
void covise::coCallFeedback::setChoiceParam ( const char *  name,
std::string const  label 
)
void covise::coCallFeedback::setFileBrowserParam ( const char *  name,
const char *  val 
)
void covise::coCallFeedback::setFloatSliderParam ( const char *  name,
float const  value 
)
void covise::coCallFeedback::setScalarParam ( const char *  name,
float  val 
)
void covise::coCallFeedback::setScalarParam ( const char *  name,
int  val 
)
void covise::coCallFeedback::setSliderParam ( const char *  name,
float  min,
float  max,
float  value 
)
void covise::coCallFeedback::setSliderParam ( const char *  name,
int  min,
int  max,
int  value 
)
void covise::coCallFeedback::setStringParam ( const char *  name,
const char *  val 
)
void covise::coCallFeedback::setVectorParam ( const char *  name,
int  numElem,
float *  field 
)
void covise::coCallFeedback::setVectorParam ( const char *  name,
float  u,
float  v,
float  w 
)
void covise::coCallFeedback::setVectorParam ( const char *  name,
int  numElem,
int *  field 
)
void covise::coCallFeedback::setVectorParam ( const char *  name,
int  u,
int  v,
int  w 
)
void covise::coCallFeedback::unMask ( char *  string) const

Member Data Documentation

char* covise::coCallFeedback::d_feedbackInfo
private
char* covise::coCallFeedback::d_infoString
private
char* covise::coCallFeedback::d_moduleHost
private
int covise::coCallFeedback::d_moduleInstance
private
char* covise::coCallFeedback::d_moduleName
private
unsigned int covise::coCallFeedback::d_numPara
private
unsigned int covise::coCallFeedback::d_numUser
private
char* covise::coCallFeedback::d_objName
private
paraRec* covise::coCallFeedback::d_param
private
char* covise::coCallFeedback::d_pluginName
private
int covise::coCallFeedback::d_refCount
private
char* covise::coCallFeedback::d_splitString
private
char** covise::coCallFeedback::d_user
private

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