本文整理匯總了C++中Eegeo_NEW函數的典型用法代碼示例。如果您正苦於以下問題:C++ Eegeo_NEW函數的具體用法?C++ Eegeo_NEW怎麽用?C++ Eegeo_NEW使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Eegeo_NEW函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: m_renderableFilters
GpsMarkerModule::GpsMarkerModule(Eegeo::Location::ILocationService& locationService,
Eegeo::Modules::Map::Layers::TerrainModelModule& terrainModelModule,
Eegeo::Modules::Map::MapModule& mapModule,
Eegeo::Modules::Core::RenderingModule& renderingModule,
Eegeo::Resources::Interiors::InteriorInteractionModel& interiorInteractionModel,
VisualMap::SdkModel::IVisualMapService& visualMapService,
const bool createBlueSphereViews,
ExampleAppMessaging::TMessageBus& messageBus)
: m_renderableFilters(renderingModule.GetRenderableFilters())
{
m_pModel = Eegeo_NEW(GpsMarkerModel)(locationService, interiorInteractionModel, mapModule.GetBlueSphereModule().GetBlueSphereModel());
m_pRingRenderableFactory = AccuracyRingRenderableFactory::Create(renderingModule);
m_pRingRenderable = m_pRingRenderableFactory->BuildRenderable();
m_pRingRenderable->SetColors(Eegeo::v4(18.0f/255.0f, 86.0f/255.0f, 172.0f/255.0f, 0.75f),
Eegeo::v4(18.0f/255.0f, 86.0f/255.0f, 172.0f/255.0f, 0.8f));
m_pRingView = Eegeo_NEW(AccuracyRingView)(*m_pRingRenderable);
m_renderableFilters.AddRenderableFilter(*m_pRingView);
m_pController = Eegeo_NEW(GpsMarkerController)(*m_pModel,
interiorInteractionModel,
locationService,
mapModule.GetEnvironmentFlatteningService(),
visualMapService,
mapModule.GetBlueSphereModule().GetBlueSphereView(),
mapModule.GetBlueSphereModule().GetBlueSphereAnchorView(),
createBlueSphereViews,
*m_pRingView,
messageBus);
}
示例2: Eegeo_NEW
void ModifiedRenderingExample::Start()
{
//MyPoolFilterCriteria implemented below... uses camera interest point as selection criteria
m_pCriteria = new ModifiedRenderingExample::MyPoolFilterCriteria(this);
//apply to filter, but lifetime responsibility is ours
m_buildingFilter.SetFilterCriteria(m_pCriteria);
//register for notifications when scene elements are added to or removed from the scene.
m_buildingRepository.AddObserver(*this);
//register as a renderable filter so that we can submit our new renderables for rendering.
m_renderableFilters.AddRenderableFilter(this);
// create alternative material to render with.
m_pAlternativeLighting = Eegeo_NEW(Eegeo::Lighting::GlobalLighting)();
m_pAlternativeShader = Eegeo::Rendering::Shaders::PackedDiffuseShader::Create(m_shaderIdGenerator.GetNextId());
m_pAlternativeMaterial = Eegeo_NEW(Eegeo::Rendering::Materials::PackedDiffuseMaterial)(
m_materialIdGenerator.GetNextId(),
"ExampleMaterial",
*m_pAlternativeShader,
*m_pAlternativeLighting,
m_placeHolderTexture.textureId,
Eegeo::Rendering::TextureMinify_NearestMipmap_Linear,
false,
false);
PopulateAlternativeRenderablesFromInitialSceneGraph();
}
示例3: Eegeo_NEW
WatermarkModule::WatermarkModule(Eegeo::Helpers::IIdentityProvider& identityProvider,
const std::string& appName,
const std::string& googleAnalyticsReferrerToken,
Eegeo::Resources::Interiors::InteriorSelectionModel& interiorSelectionModel,
Eegeo::Resources::Interiors::InteriorsModelRepository& interiorsModelRepository,
InteriorsExplorer::SdkModel::InteriorsExplorerModel& interiorsExplorerModel,
ExampleAppMessaging::TMessageBus& messageBus)
{
m_pViewModel = Eegeo_NEW(View::WatermarkViewModel)(identityProvider.GetNextIdentity(), false);
m_pWatermarkDataFactory = Eegeo_NEW(View::WatermarkDataFactory)(appName, googleAnalyticsReferrerToken);
m_pWatermarkDataRepository = Eegeo_NEW(View::WatermarkDataRepository)();
m_pWatermarkDataRepository->AddWatermarkData("eegeo", m_pWatermarkDataFactory->CreateDefaultEegeo());
m_pWatermarkModel = Eegeo_NEW(WatermarkModel)();
m_pWatermarkInteriorStateChangedObserver = Eegeo_NEW(WatermarkInteriorStateChangedObserver)(*m_pWatermarkModel,
interiorSelectionModel,
interiorsModelRepository,
interiorsExplorerModel,
messageBus);
AddThirdPartyWatermarkData();
}
示例4: m_worldMenuItemRepository
WorldMenuController::WorldMenuController(IWorldMenuItemObservable& worldMenuItemObservable
, IWorldMenuItemViewFactory& viewFactory
, Eegeo::UI::IUIInteractionObservable& uiInteractionObservable
, Eegeo::UI::IUICameraProvider& uiCameraProvider
, Eegeo::UI::IUIQuadFactory& quadFactory
, Eegeo::UI::IUIRenderableFilter& uiRenderableFilter
, std::string texture
, int topSpriteID
, int numTilesAlong1Axes)
: m_worldMenuItemRepository(worldMenuItemObservable)
, m_viewFactory(viewFactory)
, m_uiInteractionObservable(uiInteractionObservable)
, m_uiCameraProvider(uiCameraProvider)
{
m_pWorldMenuUpView = Eegeo_NEW(WorldMenuUpView)(quadFactory, uiRenderableFilter, texture, topSpriteID, numTilesAlong1Axes);
m_menuItemsShouldRender = true;
m_isMenuShown = false;
m_worldMenuItemRepository.AddWorldMenuObserver(this);
Eegeo::v2 size(numTilesAlong1Axes,numTilesAlong1Axes);
Eegeo::v2 outMin;
Eegeo::v2 outMax;
Eegeo::UI::CalculateUV(size, 20, outMin, outMax);
Eegeo::v2 dimension = Eegeo::v2(50.f,50.f);
m_pSelectedArrow = Eegeo_NEW(Eegeo::UI::UISprite)(uiRenderableFilter,
quadFactory.CreateUIQuad(texture,
dimension,
outMin,
outMax,
Eegeo::Rendering::LayerIds::Values::AfterAll),
dimension);
m_pSelectedArrow->SetMaxAlpha(0.5f);
}
示例5: Eegeo_NEW
void PinsExample::CreateExamplePins()
{
// Get the repository of all currently active Pins.
Eegeo::Pins::PinRepository& pinRepository = m_pPinsModule->GetRepository();
// Create test pins and add them to the repository.
Eegeo::Pins::TPinId pin0Id = 0;
Eegeo::Space::LatLong pin0Location = Eegeo::Space::LatLong::FromDegrees(37.7858,-122.401);
int pin0Icon = 0;
Eegeo::Pins::Pin* pPin0 = Eegeo_NEW(Eegeo::Pins::Pin)(pin0Id, pin0Location, 0, pin0Icon, &m_pin0UserData);
pinRepository.AddPin(*pPin0);
// Save this pin so that we can add and remove it in AddRemovePin0()
m_pPin0 = pPin0;
Eegeo::Pins::TPinId pin1Id = 1;
Eegeo::Space::LatLong pin1Location = Eegeo::Space::LatLong::FromDegrees(37.78547,-122.40259);
int pin1Icon = 1;
Eegeo::Pins::Pin* pPin1 = Eegeo_NEW(Eegeo::Pins::Pin)(pin1Id, pin1Location, 0, pin1Icon, &m_pin1UserData);
pinRepository.AddPin(*pPin1);
Eegeo::Pins::TPinId pin2Id = 2;
Eegeo::Space::LatLong pin2Location = Eegeo::Space::LatLong::FromDegrees(37.78547,-122.402);
int pin2Icon = 2;
Eegeo::Pins::Pin* pPin2 = Eegeo_NEW(Eegeo::Pins::Pin)(pin2Id, pin2Location, 0, pin2Icon, &m_pin2UserData);
pinRepository.AddPin(*pPin2);
Eegeo::Pins::TPinId pin3Id = 3;
Eegeo::Space::LatLong pin3Location = Eegeo::Space::LatLong::FromDegrees(37.78547,-122.403);
int pin3Icon = 3;
Eegeo::Pins::Pin* pPin3 = Eegeo_NEW(Eegeo::Pins::Pin)(pin3Id, pin3Location, 30, pin3Icon, &m_pin3UserData);
pinRepository.AddPin(*pPin3);
}
示例6: Eegeo_NEW
AboutPageMenuModule::AboutPageMenuModule(Menu::View::IMenuViewModel& menuViewModel,
AboutPage::View::IAboutPageViewModel& aboutPageViewModel)
{
m_pAboutPageMenuModel = Eegeo_NEW(Menu::View::MenuModel)();
m_pAboutPageMenuOptionsModel = Eegeo_NEW(Menu::View::MenuOptionsModel)(*m_pAboutPageMenuModel);
m_pAboutPageMenuOptionsModel->AddItem("About", "About", "", "", Eegeo_NEW(View::AboutPageMenuOption)(menuViewModel, aboutPageViewModel));
}
示例7: Eegeo_ASSERT
void PinOverModelExample::Start()
{
pModel = Eegeo::Model::CreateFromPODFile("Test_ROBOT_ARM.pod", fileIO, renderContext.GetGLState(), &textureRequestor, "");
Eegeo_ASSERT(pModel->GetRootNode());
m_pMyModelRenderable = Eegeo_NEW (MyModelRenderable)(*pModel, renderContext, globalFogging, nullMat);
m_pMyRenderableFilter = Eegeo_NEW (MyRenderableFilter)(*m_pMyModelRenderable);
renderableFilters.AddRenderableFilter(m_pMyRenderableFilter);
}
示例8: Eegeo_ASSERT
void PinOverModelExample::Start()
{
m_pModel = Eegeo::Model::CreateFromPODFile("pin_over_model_example/Test_ROBOT_ARM.pod", m_fileIO, m_renderContext.GetGLState(), &m_textureRequestor, "pin_over_model_example/");
Eegeo_ASSERT(m_pModel->GetRootNode());
m_pMyModelRenderable = Eegeo_NEW (MyModelRenderable)(*m_pModel, m_renderContext, m_globalFogging, m_nullMat);
m_pMyRenderableFilter = Eegeo_NEW (MyRenderableFilter)(*m_pMyModelRenderable);
m_renderableFilters.AddRenderableFilter(m_pMyRenderableFilter);
}
示例9: Eegeo_NEW
ModalityModule::ModalityModule(ExampleAppMessaging::TMessageBus& messageBus,
const std::vector<OpenableControl::View::IOpenableControlViewModel*>& viewModels)
{
m_pModel = Eegeo_NEW(ModalityModel)();
m_pController = Eegeo_NEW(ModalityController)(*m_pModel,
viewModels);
m_pModalityObserver = Eegeo_NEW(ModalityObserver)(*m_pModel, messageBus);
}
示例10: Eegeo_NEW
DecartaSearchServiceModule::DecartaSearchServiceModule(Eegeo::Web::IWebLoadRequestFactory& webLoadRequestFactory,
Eegeo::Helpers::UrlHelpers::IUrlEncoder& urlEncoder)
{
m_pSearchResultParser = Eegeo_NEW(Decarta::DecartaSearchJsonParser);
m_pSearchService = Eegeo_NEW(Decarta::DecartaSearchService)(ExampleApp::DecartaApiKey,
*m_pSearchResultParser,
urlEncoder,
webLoadRequestFactory);
}
示例11: m_accessToken
TwitterFeedService::TwitterFeedService(Eegeo::Web::IWebLoadRequestFactory& webLoadRequestFactory)
: m_accessToken("")
, m_webLoadRequestFactory(webLoadRequestFactory)
, m_pCurrentAuthRequest(NULL)
, m_pCurrentTimeLineRequest(NULL)
, m_pAuthCallback(Eegeo_NEW(Eegeo::Web::TWebLoadRequestCompletionCallback<TwitterFeedService>)(this, &TwitterFeedService::HandleAuthResponse))
, m_pTimeLineCallback(Eegeo_NEW(Eegeo::Web::TWebLoadRequestCompletionCallback<TwitterFeedService>)(this, &TwitterFeedService::HandleTimeLineResponse))
, m_currentServiceState(NOT_STARTED)
{
}
示例12: Eegeo_NEW
ModalBackgroundViewModule::ModalBackgroundViewModule(
AndroidNativeState& nativeState,
Modality::View::IModalityModel& modalityModel,
ExampleAppMessaging::TMessageBus& messageBus
)
{
ASSERT_UI_THREAD
m_pView = Eegeo_NEW(ModalBackgroundAggregateView)(nativeState, messageBus);
m_pController = Eegeo_NEW(Modality::View::ModalBackgroundController)(*m_pView, modalityModel);
}
示例13: Eegeo_NEW
CompassViewModule::CompassViewModule(
WindowsNativeState& nativeState,
ICompassViewModel& viewModel,
ExampleAppMessaging::TMessageBus& messageBus
)
{
m_pView = Eegeo_NEW(CompassView)(nativeState);
m_pController = Eegeo_NEW(CompassController)(
*m_pView,
viewModel,
messageBus);
}
示例14: Eegeo_NEW
GpsMarkerTutorialViewModule::GpsMarkerTutorialViewModule(WindowsNativeState& nativeState,
ExampleAppMessaging::TMessageBus& messageBus,
const GpsMarker::SdkModel::GpsMarkerModel& gpsMarkerModel,
Eegeo::Rendering::EnvironmentFlatteningService& environmentFlatteningService)
{
m_pView = Eegeo_NEW(GpsMarkerTutorialView)();
m_pController = Eegeo_NEW(GpsMarkerTutorialController)(*m_pView,
messageBus,
gpsMarkerModel,
environmentFlatteningService);
}
示例15: Eegeo_NEW
TagSearchViewModule* TagSearchViewModule::Create(
Menu::View::IMenuOptionsModel& menuOptionsModel,
Menu::View::IMenuViewModel& menuViewModel,
ExampleAppMessaging::TMessageBus& messageBus,
const Menu::View::IMenuReactionModel& menuReaction)
{
auto* pController = Eegeo_NEW(TagSearch::View::TagSearchSectionController)(
menuOptionsModel,
menuViewModel,
messageBus,
menuReaction);
return Eegeo_NEW(TagSearchViewModule)(pController);
}