Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Fusion::Object Class Reference

Object is the base for every other class used in Fusion content. More...

#include <FusionObject.h>

Inheritance diagram for Fusion::Object:

Fusion::IObject Emma::AggRenderManager Emma::Color Emma::MFField Emma::MFNode Emma::Node Emma::PlaneProj Emma::RenderManager Emma::SFMatrix3D Emma::SFURL Emma::SFValue Emma::Stream Emma::Translator Fusion::Array Fusion::Date Fusion::File Fusion::Math List of all members.

Public Member Functions

virtual FUSION_EXPORT ObjectnewObject ()
virtual FUSION_EXPORT ResultType initializeClass ()
 Initialize this class.
virtual FUSION_EXPORT ResultType finalizeClass ()
 Finalize this class before it is destroyed.
virtual FUSION_EXPORT ResultType initialize ()
 Initialize this instance.
virtual FUSION_EXPORT ResultType finalize ()
 Finalize this instance before it is destroyed.
virtual FUSION_EXPORT ResultType getProperty (const Id &id, Value &val) const
 Get a property of this object and place it in the passed value. Id can be a string or numeric property.
virtual FUSION_EXPORT ResultType setProperty (const Id &id, const Value &val)
 Set a property of this object to the passed value. Id can be a string or numeric property.
virtual FUSION_EXPORT ResultType callProperty (const Id &id, Value &retval) const
 Call the passed property of this object, which is assumed to be a function or callable object.
virtual FUSION_EXPORT ResultType callProperty (const Id &id, Value &retval, const Value &val) const
 Call the passed property of this object, which is assumed to be a function or callable object.
virtual FUSION_EXPORT ResultType callProperty (const Id &id, Value &retval, Args &args, int32_t nargs) const
 Call the passed property of this object, which is assumed to be a function or callable object.
virtual FUSION_EXPORT Fusion::ResultType preInitialize ()
virtual FUSION_EXPORT ResultType getValue (Value &s, HintType=HINT_NONE) const
 Get the value of this object.
virtual FUSION_EXPORT ResultType setValue (const Value &val)
 Set the value of this object to the passed value, if possible.
virtual FUSION_EXPORT ResultType toString (UTF8String &s) const
 Convert this object to a string.
virtual FUSION_EXPORT double getDouble () const
 Convert this object to a string.
virtual FUSION_EXPORT IObjectcreate ()
virtual FUSION_EXPORT IObjectcreate (const Value &val)
virtual FUSION_EXPORT IObjectcreate (Args &args, int32_t nargs)
virtual FUSION_EXPORT UTF8String getName () const
 Return a string representing the name of this object. The meaning of this name is object dependent.
virtual FUSION_EXPORT uint32_t getElementSize () const
virtual FUSION_EXPORT float * getFloatV ()
virtual FUSION_EXPORT const
float * 
getFloatV () const
virtual FUSION_EXPORT int32_tgetInt32V ()
virtual FUSION_EXPORT const
int32_t
getInt32V () const
virtual FUSION_EXPORT Value valueOf () const
 Convert this object to a primitive value.
virtual FUSION_EXPORT bool isPrototypeOf (IObject *obj) const
virtual FUSION_EXPORT UTF8String toString () const
virtual FUSION_EXPORT bool isBoolean () const
 Return true if this object represents a primitive boolean value.
virtual FUSION_EXPORT bool isNumber () const
 Return true if this object represents a primitive numeric value.
virtual FUSION_EXPORT bool isString () const
 Return true if this object represents a primitive string value.
virtual FUSION_EXPORT bool isNode () const
virtual FUSION_EXPORT bool isProtoNode () const
FUSION_EXPORT bool isProto () const
FUSION_EXPORT void setProto (bool b)
virtual FUSION_EXPORT UTF8String getFileBase () const
virtual FUSION_EXPORT void ref ()
 Remove a reference from an object, when this object has no more refs, it is subject to GC.
virtual FUSION_EXPORT void unref ()
 Add a reference to this object to prevent it from being removed by the garbage collector.
virtual FUSION_EXPORT int32_t getRefCount () const
FUSION_EXPORT void setPrototype (const char *name)
FUSION_EXPORT void setPrototype (IObject *obj)
FUSION_EXPORT ObjectgetPrototype () const
virtual FUSION_EXPORT void registerInterface (const UTF8String &name, const Value &iface, const UTF8String &imp)
 Register an interface for this object.
virtual FUSION_EXPORT IObjectqueryInterface (const UTF8String &name)
 Return the object that implements the passed interface.
FUSION_EXPORT void assimilate (IObject *obj)
virtual FUSION_EXPORT int getIndex (lua_State *l)
virtual FUSION_EXPORT int setIndex (lua_State *l)
virtual FUSION_EXPORT int call (lua_State *l)
virtual FUSION_EXPORT bool hasProperty (Args &args, bool &inProto)
virtual FUSION_EXPORT bool hasOwnProperty (const UTF8String &prop)
FUSION_EXPORT Value getautofenv ()
FUSION_EXPORT Value eval (const UTF8String &s)
 eval(expression)
Returns the value of the string expression evaluated as a lua expression.
virtual FUSION_EXPORT Fusion::UTF8String join (const Fusion::UTF8String &sep) const
 join all elements in an array from 0 to length-1.
virtual FUSION_EXPORT int push (Args &args)
 place all passed arguments at the end of an array, starting at length.
virtual FUSION_EXPORT void insert (const Value &src, int32_t at)
 insert the passed items before the item at the passed index.
virtual FUSION_EXPORT void remove (int32_t at, double num)
 remove num items at the passed index.
virtual FUSION_EXPORT int splice (Args &args)
 Insert the passed items before the item at start after deleting deleteCount items from start.
FUSION_EXPORT void shuffle (const Value &src, int32_t srcStart, int32_t srcCount, int32_t srcSkip, int32_t dstStart, int32_t dstDeleteCount, int32_t dstSkip, int32_t repeatCount)
 shuffle the passed src elements into the current array:
FUSION_EXPORT EnginegetEngine () const

Static Public Member Functions

static FUSION_EXPORT ObjectnewClassObject ()
static FUSION_EXPORT bool isObject (Args &args, int32_t i)
static FUSION_EXPORT int pushautofenv (Args &args)

Protected Member Functions

FUSION_EXPORT Object ()
virtual FUSION_EXPORT ~Object ()
virtual FUSION_EXPORT bool concat (const Value &val, Value &result, bool isop1) const
virtual FUSION_EXPORT bool add (const Value &val, Value &result, bool isop1) const
virtual FUSION_EXPORT bool sub (const Value &val, Value &result, bool isop1) const
virtual FUSION_EXPORT bool mul (const Value &val, Value &result, bool isop1) const
virtual FUSION_EXPORT bool div (const Value &val, Value &result, bool isop1) const
virtual FUSION_EXPORT bool pow (const Value &val, Value &result, bool isop1) const
virtual FUSION_EXPORT bool unm (Value &result) const
virtual FUSION_EXPORT bool lt (const Value &val, bool isop1) const
virtual FUSION_EXPORT bool le (const Value &val, bool isop1) const
virtual FUSION_EXPORT bool eq (const Value &val, bool isop1) const
template<typename Callee>
FUSION_EXPORT void registerFunction (const char *name, int(Callee::*func)(Args &args))
template<typename Callee>
FUSION_EXPORT void registerFunction (const char *name, int(Callee::*func)(Args &args) const)
FUSION_EXPORT void registerStaticFunction (const char *name, int(*func)(Args &args))
template<typename Callee>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)())
template<typename Callee>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)() const)
template<typename Callee, typename RT>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)())
template<typename Callee, typename RT>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)() const)
template<typename RT>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)())
template<typename Callee, typename P1>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1))
template<typename Callee, typename P1>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1) const)
template<typename P1>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1))
template<typename Callee, typename RT, typename P1>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1))
template<typename Callee, typename RT, typename P1>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1) const)
template<typename RT, typename P1>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1))
template<typename Callee, typename P1, typename P2>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2))
template<typename Callee, typename P1, typename P2>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2) const)
template<typename P1, typename P2>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1, P2))
template<typename Callee, typename RT, typename P1, typename P2>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2))
template<typename Callee, typename RT, typename P1, typename P2>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2) const)
template<typename RT, typename P1, typename P2>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1, P2))
template<typename Callee, typename P1, typename P2, typename P3>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3))
template<typename Callee, typename P1, typename P2, typename P3>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3) const)
template<typename P1, typename P2, typename P3>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1, P2, P3))
template<typename Callee, typename RT, typename P1, typename P2, typename P3>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3))
template<typename Callee, typename RT, typename P1, typename P2, typename P3>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3) const)
template<typename RT, typename P1, typename P2, typename P3>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1, P2, P3))
template<typename Callee, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4))
template<typename Callee, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4) const)
template<typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4) const)
template<typename RT, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5) const)
template<typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5) const)
template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6) const)
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5, P6))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6) const)
template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5, P6))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7) const)
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5, P6, P7))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7) const)
template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5, P6, P7))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8))
template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void registerFunction (const char *name, void(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8) const)
template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void registerStaticFunction (const char *name, void(*func)(P1, P2, P3, P4, P5, P6, P7, P8))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8))
template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void registerFunction (const char *name, RT(Callee::*func)(P1, P2, P3, P4, P5, P6, P7, P8) const)
template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void registerStaticFunction (const char *name, RT(*func)(P1, P2, P3, P4, P5, P6, P7, P8))
FUSION_EXPORT void pushPrototype (Args &args) const
FUSION_EXPORT void * getUserData () const

Static Protected Member Functions

static FUSION_EXPORT Object_createClassObject (Object *obj, const char *name, const char *parent)
static FUSION_EXPORT void reportNotFusionObjectError ()
template<typename Callee>
static int thunk (lua_State *s)
template<typename Callee>
static int constthunk (lua_State *s)
static int staticargsthunk (lua_State *s)
static FUSION_EXPORT int push (IObject *obj, Args &args)
static FUSION_EXPORT int __index (lua_State *l)
static FUSION_EXPORT int __newindex (lua_State *l)
static FUSION_EXPORT int __call (lua_State *l)
static FUSION_EXPORT int __gc (lua_State *l)
static FUSION_EXPORT int __tostring (lua_State *l)
static FUSION_EXPORT int __concat (lua_State *l)
static FUSION_EXPORT int __add (lua_State *l)
static FUSION_EXPORT int __sub (lua_State *l)
static FUSION_EXPORT int __mul (lua_State *l)
static FUSION_EXPORT int __div (lua_State *l)
static FUSION_EXPORT int __pow (lua_State *l)
static FUSION_EXPORT int __unm (lua_State *l)
static FUSION_EXPORT int __eq (lua_State *l)
static FUSION_EXPORT int __lt (lua_State *l)
static FUSION_EXPORT int __le (lua_State *l)

Friends

class Args

Classes

class  PropertyIter
 Property iterator class Handy class for iterating over all of the properties of an object. More...

Detailed Description

Object is the base for every other class used in Fusion content.

It contains string-named properties which can hold values of any type.

Remarks:
Base class none
Author:
Chris Marrin
Date:
3/17/2005


Constructor & Destructor Documentation

FUSION_EXPORT Fusion::Object::Object  )  [protected]
 

virtual FUSION_EXPORT Fusion::Object::~Object  )  [protected, virtual]
 


Member Function Documentation

static FUSION_EXPORT int Fusion::Object::__add lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__call lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__concat lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__div lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__eq lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__gc lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__index lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__le lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__lt lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__mul lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__newindex lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__pow lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__sub lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__tostring lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT int Fusion::Object::__unm lua_State *  l  )  [inline, static, protected]
 

static FUSION_EXPORT Object* Fusion::Object::_createClassObject Object obj,
const char *  name,
const char *  parent
[inline, static, protected]
 

virtual FUSION_EXPORT bool Fusion::Object::add const Value val,
Value result,
bool  isop1
const [inline, protected, virtual]
 

FUSION_EXPORT void Fusion::Object::assimilate IObject obj  ) 
 

virtual FUSION_EXPORT int Fusion::Object::call lua_State *  l  )  [virtual]
 

virtual FUSION_EXPORT ResultType Fusion::Object::callProperty const Id id,
Value retval,
Args args,
int32_t  nargs
const [virtual]
 

Call the passed property of this object, which is assumed to be a function or callable object.

Any returned value is placed in retval. The nargs parameter has the number of arguments passed. Actual arguments are on the Lua stack, which is referenced in args.

Implements Fusion::IObject.

virtual FUSION_EXPORT ResultType Fusion::Object::callProperty const Id id,
Value retval,
const Value val
const [virtual]
 

Call the passed property of this object, which is assumed to be a function or callable object.

Any returned value is placed in retval. One argument is passed in val.

Implements Fusion::IObject.

virtual FUSION_EXPORT ResultType Fusion::Object::callProperty const Id id,
Value retval
const [virtual]
 

Call the passed property of this object, which is assumed to be a function or callable object.

Any returned value is placed in retval. No arguments are passed.

Implements Fusion::IObject.

virtual FUSION_EXPORT bool Fusion::Object::concat const Value val,
Value result,
bool  isop1
const [protected, virtual]
 

template<typename Callee>
static int Fusion::Object::constthunk lua_State *  s  )  [inline, static, protected]
 

virtual FUSION_EXPORT IObject* Fusion::Object::create Args args,
int32_t  nargs
[virtual]
 

virtual FUSION_EXPORT IObject* Fusion::Object::create const Value val  )  [virtual]
 

virtual FUSION_EXPORT IObject* Fusion::Object::create  )  [virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::div const Value val,
Value result,
bool  isop1
const [inline, protected, virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::eq const Value val,
bool  isop1
const [inline, protected, virtual]
 

FUSION_EXPORT Value Fusion::Object::eval const UTF8String s  ) 
 

eval(expression)
Returns the value of the string expression evaluated as a lua expression.

virtual FUSION_EXPORT ResultType Fusion::Object::finalize  )  [inline, virtual]
 

Finalize this instance before it is destroyed.

Implements Fusion::IObject.

Reimplemented in Emma::AggRenderManager, Emma::ButtonSensor, Emma::DropSensor, Emma::Timer, Emma::ValueSensor, Emma::Viewpoint, Emma::WindowSensor, Emma::WxGUI, Emma::RenderManager, and Emma::XmaTranslator.

virtual FUSION_EXPORT ResultType Fusion::Object::finalizeClass  )  [virtual]
 

Finalize this class before it is destroyed.

Implements Fusion::IObject.

FUSION_EXPORT Value Fusion::Object::getautofenv  ) 
 

virtual FUSION_EXPORT double Fusion::Object::getDouble  )  const [inline, virtual]
 

Convert this object to a string.

Implements Fusion::IObject.

Reimplemented in Emma::SFURL, and Emma::SFValue.

virtual FUSION_EXPORT uint32_t Fusion::Object::getElementSize  )  const [inline, virtual]
 

Reimplemented in Emma::MFColor3f, Emma::MFColor4f, Emma::MFRotation, Emma::MFVec2f, Emma::MFVec3f, Emma::MFVec4f, and Emma::SFMatrix3D.

FUSION_EXPORT Engine* Fusion::Object::getEngine  )  const [inline]
 

virtual FUSION_EXPORT UTF8String Fusion::Object::getFileBase  )  const [inline, virtual]
 

Reimplemented in Emma::MFURL, Emma::Node, Emma::SFURL, and Emma::Stream.

virtual FUSION_EXPORT const float* Fusion::Object::getFloatV  )  const [inline, virtual]
 

virtual FUSION_EXPORT float* Fusion::Object::getFloatV  )  [inline, virtual]
 

Reimplemented in Emma::MFColor3f, Emma::MFColor4f, Emma::MFRotation, Emma::MFFloat, Emma::MFVec2f, Emma::MFVec3f, and Emma::MFVec4f.

virtual FUSION_EXPORT int Fusion::Object::getIndex lua_State *  l  )  [virtual]
 

Reimplemented in Emma::Color, Emma::MFField, Emma::MFNode, Emma::SFValue, Fusion::Array, and Fusion::File.

virtual FUSION_EXPORT const int32_t* Fusion::Object::getInt32V  )  const [inline, virtual]
 

virtual FUSION_EXPORT int32_t* Fusion::Object::getInt32V  )  [inline, virtual]
 

Reimplemented in Emma::MFInt32.

virtual FUSION_EXPORT UTF8String Fusion::Object::getName  )  const [virtual]
 

Return a string representing the name of this object. The meaning of this name is object dependent.

Implements Fusion::IObject.

virtual FUSION_EXPORT ResultType Fusion::Object::getProperty const Id id,
Value val
const [virtual]
 

Get a property of this object and place it in the passed value. Id can be a string or numeric property.

Implements Fusion::IObject.

FUSION_EXPORT Object* Fusion::Object::getPrototype  )  const
 

virtual FUSION_EXPORT int32_t Fusion::Object::getRefCount  )  const [inline, virtual]
 

FUSION_EXPORT void* Fusion::Object::getUserData  )  const [inline, protected]
 

virtual FUSION_EXPORT ResultType Fusion::Object::getValue Value s,
HintType  = HINT_NONE
const [inline, virtual]
 

Get the value of this object.

If this object cannot be converted to a primitive, return the object as the value. If HintType is given attempt to convert this object to the passed primitive type. If this is not possible, ignore HintType.

Implements Fusion::IObject.

virtual FUSION_EXPORT bool Fusion::Object::hasOwnProperty const UTF8String prop  )  [virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::hasProperty Args args,
bool &  inProto
[virtual]
 

virtual FUSION_EXPORT ResultType Fusion::Object::initialize  )  [virtual]
 

Initialize this instance.

Implements Fusion::IObject.

Reimplemented in Emma::MFField, Emma::MFNode, Emma::SFMatrix3D, Emma::SFURL, Emma::SFValue, Emma::Stream, Fusion::Array, Fusion::Date, Emma::EmaTranslator, Emma::AggRenderManager, Emma::MeshTranslator, Emma::Client, Emma::Server, Emma::SvgInline, Emma::Text2D, Emma::BackgroundInline, Emma::DirectionalLight, Emma::Fog, Emma::Material, Emma::MaterialInline, Emma::Mesh, Emma::MeshAnimation, Emma::MeshInline, Emma::MeshInterpolator, Emma::ParticleInline, Emma::PointLight, Emma::SceneSurface, Emma::SpotLight, Emma::SurfaceNode, Emma::ButtonSensor, Emma::Camera, Emma::DropSensor, Emma::Environment, Emma::Group, Emma::Shape, Emma::ValueSensor, Emma::Viewpoint, Emma::WindowSensor, Emma::RenderManager, Emma::XmaTranslator, Emma::PlaneSensor, Emma::SphereSensor, and Emma::NavigatorNode.

virtual FUSION_EXPORT ResultType Fusion::Object::initializeClass  )  [virtual]
 

Initialize this class.

Implements Fusion::IObject.

virtual FUSION_EXPORT void Fusion::Object::insert const Value src,
int32_t  at
[inline, virtual]
 

insert the passed items before the item at the passed index.

virtual FUSION_EXPORT bool Fusion::Object::isBoolean  )  const [inline, virtual]
 

Return true if this object represents a primitive boolean value.

Implements Fusion::IObject.

Reimplemented in Emma::SFValue.

virtual FUSION_EXPORT bool Fusion::Object::isNode  )  const [inline, virtual]
 

Reimplemented in Emma::Node.

virtual FUSION_EXPORT bool Fusion::Object::isNumber  )  const [inline, virtual]
 

Return true if this object represents a primitive numeric value.

Implements Fusion::IObject.

Reimplemented in Emma::SFURL, and Emma::SFValue.

static FUSION_EXPORT bool Fusion::Object::isObject Args args,
int32_t  i
[inline, static]
 

FUSION_EXPORT bool Fusion::Object::isProto  )  const [inline]
 

virtual FUSION_EXPORT bool Fusion::Object::isProtoNode  )  const [inline, virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::isPrototypeOf IObject obj  )  const [virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::isString  )  const [inline, virtual]
 

Return true if this object represents a primitive string value.

Implements Fusion::IObject.

Reimplemented in Emma::SFURL, and Emma::SFValue.

virtual FUSION_EXPORT Fusion::UTF8String Fusion::Object::join const Fusion::UTF8String sep  )  const [virtual]
 

join all elements in an array from 0 to length-1.

If sep is passed it is placed between each element. Otherwise, a comma is used as the separator. If an element is a string, it is surrounded by double quotes.

virtual FUSION_EXPORT bool Fusion::Object::le const Value val,
bool  isop1
const [inline, protected, virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::lt const Value val,
bool  isop1
const [inline, protected, virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::mul const Value val,
Value result,
bool  isop1
const [inline, protected, virtual]
 

static FUSION_EXPORT Object* Fusion::Object::newClassObject  )  [inline, static]
 

virtual FUSION_EXPORT Object* Fusion::Object::newObject  )  [inline, virtual]
 

virtual FUSION_EXPORT bool Fusion::Object::pow const Value val,
Value result,
bool  isop1
const [inline, protected, virtual]
 

virtual FUSION_EXPORT Fusion::ResultType Fusion::Object::preInitialize  )  [inline, virtual]
 

Reimplemented in Emma::SceneSurface, Emma::AmbientSound, Emma::AudioSourceNode, Emma::AudioStream, Emma::Sound, Emma::SoundNode, Emma::Timer, Emma::TransformNode, and Emma::WxGUI.

static FUSION_EXPORT int Fusion::Object::push IObject obj,
Args args
[static, protected]
 

virtual FUSION_EXPORT int Fusion::Object::push Args args  )  [inline, virtual]
 

place all passed arguments at the end of an array, starting at length.

static FUSION_EXPORT int Fusion::Object::pushautofenv Args args  )  [static]
 

FUSION_EXPORT void Fusion::Object::pushPrototype Args args  )  const [inline, protected]
 

virtual FUSION_EXPORT IObject* Fusion::Object::queryInterface const UTF8String name  )  [virtual]
 

Return the object that implements the passed interface.

Implements Fusion::IObject.

virtual FUSION_EXPORT void Fusion::Object::ref  )  [virtual]
 

Remove a reference from an object, when this object has no more refs, it is subject to GC.

Implements Fusion::IObject.

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5, P6, P7, P8) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5, P6, P7, P8)  func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5, P6, P7, P8) const   func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5, P6, P7, P8)  func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5, P6, P7) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5, P6, P7)  func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5, P6, P7) const   func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5, P6, P7)  func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5, P6) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5, P6)  func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5, P6) const   func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5, P6)  func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4, P5)  func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5) const   func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4, P5)  func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3, P4)  func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4) const   func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3, P4)  func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2, typename P3>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2, P3)  func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3) const   func
[inline, protected]
 

template<typename Callee, typename P1, typename P2, typename P3>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2, P3)  func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1, typename P2>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1, P2)  func
[inline, protected]
 

template<typename Callee, typename P1, typename P2>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2) const   func
[inline, protected]
 

template<typename Callee, typename P1, typename P2>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1, P2)  func
[inline, protected]
 

template<typename Callee, typename RT, typename P1>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1) const   func
[inline, protected]
 

template<typename Callee, typename RT, typename P1>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)(P1)  func
[inline, protected]
 

template<typename Callee, typename P1>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1) const   func
[inline, protected]
 

template<typename Callee, typename P1>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)(P1)  func
[inline, protected]
 

template<typename Callee, typename RT>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)() const   func
[inline, protected]
 

template<typename Callee, typename RT>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
RT(Callee::*)()  func
[inline, protected]
 

template<typename Callee>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)() const   func
[inline, protected]
 

template<typename Callee>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
void(Callee::*)()  func
[inline, protected]
 

template<typename Callee>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
int(Callee::*)(Args &args) const   func
[inline, protected]
 

template<typename Callee>
FUSION_EXPORT void Fusion::Object::registerFunction const char *  name,
int(Callee::*)(Args &args)  func
[inline, protected]
 

virtual FUSION_EXPORT void Fusion::Object::registerInterface const UTF8String name,
const Value iface,
const UTF8String imp
[virtual]
 

Register an interface for this object.

Implements Fusion::IObject.

template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1, P2, P3, P4, P5, P6, P7, P8)  func
[inline, protected]
 

template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1, P2, P3, P4, P5, P6, P7, P8)  func
[inline, protected]
 

template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1, P2, P3, P4, P5, P6, P7)  func
[inline, protected]
 

template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1, P2, P3, P4, P5, P6, P7)  func
[inline, protected]
 

template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1, P2, P3, P4, P5, P6)  func
[inline, protected]
 

template<typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1, P2, P3, P4, P5, P6)  func
[inline, protected]
 

template<typename RT, typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1, P2, P3, P4, P5)  func
[inline, protected]
 

template<typename P1, typename P2, typename P3, typename P4, typename P5>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1, P2, P3, P4, P5)  func
[inline, protected]
 

template<typename RT, typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1, P2, P3, P4)  func
[inline, protected]
 

template<typename P1, typename P2, typename P3, typename P4>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1, P2, P3, P4)  func
[inline, protected]
 

template<typename RT, typename P1, typename P2, typename P3>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1, P2, P3)  func
[inline, protected]
 

template<typename P1, typename P2, typename P3>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1, P2, P3)  func
[inline, protected]
 

template<typename RT, typename P1, typename P2>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1, P2)  func
[inline, protected]
 

template<typename P1, typename P2>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1, P2)  func
[inline, protected]
 

template<typename RT, typename P1>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)(P1)  func
[inline, protected]
 

template<typename P1>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
void(*)(P1)  func
[inline, protected]
 

template<typename RT>
FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
RT(*)()  func
[inline, protected]
 

FUSION_EXPORT void Fusion::Object::registerStaticFunction const char *  name,
int(*)(Args &args)  func
[protected]
 

virtual FUSION_EXPORT void Fusion::Object::remove int32_t  at,
double  num
[inline, virtual]
 

remove num items at the passed index.

Note: num is passed as a double so we can determine if it was set or not If it is not set, it will be a NaN. If so, we will just delete one item.

static FUSION_EXPORT void Fusion::Object::reportNotFusionObjectError  )  [static, protected]
 

virtual FUSION_EXPORT int Fusion::Object::setIndex lua_State *  l  )  [virtual]
 

Reimplemented in Emma::MFField, Emma::MFNode, Emma::Node, Emma::SFValue, and Fusion::Array.

virtual FUSION_EXPORT ResultType Fusion::Object::setProperty const Id id,
const Value val
[virtual]
 

Set a property of this object to the passed value. Id can be a string or numeric property.

Implements Fusion::IObject.

Reimplemented in Emma::RenderManager.

FUSION_EXPORT void Fusion::Object::setProto bool  b  )  [inline]
 

FUSION_EXPORT void Fusion::Object::setPrototype IObject obj  ) 
 

FUSION_EXPORT void Fusion::Object::setPrototype const char *  name  ) 
 

virtual FUSION_EXPORT ResultType Fusion::Object::setValue const Value val  )  [inline, virtual]
 

Set the value of this object to the passed value, if possible.

Implements Fusion::IObject.

Reimplemented in Emma::MFField, Emma::MFNode, Emma::SFMatrix3D, Emma::SFURL, Emma::SFValue, and Fusion::Array.

FUSION_EXPORT void Fusion::Object::shuffle const Value src,
int32_t  srcStart,
int32_t  srcCount,
int32_t  srcSkip,
int32_t  dstStart,
int32_t  dstDeleteCount,
int32_t  dstSkip,
int32_t  repeatCount
 

shuffle the passed src elements into the current array:

srcStart - first element of src to use srcCount - number of source elements to use in each group srcSkip - number of source elements to skip after each group dstStart - first location of dst array to start inserting src elements dstDeleteCount - number of elements in dst to delete in each group dstSkip - number of dst elements to skip after each group repeatCount - number of times to perform operations on groups

This function combines elements in the src array with the current array. Algorithm starts by deleting dstDeleteCount elements in the current array starting at dstStart. Then srcCount elements from src and starting at srcStart are inserted at dstStart. Then srcStart is updated to be srcCount+srcSkip and dstStart is updated to be dstDeleteCount+dstSkip. Then the process is repeated repeatCount-1 times.

If src is too short it wraps, but it must contain at least one element. If srcStart or dstStart are negative, they are considered to be offsets from the end of their respective arrays rather than from the start. The actual start is obtained from start' = length + start, so a start of -1 means to start at the last item in the array. If these values are beyond the end of the array, a value of 0 is used. If any of the other values are out of range, the algorithm aborts where it left off and the result is returned.

virtual FUSION_EXPORT int Fusion::Object::splice Args args  )  [virtual]
 

Insert the passed items before the item at start after deleting deleteCount items from start.

static int Fusion::Object::staticargsthunk lua_State *  s  )  [static, protected]
 

virtual FUSION_EXPORT bool Fusion::Object::sub const Value val,
Value result,
bool  isop1
const [inline, protected, virtual]
 

template<typename Callee>
static int Fusion::Object::thunk lua_State *  s  )  [inline, static, protected]
 

virtual FUSION_EXPORT UTF8String Fusion::Object::toString  )  const [inline, virtual]
 

virtual FUSION_EXPORT ResultType Fusion::Object::toString UTF8String s  )  const [virtual]
 

Convert this object to a string.

Implements Fusion::IObject.

Reimplemented in Emma::MFField, Emma::MFNode, Emma::Node, Emma::SFMatrix3D, Emma::SFURL, Emma::SFValue, Fusion::Array, and Fusion::Date.

virtual FUSION_EXPORT bool Fusion::Object::unm Value result  )  const [inline, protected, virtual]
 

virtual FUSION_EXPORT void Fusion::Object::unref  )  [virtual]
 

Add a reference to this object to prevent it from being removed by the garbage collector.

Implements Fusion::IObject.

virtual FUSION_EXPORT Value Fusion::Object::valueOf  )  const [virtual]
 

Convert this object to a primitive value.

Implements Fusion::IObject.

Reimplemented in Emma::SFValue.


Friends And Related Function Documentation

friend class Args [friend]
 


The documentation for this class was generated from the following file:
Generated on Sat Apr 1 06:08:34 2006 for Emma SDK Guide by  doxygen 1.4.3