Logo Search packages:      
Sourcecode: ddd version File versions  Download package

Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes

PlotAgent Class Reference

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

List of all members.

Public Member Functions

void _hangup ()
void _kill (int sig=SIGKILL)
void _terminate ()
void abort ()
void add_break ()
void add_point (double x, double y, const string &v)
void add_point (int x, int y, const string &v)
void add_point (const string &v, int dim)
void add_point (int x, const string &v)
void add_point (double x, const string &v)
void addHandler (unsigned type, AgentHandlerProc proc, void *client_data=0)
void addHandler (const Agent &a)
XtAppContext appContext () const
bool beingTerminated () const
bool block_tty_input (bool state)
bool block_tty_input () const
virtual void commit ()
const StringArraydata_files () const
const StringArraydata_titles () const
int dimensions () const
virtual Agentdup () const
void end_plot ()
FILE * errorfp () const
int flush ()
int hangupTimeOut () const
int & hangupTimeOut ()
bool hasHandler (unsigned type) const
void hasNewStatus (int status)
FILE * inputfp () const
int killTimeOut () const
int & killTimeOut ()
int lastStatus () const
double max_v () const
double max_x () const
double max_y () const
double min_v () const
double min_x () const
double min_y () const
string name () const
virtual bool OK () const
FILE * outputfp () const
const stringpath () const
pid_t pid () const
 PlotAgent (XtAppContext app_context, const string &pth, unsigned nTypes=PlotAgent_NTypes)
void print (const string &filename, const PrintGC &gc=PostScriptPrintGC())
void removeAllHandlers (unsigned type)
void removeAllHandlers ()
void removeHandler (unsigned type, AgentHandlerProc proc, void *client_data=0)
bool running ()
void set_state (const string &state)
virtual void shutdown ()
virtual void start ()
void start_plot (const string &title, int ndim)
void start_with (const string &init)
virtual void terminate (bool onExit=false)
int & terminateTimeOut ()
int terminateTimeOut () const
virtual void wait ()
virtual int write (const char *data, int length)

Static Public Attributes

static string plot_2d_settings = ""
static string plot_3d_settings = ""
static AgentManager runningAgents

Protected Member Functions

virtual int _readError (const char *&data)
virtual int _readInput (const char *&data)
void add_v (double v)
void add_x (double x)
void add_y (double y)
void addDefaultHandler (unsigned type)
bool blocking_tty (FILE *fp) const
void callHandlers (int type, void *call_data=0)
virtual void callHandlersWhenIdle (int type, void *call_data=0)
void clearHandlers ()
virtual void closeChannel (FILE *fp)
virtual void dispatch (int type, const char *data, int length)
virtual void errorEOF ()
virtual void executeChild ()
AsyncAgentHandler handler (unsigned type) const
void handlerChange ()
XtInputId id (unsigned type) const
virtual void inputEOF ()
bool inputIsTerminal () const
virtual bool isIdle ()
bool onTerminal () const
bool outputIsTerminal () const
virtual void readAndDispatchError (bool expectEOF=false)
virtual void readAndDispatchInput (bool expectEOF=false)
int readError (const char *&data)
int readInput (const char *&data)
void reset ()
virtual void restoreParentIO ()
AsyncAgentHandler setHandler (unsigned type, AsyncAgentHandler handler=0)
virtual int setupChildCommunication ()
virtual int setupCommunication ()
virtual int setupParentCommunication ()
string var (const char *name, double min, double max) const
virtual void waitToTerminate ()

Static Protected Member Functions

static void defaultHandler (Agent *source, void *client_data, void *call_data)

Protected Attributes

FILE * _errorfp
FILE * _inputfp
FILE * _outputfp
string _path
HandlerList handlers

Private Attributes

IntArray dims
StringArray files
bool getting_plot_data
string init_commands
int last_ndim
int ndim
bool need_reset
std::ofstream plot_os
StringArray titles
double v_max
double v_min
StringArray values
double x_max
double x_min
double y_max
double y_min

Detailed Description

Definition at line 46 of file PlotAgent.h.


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

Generated by  Doxygen 1.6.0   Back to index