World of Hello
mesh.h
1 
7 class mesh
8 {
9 public:
18  mesh addMesh(mesh* m);
26  mesh getParent();
34  string getType();
47  mesh setPosition(float X, float Y, float Z);
55  multiReturn<float, float, float> getPosition();
69  mesh moveForward(float speed=1, float xRotation=0, float yRotation=0, float zRotation=0);
80  mesh setX(float X);
91  mesh setY(float Y);
102  mesh setZ(float Z);
109  float getX();
116  float getY();
123  float getZ();
135  mesh setRotation(float Rx, float Ry, float Rz);
143  multiReturn<float, float, float> getRotation();
153  mesh setRx(float Rx);
163  mesh setRy(float Ry);
173  mesh setRz(float Rz);
180  float getRx();
187  float getRy();
194  float getRy();
202  mesh hide();
210  mesh show();
219  mesh setVisible(bool visible=true);
227  bool isVisible();
235  mesh setLighting(bool lit=true);
246  mesh setZBuffer(bool ZBuffer=true);
258  mesh setScale(float X=-1, float Y=-1, float Z=-1);
266  multiReturn<float, float, float> getScale();
277  mesh setColor(int r, int g, int b, int a=255);
285  mesh remove();
297  mesh setProperty(string property, string value);
305  string getProperty(string property);
310  string[] getProperties();
320  mesh removeProperty(string property);
341  mesh doCommands(string cmd);
350  mesh[] getChildren();
360  string getObject(bool includeChildren=true);
374  mesh sendToClients(bool removeOthers=false, string key="", string keyAns="");
401  bool setID(string ID);
408  string getID();
409 protected:
410 };
mesh::doCommands
mesh doCommands(string cmd)
creates the mesh from an object like a server command.
mesh::getParent
mesh getParent()
get the parent mesh.
mesh::getRx
float getRx()
gets the X rotational axis of the mesh.
mesh::setScale
mesh setScale(float X=-1, float Y=-1, float Z=-1)
sets the X, Y, and Z scale.
mesh::removeProperty
mesh removeProperty(string property)
removes a property from the object.
mesh::getProperties
string[] getProperties()
gets all properties from the object.
mesh::removeFromClients
mesh removeFromClients()
removes the mesh from all online clients.
mesh::isVisible
bool isVisible()
gets the visibility of the mesh.
mesh::sendToClients
mesh sendToClients(bool removeOthers=false, string key="", string keyAns="")
sends the mesh to all connected clients who meet the criteria.
mesh::hide
mesh hide()
hide the mesh.
mesh::getY
float getY()
gets the Y axis of the mesh.
mesh::setColor
mesh setColor(int r, int g, int b, int a=255)
sets the color of the mesh.
mesh::setLighting
mesh setLighting(bool lit=true)
sets whether the mesh is fully lit or needs a light source.
mesh::getObject
string getObject(bool includeChildren=true)
get the mesh as a total object.
mesh::setZBuffer
mesh setZBuffer(bool ZBuffer=true)
sets whether the mesh has a ZBuffer or not.
mesh::show
mesh show()
shows the mesh.
mesh::clearProperties
mesh clearProperties()
removes all properties from the object. See removeProperty()
mesh::getRy
float getRy()
gets the Y rotational axis of the mesh.
mesh::setY
mesh setY(float Y)
sets the Y axis of the mesh.
mesh::moveForward
mesh moveForward(float speed=1, float xRotation=0, float yRotation=0, float zRotation=0)
moves the mesh forward or toward a direction.
mesh::getZ
float getZ()
gets the Z axis of the mesh.
mesh::addMesh
mesh addMesh(mesh *m)
add a child mesh.
mesh::setZ
mesh setZ(float Z)
sets the Z axis of the mesh.
mesh::setVisible
mesh setVisible(bool visible=true)
sets the visibility of the mesh.
mesh::setRy
mesh setRy(float Ry)
sets the Y rotation of the mesh.
mesh::setRz
mesh setRz(float Rz)
sets the Z rotation of the mesh.
mesh::setRotation
mesh setRotation(float Rx, float Ry, float Rz)
sets the X, Y, and Z rotation of the mesh.
mesh::setX
mesh setX(float X)
sets the X axis of the mesh.
mesh::setProperty
mesh setProperty(string property, string value)
sets a property of the mesh.
mesh::remove
mesh remove()
removes the mesh.
mesh::getX
float getX()
gets the X axis of the mesh.
mesh::getScale
multiReturn< float, float, float > getScale()
gets the X, Y and Z scale.
mesh::getRotation
multiReturn< float, float, float > getRotation()
gets the rotation of the mesh.
mesh::getID
string getID()
get the ID of the mesh.
mesh::getType
string getType()
get the type of this mesh.
mesh::getProperty
string getProperty(string property)
gets the value of a set property.
mesh::setID
bool setID(string ID)
set the ID of the mesh.
mesh::setPosition
mesh setPosition(float X, float Y, float Z)
sets the position of the mesh.
mesh::getChildren
mesh[] getChildren()
gets a list of added children.
mesh
a 3D object.
Definition: mesh.h:7
mesh::getPosition
multiReturn< float, float, float > getPosition()
gets the position of the mesh.
mesh::setRx
mesh setRx(float Rx)
sets the X rotation of the mesh.