Sirikata
|
#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"
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 CHECK_JPP_INIT_THROW_LOG_CPP_ERROR | ( | funcIn, | |
alternateVal | |||
) |
{\ if (!jpp)\ {\ JSLOG(detailed,"Error in jspositionlistener. Position proxy was not set."); \ return alternateVal;\ }\ }
Referenced by Sirikata::JS::JSPositionListener::getBounds(), Sirikata::JS::JSPositionListener::getMesh(), Sirikata::JS::JSPositionListener::getOrientation(), Sirikata::JS::JSPositionListener::getOrientationVelocity(), Sirikata::JS::JSPositionListener::getPhysics(), Sirikata::JS::JSPositionListener::getPosition(), Sirikata::JS::JSPositionListener::getSporef(), Sirikata::JS::JSPositionListener::getStillVisible(), and Sirikata::JS::JSPositionListener::getVelocity().
#define CHECK_JPP_INIT_THROW_V8_ERROR | ( | funcIn | ) |
{\ if (!jpp)\ {\ JSLOG(error,"Error in jspositionlistener. Position proxy was not set."); \ return v8::ThrowException(v8::Exception::Error(v8::String::New("Error when calling " #funcIn ". Proxy ptr was not set.")));\ }\ }
Referenced by Sirikata::JS::JSPositionListener::loadMesh(), Sirikata::JS::JSPositionListener::struct_checkEqual(), Sirikata::JS::JSPositionListener::struct_getAllData(), Sirikata::JS::JSPositionListener::struct_getDistance(), Sirikata::JS::JSPositionListener::struct_getMesh(), Sirikata::JS::JSPositionListener::struct_getOrientTime(), Sirikata::JS::JSPositionListener::struct_getPhysics(), Sirikata::JS::JSPositionListener::struct_getScale(), Sirikata::JS::JSPositionListener::struct_getSporef(), Sirikata::JS::JSPositionListener::struct_getStillVisible(), Sirikata::JS::JSPositionListener::struct_getTransTime(), and Sirikata::JS::JSPositionListener::unloadMesh().
#define JSPOSITION_CHECK_IN_CONTEXT_THROW_EXCEP | ( | funcIn, | |
con | |||
) |
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().