Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqAccelTrol Class Reference

This class configures accelerators models. More...

#include <TxqAccelTrol.h>

Inheritance diagram for TxqAccelTrol::

TxqNldTrol TxqConfigFrame TxqMasterIoFrame TxqFrame QFrame List of all members.

Public Slots

virtual void twissPlots ()
 slot to start the Twiss Params plot. More...

virtual void monteTwissPlots ()
 slot to start the Monte Carlo Twiss Params plot. More...

virtual void dispersionPlots ()
 slot to start the Dispersion plot. More...

void saveInputFile ()
 slot to save the input file. More...


Public Methods

 TxqAccelTrol (TxAccelIfc *a, QWidget *parent=0, const char *nm=0, WFlags f=WType_TopLevel)
 The TxqAccelTrol constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods. More...

virtual ~TxqAccelTrol ()
 The TxqAccelTrol destructor. More...

void setViewMenuItems (vector< TxAttributeSet *> menuItems, vector< TxAttributeSet *> dataAttribs)
 Set the view menu items. More...

void disableSaveMenuItem (QString s)
 Allow disabling of the save menu. More...

virtual int readInputFile (const QString &inputFileName, ifstream *inputFile)
 Read the input filename. More...

void customEvent (QCustomEvent *e)
 Custom event to allow post processing from the TxqLinePlotTrol. More...


Protected Methods

virtual void start ()
 Start the model. More...

void addSaveMenuItems ()
 Add the save menu items. More...


Protected Attributes

TxAccelIfcaccelAdaptor
 The model adaptor pointer. More...


Private Attributes

TxAttributeSettwissAttrib
 The Twiss Plot window attribute. More...

TxAttributeSetmonteTwissAttrib
 The Monte Carlo Twiss Plot window attribute. More...

TxAttributeSetdispersionAttrib
 The Dispersion Plot window attribute. More...

QString inputFileName
 The input filename. More...

TxLinePlotDataplotData
 The TxLinePlotData pointer to be used from the dispersion plotting for post-processing from a thread. More...

TxqAccelWsTroldispTrol
 The dispersion plot trol. More...

int dispId
 The dispersion id number in the "View" menu. More...


Detailed Description

This class configures accelerators models.

It holds uncoupled Twiss, first and second order dispersion, and Monte Carlo Twiss attributes. It holds a TxAccelIfc pointer to access the accelator model.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqAccelTrol.h,v 1.10 2002/04/06 00:30:52 kgl Exp

Definition at line 40 of file TxqAccelTrol.h.


Constructor & Destructor Documentation

TxqAccelTrol::TxqAccelTrol ( TxAccelIfc * a,
QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

The TxqAccelTrol constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods.

Parameters:
parent   The parent Qt widget.
nm   The name of the Qt widget.
f   The window flags.
closeFlag   the close

TxqAccelTrol::~TxqAccelTrol ( ) [virtual]
 

The TxqAccelTrol destructor.


Member Function Documentation

void TxqAccelTrol::addSaveMenuItems ( ) [protected]
 

Add the save menu items.

Reimplemented from TxqConfigFrame.

void TxqAccelTrol::customEvent ( QCustomEvent * e ) [virtual]
 

Custom event to allow post processing from the TxqLinePlotTrol.

Parameters:
e   the QCustom event pointer.

Reimplemented from TxqNldTrol.

void TxqAccelTrol::disableSaveMenuItem ( QString s )
 

Allow disabling of the save menu.

Parameters:
s   the string of the menu item to disable

void TxqAccelTrol::dispersionPlots ( ) [virtual, slot]
 

slot to start the Dispersion plot.

void TxqAccelTrol::monteTwissPlots ( ) [virtual, slot]
 

slot to start the Monte Carlo Twiss Params plot.

int TxqAccelTrol::readInputFile ( const QString & inputFileName,
ifstream * inputFile ) [virtual]
 

Read the input filename.

Parameters:
the   intput file name to read
Returns:
1 if an error, else 0

void TxqAccelTrol::saveInputFile ( ) [slot]
 

slot to save the input file.

void TxqAccelTrol::setViewMenuItems ( vector< TxAttributeSet *> menuItems,
vector< TxAttributeSet *> dataAttribs ) [virtual]
 

Set the view menu items.

Parameters:
menuItems   the vector of TxAttributeSet pointers. Each menuItems element contains a TxAttributeSet which defines a menu item with special menu keywords.
dataAttribs   the vector of TxAttributeSet pointers to be used by the Txq2dPlotFrame

Reimplemented from TxqNldTrol.

void TxqAccelTrol::start ( ) [protected, virtual]
 

Start the model.

Reimplemented from TxqNldTrol.

void TxqAccelTrol::twissPlots ( ) [virtual, slot]
 

slot to start the Twiss Params plot.


Member Data Documentation

TxAccelIfc * TxqAccelTrol::accelAdaptor [protected]
 

The model adaptor pointer.

Definition at line 138 of file TxqAccelTrol.h.

int TxqAccelTrol::dispId [private]
 

The dispersion id number in the "View" menu.

Definition at line 178 of file TxqAccelTrol.h.

TxqAccelWsTrol * TxqAccelTrol::dispTrol [private]
 

The dispersion plot trol.

Definition at line 173 of file TxqAccelTrol.h.

TxAttributeSet * TxqAccelTrol::dispersionAttrib [private]
 

The Dispersion Plot window attribute.

Definition at line 156 of file TxqAccelTrol.h.

QString TxqAccelTrol::inputFileName [private]
 

The input filename.

Definition at line 161 of file TxqAccelTrol.h.

TxAttributeSet * TxqAccelTrol::monteTwissAttrib [private]
 

The Monte Carlo Twiss Plot window attribute.

Definition at line 151 of file TxqAccelTrol.h.

TxLinePlotData * TxqAccelTrol::plotData [private]
 

The TxLinePlotData pointer to be used from the dispersion plotting for post-processing from a thread.

Definition at line 168 of file TxqAccelTrol.h.

TxAttributeSet * TxqAccelTrol::twissAttrib [private]
 

The Twiss Plot window attribute.

Definition at line 146 of file TxqAccelTrol.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.