Sirikata
Classes | Namespaces | Defines
liboh/plugins/js/JSObjectStructs/JSPositionListener.hpp File Reference
#include <sirikata/oh/HostedObject.hpp>
#include <v8.h>
#include <sirikata/core/util/Liveness.hpp>
#include <sirikata/mesh/Visual.hpp>
#include "../JSVisibleManager.hpp"
#include "../JSCtx.hpp"
Include dependency graph for JSPositionListener.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Sirikata::JS::JSPositionListener

Namespaces

namespace  Sirikata
 

Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO.


namespace  Sirikata::JS

Defines

#define CHECK_JPP_INIT_THROW_LOG_CPP_ERROR(funcIn, alternateVal)
#define CHECK_JPP_INIT_THROW_V8_ERROR(funcIn)
#define JSPOSITION_CHECK_IN_CONTEXT_THROW_EXCEP(funcIn, con)

Define Documentation

#define CHECK_JPP_INIT_THROW_LOG_CPP_ERROR (   funcIn,
  alternateVal 
)
#define CHECK_JPP_INIT_THROW_V8_ERROR (   funcIn)
#define JSPOSITION_CHECK_IN_CONTEXT_THROW_EXCEP (   funcIn,
  con 
)
Value:
CHECK_JPP_INIT_THROW_V8_ERROR(funcIn);\
    if (!v8::Context::InContext())                  \
    {\
        JSLOG(error,"Error in jspositionlistener.  Was not in a context."); \
        return v8::ThrowException(v8::Exception::Error(v8::String::New("Error when calling " #funcIn ".  Not currently within a context.")));\
    }\
    v8::Handle<v8::Context>con = v8::Context::GetCurrent();

Referenced by Sirikata::JS::JSPositionListener::meshBounds(), Sirikata::JS::JSPositionListener::raytrace(), Sirikata::JS::JSPositionListener::struct_getOrientation(), Sirikata::JS::JSPositionListener::struct_getOrientationVel(), Sirikata::JS::JSPositionListener::struct_getPosition(), Sirikata::JS::JSPositionListener::struct_getVelocity(), and Sirikata::JS::JSPositionListener::untransformedMeshBounds().