[BACK]Return to geode.i CVS log [TXT][DIR] Up to [Development] / performer / src / pyper

File: [Development] / performer / src / pyper / geode.i (download)

Revision 1.1, Mon May 21 21:40:00 2001 UTC (16 years, 4 months ago) by flynnt
Branch: MAIN
CVS Tags: HEAD

Doing some cleanup and adding the pfgtk example and the python wrapper for
Performer (pyper).

// This file contains the public interface from the Performer
// header file pf/pfGeode.h
// This Performer header file is (c) Silicon Graphics, Inc.
// Binding specific code is (c) SARA.

%{
#include <Performer/pf/pfGeode.h>
%}

class pfGeode : public pfNode
{
public:

    %addmethods
    {
      char *__str__()
      {
        static char temp[256];
        const char *name = self->getName();
        int cnt = self->getNumGSets();
        if (name)
          sprintf(temp, "pfGeode named '%s' with %d geosets", name, cnt);
        else
          sprintf(temp, "unnamed pfGeode with %d geosets", cnt);
        return temp;
      }
    }

    int addGSet(pfGeoSet *gset);
    int insertGSet(int index, pfGeoSet *gset);
    int replaceGSet(pfGeoSet *oldgs, pfGeoSet *newgs);
    int removeGSet(pfGeoSet *gset);
    pfGeoSet* getGSet(int i) const;
    int getNumGSets() const;
    pfGeode();
    virtual ~pfGeode();
    static pfType* getClassType();
};