The Agent Tool  1.01
An Agent Based Graphic Sound Synthesis Environment
LuaApi.hpp
Go to the documentation of this file.
00001 
00010 void initai();
00017 float getDT();
00024 int getID();
00031 bool hasChildren();
00039 bool hasChildrenID(int ID);
00046 int numberOfChildren();
00054 int numberOfChildrenID(int ID);
00062 int getChild(int childIndex);
00071 int getChildID(int childID , int parentID);
00078 int getParent();
00086 int getParentID(int childID);
00093 void die();
00101 void killID(int agentID);
00113 int spawn(int parentID , int nodeType , string agentFunctionName , int xPos , int yPos);
00124 int spawn(int parentID , int nodeType , string agentFunctionName , Vec2 position);
00136 int spawnRelative(int parentID , int nodeType , string agentFunctionName , int xPos , int yPos);
00147 int spawnRelative(int parentID , int nodeType , string agentFunctionName , Vec2 position);
00160 int spawnP(table propertyTable , int parentID , int nodeType , string agentFunctionName , int xPos , int yPos);
00172 int spawnP(table propertyTable , int parentID , int nodeType , string agentFunctionName , Vec2 position);
00185 int spawnRelativeP(table propertyTable , int parentID , int nodeType , string agentFunctionName , int xPos , int yPos);
00197 int spawnRelativeP(table propertyTable , int parentID , int nodeType , string agentFunctionName , Vec2 position);
00204 float getLifetime();
00212 float getLifetimeID(int ID);
00219 Vec2 getPosition();
00227 Vec2 getPositionID(int ID);
00236 void setPosition(int xPos , int yPos);
00246 void setPositionID(int xPos , int yPos , int ID);
00255 void move(int x , int y);
00263 void move(Vec2 delta);
00273 void moveID(int x , int y , int ID);
00282 void moveID(Vec2 delta , int ID);
00290 void initP(table propertyTable);
00299 void initPID(table propertyTable , int ID);
00308 void addP(string propertyID , bool value);
00317 void addP(string propertyID , int value);
00326 void addP(string propertyID , float value);
00335 void addP(string propertyID , string value);
00344 void addP(string propertyID , Vec2 value);
00352 void addP(table propertyTable);
00362 void addPID(string propertyID , bool value , int ID);
00372 void addPID(string propertyID , int value , int ID);
00382 void addPID(string propertyID , float value , int ID);
00392 void addPID(string propertyID , string value , int ID);
00402 void addPID(string propertyID , Vec2 value , int ID);
00411 void addPID(table propertyTable , int ID);
00420 void setP(string propertyID , bool value);
00429 void setP(string propertyID , int value);
00438 void setP(string propertyID , float value);
00447 void setP(string propertyID , string value);
00456 void setP(string propertyID , Vec2 value);
00466 void setPID(string propertyID , bool value , int ID);
00476 void setPID(string propertyID , int value , int ID);
00486 void setPID(string propertyID , float value , int ID);
00496 void setPID(string propertyID , string value , int ID);
00506 void setPID(string propertyID , Vec2 value , int ID);
00514 void setP(table propertyTable);
00523 void setPID(table propertyTable , int ID);
00531 bool getP(string propertyName);
00539 int getP(string propertyName);
00547 float getP(string propertyName);
00555 string getP(string propertyName);
00563 Vec2 getP(string propertyName);
00572 bool getPID(string propertyName , int ID);
00581 int getPID(string propertyName , int ID);
00590 float getPID(string propertyName , int ID);
00599 string getPID(string propertyName , int ID);
00608 Vec2 getPID(string propertyName , int ID);
00616 void changeMotionModel(string modelType);
00625 void changeMotionModelID(string modelType , int ID);
00634 void scNew(string synthName , int nodeID);
00644 void scSet(string argName , float value , int nodeID);
00652 void scFree(int nodeID);
00660 int getNearest(Vec2 point);
00667 int getNearest();
00675 int getNearestID(int ID);
00688 void drawRelativeID(int screenIndex , Vec2 relativePos , int r , int g , int b , int ID);
00699 void drawRelativeID(int screenIndex , Vec2 relativePos , RGBA colourData , int ID);
00712 void drawRelative(int screenIndex , Vec2 relativePos , int r , int g , int b , int ID);
00723 void drawRelative(int screenIndex , Vec2 relativePos , RGBA colourData , int ID);
00732 int getRedFromPoint(int screenIndex , Vec2 point);
00741 int getGreenFromPoint(int screenIndex , Vec2 point);
00750 int getBlueFromPoint(int screenIndex , Vec2 point);
00759 int getTotalFromPoint(int screenIndex , Vec2 point);
00768 float getMeanFromPoint(int screenIndex , Vec2 point);
00776 int getR(int screenIndex);
00785 int getRID(int screenIndex , int ID);
00793 int getG(int screenIndex);
00802 int getGID(int canvasIndex , int agentID);
00810 int getB(int canvasIndex);
00819 int getBID(int canvasIndex , int agentID);
00827 int getTotalCol(int screenIndex);
00836 int getTotalID(int screenIndex , int agentID);
00844 int getMeanColID(int agentID);
00851 int getMeanCol();
00859 RGBA getRGBA(int screenIndex);
00868 RGBA getRGBA(Vec2 position , int screenIndex);
00877 RGBA getRGBAID(int screenIndex , int agentID);
00885 table getNearby(int radius);
00894 table getNearby(int radius , Vec2 position);
00903 table getNearbyID(int radius , int agentID);
00910 Vec2 getWorldSize();
00922 void oscSF(string ipAddress , string portNumber , string path , string stringData , float number);
00933 void oscF(string ipAddress , string portNumber , string path , float number);
00945 void oscSI(string ipAddress , string portNumber , string path , string stringData , int number);
00956 void oscI(string ipAddress , string portNumber , string path , int number);
00968 void oscSS(string ipAddress , string portNumber , string path , string stringData , string secondStringData);
00978 void oscS(string ipAddress , string portNumber , string stringData);
00985 void killChildren();
00993 void killChildrenID(int agentID);
01003 void addPathPoint(int pathIndex , int xPos , int yPos);
01012 void addPathPoint(int pathIndex , int Vec2);
01021 void removePathPoint(int pathIndex , int pointIndex);
01032 void movePathPoint(int pathIndex , int pointIndex , int xPos , int yPos);
01042 void movePathPoint(int pathIndex , int pointIndex , Vec2 position);
01051 int addPath(int xPos , int yPos);
01059 int addPath(Vec2 position);
01067 void removePath(int pathIndex);
01077 void movePath(int pathIndex , int xDelta , int yDelta);
01086 void movePath(int pathIndex , Vec2 delta);
01094 bool hasP(string propertyName);
01102 bool hasPID(string propertyName);
01109 string getType();
01116 string getTypeID();
01127 void send(string ipAddress , string portNumber , string path , ... data);
01134 int currentScreen();
01147 void drawLine(int screenIndex , Vec2 startPosition , Vec2 endPosition , int red , int green , int blue);
01158 void drawLine(int screenIndex , Vec2 startPosition , Vec2 endPosition , RGBA colourData);
01172 void drawRect(int screenIndex , Vec2 bottomLeft , Vec2 topRight , int red , int green , int blue , int thickness);
01184 void drawRect(int screenIndex , Vec2 bottomLeft , Vec2 topRight , RGBA colourData , int thickness);
01198 void drawCircle(int screenIndex , Vec2 centrePosition , int radius , int red , int green , int blue , int thickness);
01210 void drawCircle(int screenIndex , Vec2 centrePosition , int radius , RGBA colourData , int thickness);
 All Classes Files Functions