Ejemplo n.º 1
0
Flood::Vector3::Vector3(System::IntPtr native)
{
    auto __native = (::Vector3*)native.ToPointer();
    __X = __native->x;
    __Y = __native->y;
    __Z = __native->z;
}
Ejemplo n.º 2
0
Flood::ExtensionMetadata::ExtensionMetadata(System::IntPtr native)
{
    auto __native = (::ExtensionMetadata*)native.ToPointer();
    Name = clix::marshalString<clix::E_UTF8>(__native->name);
    Description = clix::marshalString<clix::E_UTF8>(__native->description);
    Priority = __native->priority;
}
Ejemplo n.º 3
0
void Flood::GeometryBuffer::Set(Flood::VertexAttribute _0, System::IntPtr data, unsigned int size)
{
    auto arg0 = (::VertexAttribute)_0;
    auto arg1 = (uint8*)data.ToPointer();
    auto arg2 = (uint32)size;
    ((::GeometryBuffer*)NativePtr)->set(arg0, arg1, arg2);
}
Ejemplo n.º 4
0
Flood::Vector4::Vector4(System::IntPtr native)
{
    auto __native = (::Vector4*)native.ToPointer();
    __X = __native->x;
    __Y = __native->y;
    __Z = __native->z;
    __W = __native->w;
}
Ejemplo n.º 5
0
	//-----------------------------------------------------------------------------
	bool MWorldEditor::Initialize(System::IntPtr hWndPtr)
	{
		m_pkWorldEditor = new sdWorldEditor;
		NIASSERT(m_pkWorldEditor);
		m_pkWorldEditor->Initialize((HWND)hWndPtr.ToPointer());

		return true;
	}
Ejemplo n.º 6
0
Flood::Color::Color(System::IntPtr native)
{
    auto __native = (::Color*)native.ToPointer();
    R = __native->r;
    G = __native->g;
    B = __native->b;
    A = __native->a;
}
Ejemplo n.º 7
0
  System::IntPtr MFeatureProcessor::Compute(float x, float y, float z, 
      System::IntPtr depth_image_ptr, bool visulize) {
    IplImage* depth_image = reinterpret_cast<IplImage*>(depth_image_ptr.ToPointer()); 
    cv::Mat mat(depth_image);
    cv::Mat skinMat;
    float* descriptor = processor_->Compute(x, y, z, mat, skinMat, visulize);
    return System::IntPtr(descriptor);
 }
Ejemplo n.º 8
0
Flood::Color::Color(System::IntPtr native)
{
    auto __native = (::Color*)native.ToPointer();
    __R = __native->r;
    __G = __native->g;
    __B = __native->b;
    __A = __native->a;
}
Ejemplo n.º 9
0
Flood::WindowSettings::WindowSettings(System::IntPtr native)
{
    auto __native = (::WindowSettings*)native.ToPointer();
    Width = __native->width;
    Height = __native->height;
    Title = clix::marshalString<clix::E_UTF8>(__native->title);
    Handle = IntPtr(__native->handle);
    Styles = (Flood::WindowStyles)__native->styles;
}
Ejemplo n.º 10
0
Flood::FileWatchEvent::FileWatchEvent(System::IntPtr native)
{
    auto __native = (::FileWatchEvent*)native.ToPointer();
    __Action = (Flood::FileWatchEventKind)__native->action;
    __WatchId = __native->watchId;
    __Dir = StringMarshaller::marshalString(__native->dir);
    __Filename = StringMarshaller::marshalString(__native->filename);
    __Userdata = __native->userdata;
}
Ejemplo n.º 11
0
				virtual void Initialize()
				{
					DWORD flag = MPEG_CODEC_ID_BKMPEG4 | FILE_CODEC_TYPE_STREAM;
					DWORD flag1 = VMDDS_YUVOFF|VMDDS_RGBOFF;

					HANDLE hClient = NULL;
					hClient = MP4_ClientInit(0, flag, flag1, 0);
					if (hClient == NULL)
					{
						throw gcnew System::Exception();
					}

					this->hClient = hClient;

					int result = 0;
					result = MP4_ClientSetStreamType(this->hClient, STREAM_TYPE_AVSYNC);
					CheckResult(result);

					result = MP4_ClientSetWaitTime(this->hClient, 3000);
					CheckResult(result);

					System::IntPtr ptrUser = Marshal::StringToHGlobalAnsi(this->userName);
					LPCTSTR pUser = static_cast<LPCTSTR>(ptrUser.ToPointer());
					System::IntPtr ptrPwd = Marshal::StringToHGlobalAnsi(this->password);
					LPCTSTR pPwd = static_cast<LPCTSTR>(ptrPwd.ToPointer());
					result = MP4_ClientSetConnectUser(this->hClient, pUser, pPwd);
					CheckResult(result);
					Marshal::FreeHGlobal(ptrUser);
					Marshal::FreeHGlobal(ptrPwd);


					MP4_ClientSetTranstType(this->hClient, 1);
					result = MP4_ClientSetTranstPackSize(this->hClient, 4096);
					CheckResult(result);

					result = MP4_ClientStartCapture(this->hClient);
					CheckResult(result);

				}
Ejemplo n.º 12
0
NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition^ NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::ObjectFactory::CreateOvPropertyMappingDefinition(System::IntPtr ptr, System::Boolean autoDispose)
{
	if (ptr == IntPtr::Zero)
		return nullptr;

	FdoRdbmsOvPropertyMappingDefinition* p = (FdoRdbmsOvPropertyMappingDefinition*)ptr.ToPointer();

	NAMESPACE_OSGEO_RUNTIME::Disposable^ wrap;

	if (wrap = CHECK<FdoRdbmsOvPropertyMappingSingle, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingSingle>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition^>(wrap);

	if (wrap = CHECK<FdoRdbmsOvPropertyMappingDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition^>(wrap);
	
	return nullptr;	
}
Ejemplo n.º 13
0
Flood::Matrix4x3::Matrix4x3(System::IntPtr native)
{
    auto __native = (::Matrix4x3*)native.ToPointer();
    __M11 = __native->m11;
    __M12 = __native->m12;
    __M13 = __native->m13;
    __M21 = __native->m21;
    __M22 = __native->m22;
    __M23 = __native->m23;
    __M31 = __native->m31;
    __M32 = __native->m32;
    __M33 = __native->m33;
    __Tx = __native->tx;
    __Ty = __native->ty;
    __Tz = __native->tz;
}
Ejemplo n.º 14
0
	Result SwapChain::Present( SlimDX::Direct3D9::Present flags, System::Drawing::Rectangle sourceRectangle, System::Drawing::Rectangle destinationRectangle, System::IntPtr windowOverride )
	{
		RECT nativeSourceRect = { sourceRectangle.Left, sourceRectangle.Top, sourceRectangle.Right, sourceRectangle.Bottom };
		RECT nativeDestRect = { destinationRectangle.Left, destinationRectangle.Top, destinationRectangle.Right, destinationRectangle.Bottom };
	
		RECT *sourcePtr = NULL;
		RECT *destPtr = NULL;

		if( sourceRectangle != Rectangle::Empty )
			sourcePtr = &nativeSourceRect;
		if( destinationRectangle != Rectangle::Empty )
			destPtr = &nativeDestRect;
	
		HRESULT hr = InternalPointer->Present( sourcePtr, destPtr, static_cast<HWND>( windowOverride.ToPointer() ), NULL, static_cast<DWORD>( flags ) );

		return RECORD_D3D9( hr );
	}
Ejemplo n.º 15
0
NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::IOvPropertyDefinition^ NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::ObjectFactory::CreateIOvPropertyDefinition(System::IntPtr ptr, System::Boolean autoDispose)
{
	if (ptr == IntPtr::Zero)
		return nullptr;

	FdoSqlServerOvPropertyDefinition* p = (FdoSqlServerOvPropertyDefinition*)ptr.ToPointer();

	NAMESPACE_OSGEO_RUNTIME::Disposable^ wrap;

	// Note:
	// Here we need keep dynamic_cast to decide the real type of "ptr"
	if(wrap = CHECK<FdoSqlServerOvAssociationPropertyDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvAssociationPropertyDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvAssociationPropertyDefinition^>(wrap);
	if(wrap = CHECK<FdoSqlServerOvDataPropertyDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvDataPropertyDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvDataPropertyDefinition^>(wrap);
	if(wrap = CHECK<FdoSqlServerOvGeometricPropertyDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvGeometricPropertyDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvGeometricPropertyDefinition^>(wrap);
	if(wrap = CHECK<FdoSqlServerOvObjectPropertyDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvObjectPropertyDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvObjectPropertyDefinition^>(wrap);

	if(wrap = CHECK<FdoSqlServerOvPropertyDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinition^>(wrap);

    return nullptr;
}
Ejemplo n.º 16
0
Flood::Matrix4x4::Matrix4x4(System::IntPtr native)
{
    auto __native = (::Matrix4x4*)native.ToPointer();
    M11 = __native->m11;
    M12 = __native->m12;
    M13 = __native->m13;
    M14 = __native->m14;
    M21 = __native->m21;
    M22 = __native->m22;
    M23 = __native->m23;
    M24 = __native->m24;
    M31 = __native->m31;
    M32 = __native->m32;
    M33 = __native->m33;
    M34 = __native->m34;
    Tx = __native->tx;
    Ty = __native->ty;
    Tz = __native->tz;
    Tw = __native->tw;
}
Ejemplo n.º 17
0
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{
    ::CppSharp::Parser::ParserTargetInfo^ result = gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer());
    result->__ownsNativeInstance = __ownsNativeInstance;
    return result;
}
Ejemplo n.º 18
0
OpenCV::Cv::MatOp::MatOp(System::IntPtr native)
{
    auto __native = (::cv::MatOp*)native.ToPointer();
    NativePtr = __native;
}
Ejemplo n.º 19
0
Flood::Material::Material(System::IntPtr native)
    : Flood::Resource(native)
{
    auto __native = (::Material*)native.ToPointer();
}
Ejemplo n.º 20
0
Flood::Extension::Extension(System::IntPtr native)
{
    auto __native = (::Extension*)native.ToPointer();
    NativePtr = __native;
}
Ejemplo n.º 21
0
Flood::Stream::Stream(System::IntPtr native)
{
    auto __native = (::Stream*)native.ToPointer();
    NativePtr = __native;
}
Ejemplo n.º 22
0
Flood::Archive::Archive(System::IntPtr native)
{
    auto __native = (::Archive*)native.ToPointer();
    NativePtr = __native;
}
Ejemplo n.º 23
0
Flood::Geometry::Geometry(System::IntPtr native)
    : Flood::Component(native)
{
    auto __native = (::Geometry*)native.ToPointer();
}
Ejemplo n.º 24
0
InputManager::InputManager(System::IntPtr _windowHandle)
{
	IntPtr hInst = System::Runtime::InteropServices::Marshal::GetHINSTANCE(this->GetType()->Module);
	m_Pimpl = new RE::InputNative::InputManager(hInst.ToPointer(), (int*)_windowHandle.ToPointer());
}
Ejemplo n.º 25
0
Flood::Vector2i::Vector2i(System::IntPtr native)
{
    auto __native = (::Vector2i*)native.ToPointer();
    __X = __native->x;
    __Y = __native->y;
}
Ejemplo n.º 26
0
wstring SToWs(System::String* str)
{
    System::IntPtr strPtr = Marshal::StringToCoTaskMemUni(str);
    wstring retStr = (wchar_t*) strPtr.ToPointer();
    return retStr;
}
Ejemplo n.º 27
0
Flood::Allocator::Allocator(System::IntPtr native)
{
    auto __native = (::Allocator*)native.ToPointer();
    NativePtr = __native;
}
Ejemplo n.º 28
0
Flood::Entity::Entity(System::IntPtr native)
{
    auto __native = (::Entity*)native.ToPointer();
    NativePtr = __native;
}
Ejemplo n.º 29
0
CppSharp::Parser::SourceRange^ CppSharp::Parser::SourceRange::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::SourceRange((::CppSharp::CppParser::SourceRange*) native.ToPointer());
}
Ejemplo n.º 30
0
CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer());
}