class MwProto : public MwNode


Inheritance:


Public Fields

const char* className
The PROTO name
static MwProto* currentProto
PROTO being read. Needed for mapping IS fields elsewere

Public Methods

virtual void copyFieldData(const MwNode *orig)
copies fields from orig to this, cloning and adding fields
static MwProto* createProtoDef(const MwName &protoName)
Creates a Proto node copying the interface but not the children field
static MwProto* createProtoUse(const MwName &protoName)
Creates a Proto node copying the interface and also the children field using MwNode::copy() method
virtual MwNode* getNode()
virtual pfNode* getPfNode()
Delegates to children[0]
static MwProto* getProtoDef(const MwName &protoName)
Searches for a Proto definition of the given name
virtual void notify(MwField *field)
static MbBool readProto(MwInput *in)
void setClassName(const char *name)
static MwProto* spawnProto(MwProto *orig)
create a complete instance of a PROTO

Private Fields

MwMFNode children
Holds the definition
MwFieldData* instanceFieldData
Holds the interface. Not static as in other classes
static MbPList* protosInCurrentFile
Holds a list of all protos defined so far
MwSceneState* sceneState

Private Methods

MW_NODE_HEADER(MwProto)

Documentation

MW_NODE_HEADER(MwProto)

virtual pfNode* getPfNode()
Delegates to children[0]

virtual MwNode* getNode()

virtual void notify(MwField *field)

virtual void copyFieldData(const MwNode *orig)
copies fields from orig to this, cloning and adding fields

static MwProto* spawnProto(MwProto *orig)
create a complete instance of a PROTO

static MbBool readProto(MwInput *in)

void setClassName(const char *name)

const char* className
The PROTO name

static MwProto* currentProto
PROTO being read. Needed for mapping IS fields elsewere

static MwProto* createProtoUse(const MwName &protoName)
Creates a Proto node copying the interface and also the children field using MwNode::copy() method

static MwProto* createProtoDef(const MwName &protoName)
Creates a Proto node copying the interface but not the children field

static MwProto* getProtoDef(const MwName &protoName)
Searches for a Proto definition of the given name

MwFieldData* instanceFieldData
Holds the interface. Not static as in other classes

static MbPList* protosInCurrentFile
Holds a list of all protos defined so far

MwMFNode children
Holds the definition

MwSceneState* sceneState


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de