void InteriorsExplorerCLIMethods::Dismiss(System::IntPtr nativeObjectPtr)
 {
     InteriorsExplorer::View::InteriorsExplorerView* view = reinterpret_cast<InteriorsExplorer::View::InteriorsExplorerView*>(nativeObjectPtr.ToPointer());
     view->Dismiss();
 }
예제 #2
0
NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::IOvPropertyMappingDefinition^ NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::ObjectFactory::CreateIOvPropertyMappingDefinition(System::IntPtr ptr, System::Boolean autoDispose)
{
	if (ptr == IntPtr::Zero)
		return nullptr;

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

	NAMESPACE_OSGEO_RUNTIME::Disposable^ wrap;

	// Note:
	// Here we need keep dynamic_cast to decide the real type of "ptr"
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingClass, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingClass>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingClass^>(wrap);
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingConcrete, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingConcrete>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingConcrete^>(wrap);
	
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingRelation, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingRelation>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingRelation^>(wrap);
	if(wrap = CHECK<FdoSqlServerOvPropertyMappingSingle, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingSingle>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingSingle^>(wrap);

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

    return nullptr;
}
 void InteriorsExplorerCLIMethods::SelectFloor(System::IntPtr nativeObjectPtr, int index)
 {
     InteriorsExplorer::View::InteriorsExplorerView* view = reinterpret_cast<InteriorsExplorer::View::InteriorsExplorerView*>(nativeObjectPtr.ToPointer());
     view->SelectFloor(index);
 }
예제 #4
0
Flood::GeometryBuffer::GeometryBuffer(System::IntPtr native)
{
    auto __native = (::GeometryBuffer*)native.ToPointer();
    NativePtr = __native;
}
예제 #5
0
void Flood::GeometryBuffer::SetIndex(System::IntPtr data, unsigned int size)
{
    auto arg0 = (uint8*)data.ToPointer();
    auto arg1 = (uint32)size;
    ((::GeometryBuffer*)NativePtr)->setIndex(arg0, arg1);
}
예제 #6
0
Flood::RayQueryResult::RayQueryResult(System::IntPtr native)
{
    auto __native = (::RayQueryResult*)native.ToPointer();
    NativePtr = __native;
}
예제 #7
0
 * <*****@*****.**> and licensed under the MIT/X11 License.
 * For more information, see
 * http://geographiclib.sourceforge.net/
 **********************************************************************/
#include "stdafx.h"
#include "GeographicLib/Config.h"
#include "GeographicLib/Utility.hpp"
#include "NETGeographicLib.h"

using namespace System::Runtime::InteropServices;
using namespace NETGeographicLib;

//*****************************************************************************
std::string StringConvert::ManagedToUnmanaged( System::String^ s )
{
    System::IntPtr buffer = Marshal::StringToHGlobalAnsi(s);
    std::string output( reinterpret_cast<const char*>(buffer.ToPointer()) );
    Marshal::FreeHGlobal(buffer);
    return output;
}

//*****************************************************************************
System::String^ VersionInfo::GetString()
{
    return gcnew System::String(GEOGRAPHICLIB_VERSION_STRING);
}

//*****************************************************************************
int VersionInfo::MajorVersion()
{
    return GEOGRAPHICLIB_VERSION_MAJOR;
	// Static
	const char* MarshalStringToUnmanaged(System::String* inputString)
	{
		System::IntPtr strPtr = System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(inputString);
		return (const char*)strPtr.ToPointer();
	}
예제 #9
0
void Flood::GeometryBuffer::Add(System::IntPtr data, unsigned int size)
{
    auto arg0 = (::uint8*)data.ToPointer();
    auto arg1 = (::uint32)(::uint32_t)size;
    ((::GeometryBuffer*)NativePtr)->add(arg0, arg1);
}
예제 #10
0
CLROBS::Texture::Texture(System::IntPtr texture)
{
    this->texture = (::Texture *)(texture.ToPointer());
}
예제 #11
0
파일: CppParser.cpp 프로젝트: iHaD/CppSharp
CppSharp::Parser::ParserOptions::ParserOptions(System::IntPtr native)
{
    auto __native = (::CppSharp::CppParser::ParserOptions*)native.ToPointer();
    NativePtr = __native;
}
예제 #12
0
void CLROBS::Texture::SetImage(System::IntPtr data, GSImageFormat imageFormat, unsigned int pitch)
{
    texture->SetImage(data.ToPointer(), static_cast<::GSImageFormat>(imageFormat), pitch);
}
예제 #13
0
#include "stdafx.h"
#include "Marshaling.h"


Marsh::Marsh(void)
{
}
Marsh::~Marsh(void)
{
}
char* Marsh::Str2Char(System::String^Str){
			System::IntPtr ptr = System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(Str);
			 char * Chars = (char*)ptr.ToPointer();
			 return Chars;
};
System::String^ Marsh::Char2Str(const char* in){
				std::string str =  in;
				System::String^  Str = gcnew System::String(str.c_str());
				return Str;
};
System::String^ Marsh::s2S(std::string str){
				System::String^  Str = gcnew System::String(str.c_str());
				return Str;
};

std::string Marsh::S2s(System::String^Str)
{
	return (Marsh::Str2Char(Str));
};
예제 #14
0
CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer());
}
예제 #15
0
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer());
}
예제 #16
0
CppSharp::Parser::ParserOptions^ CppSharp::Parser::ParserOptions::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{
    ::CppSharp::Parser::ParserOptions^ result = gcnew ::CppSharp::Parser::ParserOptions((::CppSharp::CppParser::ParserOptions*) native.ToPointer());
    result->__ownsNativeInstance = __ownsNativeInstance;
    return result;
}
예제 #17
0
CppSharp::Parser::CppParserOptions^ CppSharp::Parser::CppParserOptions::__CreateInstance(::System::IntPtr native)
{
    return gcnew ::CppSharp::Parser::CppParserOptions((::CppSharp::CppParser::CppParserOptions*) native.ToPointer());
}
예제 #18
0
Flood::Type::Type(System::IntPtr native)
{
    NativePtr = (::Type*)native.ToPointer();
}