Commit f8c68bba authored by bonnell's avatar bonnell

regen operator python and java files to sync with latest generator

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@13756 18c085ea-50e0-402c-830e-de6fd14e8384
parent 4e629460
......@@ -76,6 +76,25 @@ PyAMRStitchCellAttributes_ToString(const AMRStitchCellAttributes *atts, const ch
std::string str;
char tmpStr[1000];
const char *CreateCellsOfType_names = "DualGridAndStitchCells, DualGrid, StitchCells";
switch (atts->GetCreateCellsOfType())
{
case AMRStitchCellAttributes::DualGridAndStitchCells:
SNPRINTF(tmpStr, 1000, "%sCreateCellsOfType = %sDualGridAndStitchCells # %s\n", prefix, prefix, CreateCellsOfType_names);
str += tmpStr;
break;
case AMRStitchCellAttributes::DualGrid:
SNPRINTF(tmpStr, 1000, "%sCreateCellsOfType = %sDualGrid # %s\n", prefix, prefix, CreateCellsOfType_names);
str += tmpStr;
break;
case AMRStitchCellAttributes::StitchCells:
SNPRINTF(tmpStr, 1000, "%sCreateCellsOfType = %sStitchCells # %s\n", prefix, prefix, CreateCellsOfType_names);
str += tmpStr;
break;
default:
break;
}
return str;
}
......@@ -88,10 +107,45 @@ AMRStitchCellAttributes_Notify(PyObject *self, PyObject *args)
return Py_None;
}
/*static*/ PyObject *
AMRStitchCellAttributes_SetCreateCellsOfType(PyObject *self, PyObject *args)
{
AMRStitchCellAttributesObject *obj = (AMRStitchCellAttributesObject *)self;
int ival;
if(!PyArg_ParseTuple(args, "i", &ival))
return NULL;
// Set the CreateCellsOfType in the object.
if(ival >= 0 && ival < 3)
obj->data->SetCreateCellsOfType(AMRStitchCellAttributes::CreateType(ival));
else
{
fprintf(stderr, "An invalid CreateCellsOfType value was given. "
"Valid values are in the range of [0,2]. "
"You can also use the following names: "
"DualGridAndStitchCells, DualGrid, StitchCells.");
return NULL;
}
Py_INCREF(Py_None);
return Py_None;
}
/*static*/ PyObject *
AMRStitchCellAttributes_GetCreateCellsOfType(PyObject *self, PyObject *args)
{
AMRStitchCellAttributesObject *obj = (AMRStitchCellAttributesObject *)self;
PyObject *retval = PyInt_FromLong(long(obj->data->GetCreateCellsOfType()));
return retval;
}
PyMethodDef PyAMRStitchCellAttributes_methods[AMRSTITCHCELLATTRIBUTES_NMETH] = {
{"Notify", AMRStitchCellAttributes_Notify, METH_VARARGS},
{"SetCreateCellsOfType", AMRStitchCellAttributes_SetCreateCellsOfType, METH_VARARGS},
{"GetCreateCellsOfType", AMRStitchCellAttributes_GetCreateCellsOfType, METH_VARARGS},
{NULL, NULL}
};
......@@ -120,6 +174,15 @@ AMRStitchCellAttributes_compare(PyObject *v, PyObject *w)
PyObject *
PyAMRStitchCellAttributes_getattr(PyObject *self, char *name)
{
if(strcmp(name, "CreateCellsOfType") == 0)
return AMRStitchCellAttributes_GetCreateCellsOfType(self, NULL);
if(strcmp(name, "DualGridAndStitchCells") == 0)
return PyInt_FromLong(long(AMRStitchCellAttributes::DualGridAndStitchCells));
if(strcmp(name, "DualGrid") == 0)
return PyInt_FromLong(long(AMRStitchCellAttributes::DualGrid));
if(strcmp(name, "StitchCells") == 0)
return PyInt_FromLong(long(AMRStitchCellAttributes::StitchCells));
return Py_FindMethod(PyAMRStitchCellAttributes_methods, self, name);
}
......@@ -134,6 +197,8 @@ PyAMRStitchCellAttributes_setattr(PyObject *self, char *name, PyObject *args)
Py_INCREF(args);
PyObject *obj = NULL;
if(strcmp(name, "CreateCellsOfType") == 0)
obj = AMRStitchCellAttributes_SetCreateCellsOfType(self, tuple);
if(obj != NULL)
Py_DECREF(obj);
......
......@@ -44,7 +44,7 @@
//
// Functions exposed to the VisIt module.
//
#define AMRSTITCHCELLATTRIBUTES_NMETH 2
#define AMRSTITCHCELLATTRIBUTES_NMETH 4
void PyAMRStitchCellAttributes_StartUp(AMRStitchCellAttributes *subj, void *data);
void PyAMRStitchCellAttributes_CloseDown();
PyMethodDef * PyAMRStitchCellAttributes_GetMethodTable(int *nMethods);
......
......@@ -59,25 +59,25 @@ import llnl.visit.Plugin;
public class BoundaryOpAttributes extends AttributeSubject implements Plugin
{
private static int numAdditionalAttributes = 1;
private static int BoundaryOpAttributes_numAdditionalAtts = 1;
public BoundaryOpAttributes()
{
super(numAdditionalAttributes);
super(BoundaryOpAttributes_numAdditionalAtts);
smoothingLevel = 0;
}
public BoundaryOpAttributes(int nMoreFields)
{
super(numAdditionalAttributes + nMoreFields);
super(BoundaryOpAttributes_numAdditionalAtts + nMoreFields);
smoothingLevel = 0;
}
public BoundaryOpAttributes(BoundaryOpAttributes obj)
{
super(numAdditionalAttributes);
super(BoundaryOpAttributes_numAdditionalAtts);
smoothingLevel = obj.smoothingLevel;
......@@ -91,7 +91,7 @@ public class BoundaryOpAttributes extends AttributeSubject implements Plugin
public int GetNumAdditionalAttributes()
{
return numAdditionalAttributes;
return BoundaryOpAttributes_numAdditionalAtts;
}
public boolean equals(BoundaryOpAttributes obj)
......
......@@ -50,7 +50,7 @@
// Note: Autogenerated by xml2python. Do not modify by hand!
//
// Programmer: xml2python
// Creation: Fri Aug 8 12:03:42 PDT 2008
// Creation: omitted
//
// ****************************************************************************
......@@ -116,7 +116,7 @@ BoundaryOpAttributes_GetSmoothingLevel(PyObject *self, PyObject *args)
static struct PyMethodDef BoundaryOpAttributes_methods[] = {
PyMethodDef PyBoundaryOpAttributes_methods[BOUNDARYOPATTRIBUTES_NMETH] = {
{"Notify", BoundaryOpAttributes_Notify, METH_VARARGS},
{"SetSmoothingLevel", BoundaryOpAttributes_SetSmoothingLevel, METH_VARARGS},
{"GetSmoothingLevel", BoundaryOpAttributes_GetSmoothingLevel, METH_VARARGS},
......@@ -146,16 +146,16 @@ BoundaryOpAttributes_compare(PyObject *v, PyObject *w)
}
PyObject *
BoundaryOpAttributes_getattr(PyObject *self, char *name)
PyBoundaryOpAttributes_getattr(PyObject *self, char *name)
{
if(strcmp(name, "smoothingLevel") == 0)
return BoundaryOpAttributes_GetSmoothingLevel(self, NULL);
return Py_FindMethod(BoundaryOpAttributes_methods, self, name);
return Py_FindMethod(PyBoundaryOpAttributes_methods, self, name);
}
static int
BoundaryOpAttributes_setattr(PyObject *self, char *name, PyObject *args)
int
PyBoundaryOpAttributes_setattr(PyObject *self, char *name, PyObject *args)
{
// Create a tuple to contain the arguments since all of the Set
// functions expect a tuple.
......@@ -171,6 +171,8 @@ BoundaryOpAttributes_setattr(PyObject *self, char *name, PyObject *args)
Py_DECREF(obj);
Py_DECREF(tuple);
if( obj == NULL)
PyErr_Format(PyExc_RuntimeError, "Unable to set unknown attribute: '%s'", name);
return (obj != NULL) ? 0 : -1;
}
......@@ -216,8 +218,8 @@ static PyTypeObject BoundaryOpAttributesType =
//
(destructor)BoundaryOpAttributes_dealloc, // tp_dealloc
(printfunc)BoundaryOpAttributes_print, // tp_print
(getattrfunc)BoundaryOpAttributes_getattr, // tp_getattr
(setattrfunc)BoundaryOpAttributes_setattr, // tp_setattr
(getattrfunc)PyBoundaryOpAttributes_getattr, // tp_getattr
(setattrfunc)PyBoundaryOpAttributes_setattr, // tp_setattr
(cmpfunc)BoundaryOpAttributes_compare, // tp_compare
(reprfunc)0, // tp_repr
//
......
......@@ -44,17 +44,21 @@
//
// Functions exposed to the VisIt module.
//
#define BOUNDARYOPATTRIBUTES_NMETH 4
void PyBoundaryOpAttributes_StartUp(BoundaryOpAttributes *subj, void *data);
void PyBoundaryOpAttributes_CloseDown();
PyMethodDef * PyBoundaryOpAttributes_GetMethodTable(int *nMethods);
PyMethodDef * PyBoundaryOpAttributes_GetMethodTable(int *nMethods);
bool PyBoundaryOpAttributes_Check(PyObject *obj);
BoundaryOpAttributes * PyBoundaryOpAttributes_FromPyObject(PyObject *obj);
PyObject * PyBoundaryOpAttributes_New();
PyObject * PyBoundaryOpAttributes_Wrap(const BoundaryOpAttributes *attr);
PyObject * PyBoundaryOpAttributes_New();
PyObject * PyBoundaryOpAttributes_Wrap(const BoundaryOpAttributes *attr);
void PyBoundaryOpAttributes_SetParent(PyObject *obj, PyObject *parent);
void PyBoundaryOpAttributes_SetDefaults(const BoundaryOpAttributes *atts);
std::string PyBoundaryOpAttributes_GetLogString();
std::string PyBoundaryOpAttributes_ToString(const BoundaryOpAttributes *, const char *);
PyObject * PyBoundaryOpAttributes_getattr(PyObject *self, char *name);
int PyBoundaryOpAttributes_setattr(PyObject *self, char *name, PyObject *args);
extern PyMethodDef PyBoundaryOpAttributes_methods[BOUNDARYOPATTRIBUTES_NMETH];
#endif
......@@ -59,7 +59,7 @@ import llnl.visit.Plugin;
public class BoxAttributes extends AttributeSubject implements Plugin
{
private static int numAdditionalAttributes = 7;
private static int BoxAttributes_numAdditionalAtts = 7;
// Enum values
public final static int AMOUNT_SOME = 0;
......@@ -68,7 +68,7 @@ public class BoxAttributes extends AttributeSubject implements Plugin
public BoxAttributes()
{
super(numAdditionalAttributes);
super(BoxAttributes_numAdditionalAtts);
amount = AMOUNT_SOME;
minx = 0;
......@@ -81,7 +81,7 @@ public class BoxAttributes extends AttributeSubject implements Plugin
public BoxAttributes(int nMoreFields)
{
super(numAdditionalAttributes + nMoreFields);
super(BoxAttributes_numAdditionalAtts + nMoreFields);
amount = AMOUNT_SOME;
minx = 0;
......@@ -94,7 +94,7 @@ public class BoxAttributes extends AttributeSubject implements Plugin
public BoxAttributes(BoxAttributes obj)
{
super(numAdditionalAttributes);
super(BoxAttributes_numAdditionalAtts);
amount = obj.amount;
minx = obj.minx;
......@@ -114,7 +114,7 @@ public class BoxAttributes extends AttributeSubject implements Plugin
public int GetNumAdditionalAttributes()
{
return numAdditionalAttributes;
return BoxAttributes_numAdditionalAtts;
}
public boolean equals(BoxAttributes obj)
......
......@@ -50,7 +50,7 @@
// Note: Autogenerated by xml2python. Do not modify by hand!
//
// Programmer: xml2python
// Creation: Fri Aug 8 12:03:34 PDT 2008
// Creation: omitted
//
// ****************************************************************************
......@@ -294,7 +294,7 @@ BoxAttributes_GetMaxz(PyObject *self, PyObject *args)
static struct PyMethodDef BoxAttributes_methods[] = {
PyMethodDef PyBoxAttributes_methods[BOXATTRIBUTES_NMETH] = {
{"Notify", BoxAttributes_Notify, METH_VARARGS},
{"SetAmount", BoxAttributes_SetAmount, METH_VARARGS},
{"GetAmount", BoxAttributes_GetAmount, METH_VARARGS},
......@@ -336,7 +336,7 @@ BoxAttributes_compare(PyObject *v, PyObject *w)
}
PyObject *
BoxAttributes_getattr(PyObject *self, char *name)
PyBoxAttributes_getattr(PyObject *self, char *name)
{
if(strcmp(name, "amount") == 0)
return BoxAttributes_GetAmount(self, NULL);
......@@ -358,11 +358,11 @@ BoxAttributes_getattr(PyObject *self, char *name)
if(strcmp(name, "maxz") == 0)
return BoxAttributes_GetMaxz(self, NULL);
return Py_FindMethod(BoxAttributes_methods, self, name);
return Py_FindMethod(PyBoxAttributes_methods, self, name);
}
static int
BoxAttributes_setattr(PyObject *self, char *name, PyObject *args)
int
PyBoxAttributes_setattr(PyObject *self, char *name, PyObject *args)
{
// Create a tuple to contain the arguments since all of the Set
// functions expect a tuple.
......@@ -390,6 +390,8 @@ BoxAttributes_setattr(PyObject *self, char *name, PyObject *args)
Py_DECREF(obj);
Py_DECREF(tuple);
if( obj == NULL)
PyErr_Format(PyExc_RuntimeError, "Unable to set unknown attribute: '%s'", name);
return (obj != NULL) ? 0 : -1;
}
......@@ -435,8 +437,8 @@ static PyTypeObject BoxAttributesType =
//
(destructor)BoxAttributes_dealloc, // tp_dealloc
(printfunc)BoxAttributes_print, // tp_print
(getattrfunc)BoxAttributes_getattr, // tp_getattr
(setattrfunc)BoxAttributes_setattr, // tp_setattr
(getattrfunc)PyBoxAttributes_getattr, // tp_getattr
(setattrfunc)PyBoxAttributes_setattr, // tp_setattr
(cmpfunc)BoxAttributes_compare, // tp_compare
(reprfunc)0, // tp_repr
//
......
......@@ -44,17 +44,21 @@
//
// Functions exposed to the VisIt module.
//
#define BOXATTRIBUTES_NMETH 16
void PyBoxAttributes_StartUp(BoxAttributes *subj, void *data);
void PyBoxAttributes_CloseDown();
PyMethodDef * PyBoxAttributes_GetMethodTable(int *nMethods);
PyMethodDef * PyBoxAttributes_GetMethodTable(int *nMethods);
bool PyBoxAttributes_Check(PyObject *obj);
BoxAttributes * PyBoxAttributes_FromPyObject(PyObject *obj);
PyObject * PyBoxAttributes_New();
PyObject * PyBoxAttributes_Wrap(const BoxAttributes *attr);
PyObject * PyBoxAttributes_New();
PyObject * PyBoxAttributes_Wrap(const BoxAttributes *attr);
void PyBoxAttributes_SetParent(PyObject *obj, PyObject *parent);
void PyBoxAttributes_SetDefaults(const BoxAttributes *atts);
std::string PyBoxAttributes_GetLogString();
std::string PyBoxAttributes_ToString(const BoxAttributes *, const char *);
PyObject * PyBoxAttributes_getattr(PyObject *self, char *name);
int PyBoxAttributes_setattr(PyObject *self, char *name, PyObject *args);
extern PyMethodDef PyBoxAttributes_methods[BOXATTRIBUTES_NMETH];
#endif
......@@ -59,7 +59,7 @@ import llnl.visit.Plugin;
public class ClipAttributes extends AttributeSubject implements Plugin
{
private static int numAdditionalAttributes = 16;
private static int ClipAttributes_numAdditionalAtts = 16;
// Enum values
public final static int CLIPSTYLE_PLANE = 0;
......@@ -76,7 +76,7 @@ public class ClipAttributes extends AttributeSubject implements Plugin
public ClipAttributes()
{
super(numAdditionalAttributes);
super(ClipAttributes_numAdditionalAtts);
quality = QUALITY_FAST;
funcType = CLIPSTYLE_PLANE;
......@@ -119,7 +119,7 @@ public class ClipAttributes extends AttributeSubject implements Plugin
public ClipAttributes(int nMoreFields)
{
super(numAdditionalAttributes + nMoreFields);
super(ClipAttributes_numAdditionalAtts + nMoreFields);
quality = QUALITY_FAST;
funcType = CLIPSTYLE_PLANE;
......@@ -162,7 +162,7 @@ public class ClipAttributes extends AttributeSubject implements Plugin
public ClipAttributes(ClipAttributes obj)
{
super(numAdditionalAttributes);
super(ClipAttributes_numAdditionalAtts);
int i;
......@@ -221,7 +221,7 @@ public class ClipAttributes extends AttributeSubject implements Plugin
public int GetNumAdditionalAttributes()
{
return numAdditionalAttributes;
return ClipAttributes_numAdditionalAtts;
}
public boolean equals(ClipAttributes obj)
......
......@@ -50,7 +50,7 @@
// Note: Autogenerated by xml2python. Do not modify by hand!
//
// Programmer: xml2python
// Creation: Fri Aug 8 12:03:40 PDT 2008
// Creation: omitted
//
// ****************************************************************************
......@@ -903,7 +903,7 @@ ClipAttributes_GetSphereInverse(PyObject *self, PyObject *args)
static struct PyMethodDef ClipAttributes_methods[] = {
PyMethodDef PyClipAttributes_methods[CLIPATTRIBUTES_NMETH] = {
{"Notify", ClipAttributes_Notify, METH_VARARGS},
{"SetQuality", ClipAttributes_SetQuality, METH_VARARGS},
{"GetQuality", ClipAttributes_GetQuality, METH_VARARGS},
......@@ -963,7 +963,7 @@ ClipAttributes_compare(PyObject *v, PyObject *w)
}
PyObject *
ClipAttributes_getattr(PyObject *self, char *name)
PyClipAttributes_getattr(PyObject *self, char *name)
{
if(strcmp(name, "quality") == 0)
return ClipAttributes_GetQuality(self, NULL);
......@@ -1017,11 +1017,11 @@ ClipAttributes_getattr(PyObject *self, char *name)
if(strcmp(name, "sphereInverse") == 0)
return ClipAttributes_GetSphereInverse(self, NULL);
return Py_FindMethod(ClipAttributes_methods, self, name);
return Py_FindMethod(PyClipAttributes_methods, self, name);
}
static int
ClipAttributes_setattr(PyObject *self, char *name, PyObject *args)
int
PyClipAttributes_setattr(PyObject *self, char *name, PyObject *args)
{
// Create a tuple to contain the arguments since all of the Set
// functions expect a tuple.
......@@ -1067,6 +1067,8 @@ ClipAttributes_setattr(PyObject *self, char *name, PyObject *args)
Py_DECREF(obj);
Py_DECREF(tuple);
if( obj == NULL)
PyErr_Format(PyExc_RuntimeError, "Unable to set unknown attribute: '%s'", name);
return (obj != NULL) ? 0 : -1;
}
......@@ -1112,8 +1114,8 @@ static PyTypeObject ClipAttributesType =
//
(destructor)ClipAttributes_dealloc, // tp_dealloc
(printfunc)ClipAttributes_print, // tp_print
(getattrfunc)ClipAttributes_getattr, // tp_getattr
(setattrfunc)ClipAttributes_setattr, // tp_setattr
(getattrfunc)PyClipAttributes_getattr, // tp_getattr
(setattrfunc)PyClipAttributes_setattr, // tp_setattr
(cmpfunc)ClipAttributes_compare, // tp_compare
(reprfunc)0, // tp_repr
//
......
......@@ -44,17 +44,21 @@
//
// Functions exposed to the VisIt module.
//
#define CLIPATTRIBUTES_NMETH 34
void PyClipAttributes_StartUp(ClipAttributes *subj, void *data);
void PyClipAttributes_CloseDown();
PyMethodDef * PyClipAttributes_GetMethodTable(int *nMethods);
PyMethodDef * PyClipAttributes_GetMethodTable(int *nMethods);
bool PyClipAttributes_Check(PyObject *obj);
ClipAttributes * PyClipAttributes_FromPyObject(PyObject *obj);
PyObject * PyClipAttributes_New();
PyObject * PyClipAttributes_Wrap(const ClipAttributes *attr);
PyObject * PyClipAttributes_New();
PyObject * PyClipAttributes_Wrap(const ClipAttributes *attr);
void PyClipAttributes_SetParent(PyObject *obj, PyObject *parent);
void PyClipAttributes_SetDefaults(const ClipAttributes *atts);
std::string PyClipAttributes_GetLogString();
std::string PyClipAttributes_ToString(const ClipAttributes *, const char *);
PyObject * PyClipAttributes_getattr(PyObject *self, char *name);
int PyClipAttributes_setattr(PyObject *self, char *name, PyObject *args);
extern PyMethodDef PyClipAttributes_methods[CLIPATTRIBUTES_NMETH];
#endif
......@@ -59,7 +59,7 @@ import llnl.visit.Plugin;
public class ConeAttributes extends AttributeSubject implements Plugin
{
private static int numAdditionalAttributes = 7;
private static int ConeAttributes_numAdditionalAtts = 7;
// Enum values
public final static int REPRESENTATION_THREED = 0;
......@@ -69,7 +69,7 @@ public class ConeAttributes extends AttributeSubject implements Plugin
public ConeAttributes()
{
super(numAdditionalAttributes);
super(ConeAttributes_numAdditionalAtts);
angle = 45;
origin = new double[3];
......@@ -91,7 +91,7 @@ public class ConeAttributes extends AttributeSubject implements Plugin
public ConeAttributes(int nMoreFields)
{
super(numAdditionalAttributes + nMoreFields);
super(ConeAttributes_numAdditionalAtts + nMoreFields);
angle = 45;
origin = new double[3];
......@@ -113,7 +113,7 @@ public class ConeAttributes extends AttributeSubject implements Plugin
public ConeAttributes(ConeAttributes obj)
{
super(numAdditionalAttributes);
super(ConeAttributes_numAdditionalAtts);
int i;
......@@ -147,7 +147,7 @@ public class ConeAttributes extends AttributeSubject implements Plugin
public int GetNumAdditionalAttributes()
{
return numAdditionalAttributes;
return ConeAttributes_numAdditionalAtts;
}
public boolean equals(ConeAttributes obj)
......
......@@ -50,7 +50,7 @@
// Note: Autogenerated by xml2python. Do not modify by hand!
//
// Programmer: xml2python
// Creation: Fri Aug 8 12:03:44 PDT 2008
// Creation: omitted
//
// ****************************************************************************
......@@ -433,7 +433,7 @@ ConeAttributes_GetLength(PyObject *self, PyObject *args)
static struct PyMethodDef ConeAttributes_methods[] = {
PyMethodDef PyConeAttributes_methods[CONEATTRIBUTES_NMETH] = {
{"Notify", ConeAttributes_Notify, METH_VARARGS},
{"SetAngle", ConeAttributes_SetAngle, METH_VARARGS},
{"GetAngle", ConeAttributes_GetAngle, METH_VARARGS},
......@@ -475,7 +475,7 @@ ConeAttributes_compare(PyObject *v, PyObject *w)
}
PyObject *
ConeAttributes_getattr(PyObject *self, char *name)
PyConeAttributes_getattr(PyObject *self, char *name)
{
if(strcmp(name, "angle") == 0)
return ConeAttributes_GetAngle(self, NULL);
......@@ -499,11 +499,11 @@ ConeAttributes_getattr(PyObject *self, char *name)
if(strcmp(name, "length") == 0)
return ConeAttributes_GetLength(self, NULL);
return Py_FindMethod(ConeAttributes_methods, self, name);
return Py_FindMethod(PyConeAttributes_methods, self, name);
}
static int
ConeAttributes_setattr(PyObject *self, char *name, PyObject *args)
int
PyConeAttributes_setattr(PyObject *self, char *name, PyObject *args)
{
// Create a tuple to contain the arguments since all of the Set
// functions expect a tuple.
......@@ -531,6 +531,8 @@ ConeAttributes_setattr(PyObject *self, char *name, PyObject *args)
Py_DECREF(obj);
Py_DECREF(tuple);
if( obj == NULL)
PyErr_Format(PyExc_RuntimeError, "Unable to set unknown attribute: '%s'", name);
return (obj != NULL) ? 0 : -1;
}
......@@ -576,8 +578,8 @@ static PyTypeObject ConeAttributesType =
//
(destructor)ConeAttributes_dealloc, // tp_dealloc
(printfunc)ConeAttributes_print, // tp_print
(getattrfunc)ConeAttributes_getattr, // tp_getattr
(setattrfunc)ConeAttributes_setattr, // tp_setattr
(getattrfunc)PyConeAttributes_getattr, // tp_getattr
(setattrfunc)PyConeAttributes_setattr, // tp_setattr
(cmpfunc)ConeAttributes_compare, // tp_compare
(reprfunc)0, // tp_repr
//
......
......@@ -44,17 +44,21 @@
//
// Functions exposed to the VisIt module.
//
#define CONEATTRIBUTES_NMETH 16
void PyConeAttributes_StartUp(ConeAttributes *subj, void *data);
void PyConeAttributes_CloseDown();
PyMethodDef * PyConeAttributes_GetMethodTable(int *nMethods);
PyMethodDef * PyConeAttributes_GetMethodTable(int *nMethods);
bool PyConeAttributes_Check(PyObject *obj);
ConeAttributes * PyConeAttributes_FromPyObject(PyObject *obj);
PyObject * PyConeAttributes_New();
PyObject * PyConeAttributes_Wrap(const ConeAttributes *attr);
PyObject * PyConeAttributes_New();
PyObject * PyConeAttributes_Wrap(const ConeAttributes *attr);
void PyConeAttributes_SetParent(PyObject *obj, PyObject *parent);
void PyConeAttributes_SetDefaults(const ConeAttributes *atts);
std::string PyConeAttributes_GetLogString();
std::string PyConeAttributes_ToString(const ConeAttributes *, const char *);
PyObject * PyConeAttributes_getattr(PyObject *self, char *name);
int PyConeAttributes_setattr(PyObject *self, char *name, PyObject *args);
extern PyMethodDef PyConeAttributes_methods[CONEATTRIBUTES_NMETH];
#endif
......@@ -59,25 +59,25 @@ import llnl.visit.Plugin;
public class ConnCompReduceAttributes extends AttributeSubject implements Plugin
{
private static int numAdditionalAttributes = 1;
private static int ConnCompReduceAttributes_numAdditionalAtts = 1;
public ConnCompReduceAttributes()
{
super(numAdditionalAttributes);
super(ConnCompReduceAttributes_numAdditionalAtts);
target = 0.1;
}
public ConnCompReduceAttributes(int nMoreFields)
{
super(numAdditionalAttributes + nMoreFields);
super(ConnCompReduceAttributes_numAdditionalAtts + nMoreFields);
target = 0.1;
}
public ConnCompReduceAttributes(ConnCompReduceAttributes obj)
{
super(numAdditionalAttributes);
super(ConnCompReduceAttributes_numAdditionalAtts);
target = obj.target;
......@@ -91,7 +91,7 @@ public class ConnCompReduceAttributes extends AttributeSubject implements Plugin
public int GetNumAdditionalAttributes()
{
return numAdditionalAttributes;
return ConnCompReduceAttributes_numAdditionalAtts;
}
public boolean equals(ConnCompReduceAttributes obj)
......
......@@ -50,7 +50,7 @@
// Note: Autogenerated by xml2python. Do not modify by hand!
//
// Programmer: xml2python
// Creation: Fri Aug 8 13:23:39 PST 2008
// Creation: omitted
//
// ****************************************************************************
......@@ -116,7 +116,7 @@ ConnCompReduceAttributes_GetTarget(PyObject *self, PyObject *args)
static struct PyMethodDef ConnCompReduceAttributes_methods[] = {
PyMethodDef PyConnCompReduceAttributes_methods[CONNCOMPREDUCEATTRIBUTES_NMETH] = {
{"Notify", ConnCompReduceAttributes_Notify, METH_VARARGS},
{"SetTarget", ConnCompReduceAttributes_SetTarget, METH_VARARGS},