Commit a40ac18e authored by hrchilds's avatar hrchilds

Update from July 21, 2003

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@39 18c085ea-50e0-402c-830e-de6fd14e8384
parent 2b1795bf
......@@ -96,13 +96,12 @@ MILI=Mili
PDB=KullLite PDB
SAF=SAF
SAMPLES=Rect Hex
SAMRAI=SAMRAI
REQUIRED=BOV Curve2D EnSight Lines PLOT3D Point3D STL Silo Spheral VTK WavefrontOBJ
OPTIONAL=
OPTIONAL=SAMRAI
SUBDIRS=$(REQUIRED) @DB_OPTIONAL_DIRS@ @EXODUS@ @SAMRAI@ @SAF@ @HDF4@ @HDF5@ @PDB@ @MILI@
ALLSUBDIRS=$(REQUIRED) $(EXODUS) $(SAMRAI) $(SAF) $(HDF4) $(HDF5) $(MILI) $(PDB) $(SAMPLES)
SUBDIRS=$(REQUIRED) @DB_OPTIONAL_DIRS@ @EXODUS@ @SAF@ @HDF4@ @HDF5@ @PDB@ @MILI@
ALLSUBDIRS=$(REQUIRED) $(EXODUS) $(SAF) $(HDF4) $(HDF5) $(MILI) $(PDB) $(SAMPLES) $(OPTIONAL)
message:
@echo
......
<?xml version="1.0"?>
<Plugin name="SAMRAI" type="database" label="SAMRAI" version="1.0" dbtype="MTMD">
<Extensions> samrai </Extensions>
<CXXFLAGS> -I/usr/apps/hdf5/serial-1.4.5-post2/include </CXXFLAGS>
<LIBS> -L/usr/apps/hdf5/serial-1.4.5-post2/lib -Wl,-Bstatic -lhdf5 -Wl,-Bdynamic </LIBS>
<CXXFLAGS> $(HDF5_INCLUDE) </CXXFLAGS>
<LIBS> $(HDF5_LIB) </LIBS>
</Plugin>
\ No newline at end of file
......@@ -136,6 +136,9 @@
# Hank Childs, Tue Jul 1 21:02:24 PDT 2003
# Added SurfCompPrep.
#
# Akira Haddox, Mon Jul 21 09:58:22 PDT 2003
# Added RemoveCells.
#
##############################################################################
@SET_MAKE@
......@@ -144,7 +147,8 @@ all: message
for dir in $(SUBDIRS); do (cd $$dir && $(MAKE) $@) || exit 1; done
OPTIONAL=Context ConnCompReduce Decimate Displace ExternalSurface \
InverseGhostZone MetricThreshold Revolve SiloDump SurfCompPrep Tube
InverseGhostZone MetricThreshold RemoveCells Revolve SiloDump \
SurfCompPrep Tube
REQUIRED=Box Clip Cone IndexSelect Isosurface Lineout OnionPeel Reflect \
Slice SphereSlice ThreeSlice Threshold Transform
......
This diff is collapsed.
#ifndef PY_REMOVECELLSATTRIBUTES_H
#define PY_REMOVECELLSATTRIBUTES_H
#include <Python.h>
#include <RemoveCellsAttributes.h>
//
// Functions exposed to the VisIt module.
//
void PyRemoveCellsAttributes_StartUp(RemoveCellsAttributes *subj, FILE *logFile);
void PyRemoveCellsAttributes_CloseDown();
PyMethodDef *PyRemoveCellsAttributes_GetMethodTable(int *nMethods);
bool PyRemoveCellsAttributes_Check(PyObject *obj);
RemoveCellsAttributes *PyRemoveCellsAttributes_FromPyObject(PyObject *obj);
PyObject *PyRemoveCellsAttributes_NewPyObject();
PyObject *PyRemoveCellsAttributes_WrapPyObject(const RemoveCellsAttributes *attr);
void PyRemoveCellsAttributes_SetLogging(bool val);
void PyRemoveCellsAttributes_SetDefaults(const RemoveCellsAttributes *atts);
#endif
This diff is collapsed.
#ifndef QVISREMOVECELLSWINDOW_H
#define QVISREMOVECELLSWINDOW_H
#include <QvisOperatorWindow.h>
#include <AttributeSubject.h>
class RemoveCellsAttributes;
class QLabel;
class QCheckBox;
class QLineEdit;
class QSpinBox;
class QVBox;
class QButtonGroup;
class QListBox;
class QListBoxItem;
class QvisColorTableButton;
class QvisOpacitySlider;
class QvisColorButton;
class QvisLineStyleWidget;
class QvisLineWidthWidget;
// ****************************************************************************
// Class: QvisRemoveCellsWindow
//
// Purpose:
// Defines QvisRemoveCellsWindow class.
//
// Notes: This class was automatically generated!
// Programmer: xml2window
// Creation: Thu Jul 17 15:33:35 PST 2003
//
// Modifications:
//
// ****************************************************************************
class QvisRemoveCellsWindow : public QvisOperatorWindow
{
Q_OBJECT
public:
QvisRemoveCellsWindow(const int type,
RemoveCellsAttributes *subj,
const char *caption = 0,
const char *shortName = 0,
QvisNotepadArea *notepad = 0);
virtual ~QvisRemoveCellsWindow();
virtual void CreateWindowContents();
protected:
void UpdateWindow(bool doAll);
virtual void GetCurrentValues(int which_widget);
private slots:
void cellProcessText();
void domainProcessText();
void addButtonClicked();
void removeButtonClicked();
void changeButtonClicked();
void listSelected(int index);
private:
QLineEdit *cell;
QLineEdit *domain;
QListBox *cellList;
QPushButton *addButton;
QPushButton *removeButton;
QPushButton *changeButton;
RemoveCellsAttributes *atts;
bool buildingList;
};
#endif
<?xml version="1.0"?>
<Plugin name="RemoveCells" type="operator" label="RemoveCells" version="1.0" iconFile="RemoveCells.xpm">
<Attribute name="RemoveCellsAttributes" purpose="This class contains attributes for the RemoveCells operator." persistent="true">
<Field name="cell" label="cell" type="int">
0
</Field>
<Field name="domain" label="domain" type="int">
0
</Field>
<Field name="cellList" label="cellList" type="intVector">
</Field>
<Field name="domainList" label="domainList" type="intVector">
</Field>
</Attribute>
</Plugin>
/* XPM */
static const char * RemoveCells_xpm[] = {
"32 32 9 1",
" c None",
". c #7E00AF",
"+ c #000000",
"@ c #001E8C",
"# c #00459B",
"$ c #7D4893",
"% c #005BD3",
"& c #088E39",
"* c #999999",
"..+@@@@@@@+@@@@@@+@@@@@@+ ",
"...+++++++++++++++++++++++ ",
"...+#######++@@@@@@+#####+ ",
"...+#######+$+@@@@@@+####+ ",
"+..+#######+$$+@@@@@@+###+ ",
".+.+#######+$$+++++++++##+ ",
"..++#######+$$$+%%%%%%+##+ ",
"...+++++++++$$$+%%%%%%++++ ",
"...++&&&&&&&+$$+%%%%%%+&&&+ ",
"...+.+&&&&&&&+$+%%%%%%+&&&&+ ",
"+..+..+&&&&&&&++%%%%%%+&&&&&+ ",
".+.+...+++++++++++++++++++++++ ",
"..++....+%%%%%%+%%%%%%+%%%%%%+ ",
"...+....+%%%%%%+%%%%%%+%%%%%%+ ",
"...++...+%%%%%%+%%%%%%+%%%%%%+* ",
"...+#+..+%%%%%%+%%%%%%+%%%%%%+* ",
"+..+##+.+%%%%%%+%%%%%%+%%%%%%+ ",
".+.+###+++++++++++++++++++++++ ",
"..++#######+$$$+%%%%%%+%%%%%%+ ",
"...+++++++++$$$+%%%%%%+%%%%%%+ ",
"...++&&&&&&&+$$+%%%%%%+%%%%%%+ ",
"...+.+&&&&&&&+$+%%%%%%+%%%%%%+ ",
"+..+..+&&&&&&&++%%%%%%+%%%%%%+ ",
" +.+...+++++++++++++++++++++++ ",
" ++....+%%%%%%+###+$$+%%%%%%+ ",
" +....+%%%%%%+###+$$+%%%%%%+ ",
" +...+%%%%%%+++++$$+%%%%%%+* ",
" +..+%%%%%%+ +$+%%%%%%+ ",
" +.+%%%%%%+ *++%%%%%%+ ",
" +++++++++ ++++++++ ",
" * ",
" "};
This diff is collapsed.
#ifndef REMOVECELLSATTRIBUTES_H
#define REMOVECELLSATTRIBUTES_H
#include <AttributeSubject.h>
// ****************************************************************************
// Class: RemoveCellsAttributes
//
// Purpose:
// This class contains attributes for the RemoveCells operator.
//
// Notes: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// Modifications:
//
// ****************************************************************************
class RemoveCellsAttributes : public AttributeSubject
{
public:
RemoveCellsAttributes();
RemoveCellsAttributes(const RemoveCellsAttributes &obj);
virtual ~RemoveCellsAttributes();
virtual void operator = (const RemoveCellsAttributes &obj);
virtual bool operator == (const RemoveCellsAttributes &obj) const;
virtual bool operator != (const RemoveCellsAttributes &obj) const;
virtual const std::string TypeName() const;
virtual bool CopyAttributes(const AttributeGroup *);
virtual AttributeSubject *CreateCompatible(const std::string &) const;
// Property selection methods
virtual void SelectAll();
void SelectCellList();
void SelectDomainList();
// Property setting methods
void SetCell(int cell_);
void SetDomain(int domain_);
void SetCellList(const intVector &cellList_);
void SetDomainList(const intVector &domainList_);
// Property getting methods
int GetCell() const;
int GetDomain() const;
const intVector &GetCellList() const;
intVector &GetCellList();
const intVector &GetDomainList() const;
intVector &GetDomainList();
// Persistence methods
virtual bool CreateNode(DataNode *node, bool forceAdd);
virtual void SetFromNode(DataNode *node);
// Keyframing methods
virtual std::string GetFieldName(int index) const;
virtual AttributeGroup::FieldType GetFieldType(int index) const;
virtual std::string GetFieldTypeName(int index) const;
virtual bool FieldsEqual(int index, const AttributeGroup *rhs) const;
private:
int cell;
int domain;
intVector cellList;
intVector domainList;
};
#endif
package llnl.visit.operators;
import llnl.visit.AttributeSubject;
import llnl.visit.CommunicationBuffer;
import llnl.visit.Plugin;
import java.lang.Integer;
import java.util.Vector;
// ****************************************************************************
// Class: RemoveCellsAttributes
//
// Purpose:
// This class contains attributes for the RemoveCells operator.
//
// Notes: Autogenerated by xml2java.
//
// Programmer: xml2java
// Creation: Mon Jul 21 09:53:51 PDT 2003
//
// Modifications:
//
// ****************************************************************************
public class RemoveCellsAttributes extends AttributeSubject implements Plugin
{
public RemoveCellsAttributes()
{
super(4);
cell = 0;
domain = 0;
cellList = new Vector();
domainList = new Vector();
}
public RemoveCellsAttributes(RemoveCellsAttributes obj)
{
super(4);
int i;
cell = obj.cell;
domain = obj.domain;
cellList = new Vector();
for(i = 0; i < obj.cellList.size(); ++i)
{
Integer iv = (Integer)obj.cellList.elementAt(i);
cellList.addElement(new Integer(iv.intValue()));
}
domainList = new Vector();
for(i = 0; i < obj.domainList.size(); ++i)
{
Integer iv = (Integer)obj.domainList.elementAt(i);
domainList.addElement(new Integer(iv.intValue()));
}
SelectAll();
}
public boolean equals(RemoveCellsAttributes obj)
{
int i;
// Create the return value
return ((cell == obj.cell) &&
(domain == obj.domain) &&
(cellList == obj.cellList) &&
(domainList == obj.domainList));
}
public String GetName() { return "RemoveCells"; }
public String GetVersion() { return "1.0"; }
// Property setting methods
public void SetCell(int cell_)
{
cell = cell_;
Select(0);
}
public void SetDomain(int domain_)
{
domain = domain_;
Select(1);
}
public void SetCellList(Vector cellList_)
{
cellList = cellList_;
Select(2);
}
public void SetDomainList(Vector domainList_)
{
domainList = domainList_;
Select(3);
}
// Property getting methods
public int GetCell() { return cell; }
public int GetDomain() { return domain; }
public Vector GetCellList() { return cellList; }
public Vector GetDomainList() { return domainList; }
// Write and read methods.
public void WriteAtts(CommunicationBuffer buf)
{
if(WriteSelect(0, buf))
buf.WriteInt(cell);
if(WriteSelect(1, buf))
buf.WriteInt(domain);
if(WriteSelect(2, buf))
buf.WriteIntVector(cellList);
if(WriteSelect(3, buf))
buf.WriteIntVector(domainList);
}
public void ReadAtts(int n, CommunicationBuffer buf)
{
for(int i = 0; i < n; ++i)
{
int index = (int)buf.ReadByte();
switch(index)
{
case 0:
SetCell(buf.ReadInt());
break;
case 1:
SetDomain(buf.ReadInt());
break;
case 2:
SetCellList(buf.ReadIntVector());
break;
case 3:
SetDomainList(buf.ReadIntVector());
break;
}
}
}
// Attributes
private int cell;
private int domain;
private Vector cellList; // vector of Integer objects
private Vector domainList; // vector of Integer objects
}
// ************************************************************************* //
// File: RemoveCellsCommonPluginInfo.C
// ************************************************************************* //
#include <RemoveCellsPluginInfo.h>
#include <RemoveCellsAttributes.h>
// ****************************************************************************
// Method: RemoveCellsCommonPluginInfo::AllocAttributes
//
// Purpose:
// Return a pointer to a newly allocated attribute subject.
//
// Returns: A pointer to the newly allocated attribute subject.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
AttributeSubject *
RemoveCellsCommonPluginInfo::AllocAttributes()
{
return new RemoveCellsAttributes;
}
// ****************************************************************************
// Method: RemoveCellsCommonPluginInfo::CopyAttributes
//
// Purpose:
// Copy a RemoveCells attribute subject.
//
// Arguments:
// to The destination attribute subject.
// from The source attribute subject.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
void
RemoveCellsCommonPluginInfo::CopyAttributes(AttributeSubject *to,
AttributeSubject *from)
{
*((RemoveCellsAttributes *) to) = *((RemoveCellsAttributes *) from);
}
// ************************************************************************* //
// File: RemoveCellsEnginePluginInfo.C
// ************************************************************************* //
#include <RemoveCellsPluginInfo.h>
#include <avtRemoveCellsFilter.h>
// ****************************************************************************
// Function: GetEngineInfo
//
// Purpose:
// Return a new EnginePluginInfo for the RemoveCells operator.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
extern "C" EngineOperatorPluginInfo* GetEngineInfo()
{
return new RemoveCellsEnginePluginInfo;
}
// ****************************************************************************
// Method: RemoveCellsEnginePluginInfo::AllocAvtPluginFilter
//
// Purpose:
// Return a pointer to a newly allocated avtPluginFilter.
//
// Returns: A pointer to the newly allocated avtPluginFilter.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
avtPluginFilter *
RemoveCellsEnginePluginInfo::AllocAvtPluginFilter()
{
return new avtRemoveCellsFilter;
}
// ************************************************************************* //
// File: RemoveCellsGUIPluginInfo.C
// ************************************************************************* //
#include <RemoveCellsPluginInfo.h>
#include <RemoveCellsAttributes.h>
#include <QvisRemoveCellsWindow.h>
// ****************************************************************************
// Function: GetGUIInfo
//
// Purpose:
// Return a new GUIPluginInfo for the RemoveCells operator.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
extern "C" GUIOperatorPluginInfo* GetGUIInfo()
{
return new RemoveCellsGUIPluginInfo;
}
// ****************************************************************************
// Method: RemoveCellsGUIPluginInfo::GetMenuName
//
// Purpose:
// Return a pointer to the name to use in the GUI menu.
//
// Returns: A pointer to the name to use in the GUI menu.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
const char *
RemoveCellsGUIPluginInfo::GetMenuName() const
{
return "RemoveCells";
}
// ****************************************************************************
// Method: RemoveCellsGUIPluginInfo::CreatePluginWindow
//
// Purpose:
// Return a pointer to an operator's attribute window.
//
// Arguments:
// type The type of the operator.
// attr The attribute subject for the operator.
// notepad The notepad to use for posting the window.
//
// Returns: A pointer to the operator's attribute window.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
QvisPostableWindowObserver *
RemoveCellsGUIPluginInfo::CreatePluginWindow(int type, AttributeSubject *attr,
QvisNotepadArea *notepad)
{
return new QvisRemoveCellsWindow(type, (RemoveCellsAttributes *)attr,
"RemoveCells operator attributes", "RemoveCells operator", notepad);
}
// ****************************************************************************
// Method: RemoveCellsGUIPluginInfo::XPMIconData
//
// Purpose:
// Return a pointer to the icon data.
//
// Returns: A pointer to the icon data.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
#include <RemoveCells.xpm>
const char **
RemoveCellsGUIPluginInfo::XPMIconData() const
{
return RemoveCells_xpm;
}
// ************************************************************************* //
// File: RemoveCellsPluginInfo.C
// ************************************************************************* //
#include <RemoveCellsPluginInfo.h>
#include <RemoveCellsAttributes.h>
// ****************************************************************************
// Function: GetGeneralInfo
//
// Purpose:
// Return a new GeneralPluginInfo for the RemoveCells operator.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
extern "C" GeneralOperatorPluginInfo* GetGeneralInfo()
{
return new RemoveCellsGeneralPluginInfo;
}
// ****************************************************************************
// Method: RemoveCellsGeneralPluginInfo::GetName
//
// Purpose:
// Return the name of the operator plugin.
//
// Returns: A pointer to the name of the operator plugin.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
char *
RemoveCellsGeneralPluginInfo::GetName() const
{
return "RemoveCells";
}
// ****************************************************************************
// Method: RemoveCellsGeneralPluginInfo::GetVersion
//
// Purpose:
// Return the version of the operator plugin.
//
// Returns: A pointer to the version of the operator plugin.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
char *
RemoveCellsGeneralPluginInfo::GetVersion() const
{
return "1.0";
}
// ****************************************************************************
// Method: RemoveCellsGeneralPluginInfo::GetID
//
// Purpose:
// Return the id of the operator plugin.
//
// Returns: A pointer to the id of the operator plugin.
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// ****************************************************************************
char *
RemoveCellsGeneralPluginInfo::GetID() const
{
return "RemoveCells_1.0";
}
// ************************************************************************* //
// File: RemoveCellsPluginInfo.h
// ************************************************************************* //
#ifndef REMOVECELLS_PLUGIN_INFO_H
#define REMOVECELLS_PLUGIN_INFO_H
#include <OperatorPluginInfo.h>
#include <operator_plugin_exports.h>
class RemoveCellsAttributes;
// ****************************************************************************
// Class: RemoveCellsPluginInfo
//
// Purpose:
// Five classes that provide all the information about an RemoveCells operator
//
// Programmer: haddox1 -- generated by xml2info
// Creation: Mon Jul 21 09:53:49 PDT 2003
//
// Modifications:
//
// ****************************************************************************
class RemoveCellsGeneralPluginInfo : public virtual GeneralOperatorPluginInfo
{
public:
virtual char *GetName() const;
virtual char *GetVersion() const;
virtual char *GetID() const;
};
class RemoveCellsCommonPluginInfo : public virtual CommonOperatorPluginInfo, public virtual RemoveCellsGeneralPluginInfo
{
public: