AppView 0.8.2
AppViewConceptImpl< TBaseClass, TDerivedClass > Class Template Referenceabstract

#include <app_view.hpp>

Inherits TBaseClass, and AppViewConcept.

Static Public Member Functions

static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from AppViewConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 

Protected Member Functions

 AppViewConceptImpl (Domain *domain, string_view name)
 
virtual bool calculateHitUV (const TouchPoint &touchPoint, Vector2 &outHitUV)=0
 
MaterialSharedPtr getAppViewMaterial ()
 
TextureSharedPtr getAppViewTexture ()
 
void handleFinishAppMessage (FinishAppMessageArguments &messageArguments)
 
void handleNavigateBackMessage (const NavigateBackMessageArguments &messageArguments)
 
void handleStartAppMessage (const StartAppMessageArguments &messageArguments)
 
void handleUpdateVirtualDisplayMessage (const UpdateVirtualDisplayMessageArguments &messageArguments)
 
void initialize ()
 
virtual void onAppViewTextureChanged ()=0
 Kanzi calls this when the App View texture has changed and needs to be re-applied.
 
void onAttached () override
 
void onDetached () override
 
void onFrameAvailable ()
 Kanzi calls this function from the main UI thread when a new frame is available.
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation.
 
virtual void setupMaterialOverride ()=0
 

Additional Inherited Members

- Static Public Attributes inherited from AppViewConcept
static PropertyType< string > AppNameProperty
 
static PropertyType< string > VirtualDisplayNameProperty
 
static PropertyType< int > VirtualDisplayWidthProperty
 
static PropertyType< int > VirtualDisplayHeightProperty
 
static PropertyType< int > VirtualDisplayDensityProperty
 
static PropertyType< bool > CanExitAppProperty
 
static PropertyType< ResourceSharedPtr > OverrideMaterialProperty
 
static PropertyType< string > MessageArgumentAppNameProperty
 
static PropertyType< bool > MessageArgumentCanExitAppProperty
 
static PropertyType< int > MessageArgumentVirtualDisplayWidthProperty
 
static PropertyType< int > MessageArgumentVirtualDisplayHeightProperty
 
static PropertyType< int > MessageArgumentVirtualDisplayDensityProperty
 
static MessageType< StartAppMessageArgumentsStartAppMessage
 
static MessageType< FinishAppMessageArgumentsFinishAppMessage
 
static MessageType< NavigateBackMessageArgumentsNavigateBackMessage
 
static MessageType< UpdateVirtualDisplayMessageArgumentsUpdateVirtualDisplayMessage
 
static MessageType< MessageArguments > PauseAppMessage
 
static MessageType< MessageArguments > ResumeAppMessage
 

Constructor & Destructor Documentation

◆ AppViewConceptImpl()

template<typename TBaseClass , typename TDerivedClass >
AppViewConceptImpl ( Domain * domain,
string_view name )
explicitprotected

Member Function Documentation

◆ calculateHitUV()

template<typename TBaseClass , typename TDerivedClass >
virtual bool calculateHitUV ( const TouchPoint & touchPoint,
Vector2 & outHitUV )
protectedpure virtual

Implemented in AppView2D, and AppView3D.

◆ getAppViewMaterial()

template<typename TBaseClass , typename TDerivedClass >
MaterialSharedPtr getAppViewMaterial ( )
protected

◆ getAppViewTexture()

template<typename TBaseClass , typename TDerivedClass >
TextureSharedPtr getAppViewTexture ( )
protected

◆ handleFinishAppMessage()

template<typename TBaseClass , typename TDerivedClass >
void handleFinishAppMessage ( FinishAppMessageArguments & messageArguments)
protected

◆ handleNavigateBackMessage()

template<typename TBaseClass , typename TDerivedClass >
void handleNavigateBackMessage ( const NavigateBackMessageArguments & messageArguments)
protected

◆ handleStartAppMessage()

template<typename TBaseClass , typename TDerivedClass >
void handleStartAppMessage ( const StartAppMessageArguments & messageArguments)
protected

◆ handleUpdateVirtualDisplayMessage()

template<typename TBaseClass , typename TDerivedClass >
void handleUpdateVirtualDisplayMessage ( const UpdateVirtualDisplayMessageArguments & messageArguments)
protected

◆ initialize()

template<typename TBaseClass , typename TDerivedClass >
void initialize ( )
protected

◆ makeEditorInfo()

template<typename TBaseClass , typename TDerivedClass >
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ( )
static

◆ onAppViewTextureChanged()

template<typename TBaseClass , typename TDerivedClass >
virtual void onAppViewTextureChanged ( )
protectedpure virtual

Kanzi calls this when the App View texture has changed and needs to be re-applied.

Implemented in AppView2D, and AppView3D.

◆ onAttached()

template<typename TBaseClass , typename TDerivedClass >
void onAttached ( )
overrideprotected

◆ onDetached()

template<typename TBaseClass , typename TDerivedClass >
void onDetached ( )
overrideprotected

◆ onFrameAvailable()

template<typename TBaseClass , typename TDerivedClass >
void onFrameAvailable ( )
protected

Kanzi calls this function from the main UI thread when a new frame is available.

◆ onNodePropertyChanged()

template<typename TBaseClass , typename TDerivedClass >
void onNodePropertyChanged ( AbstractPropertyType propertyType,
PropertyNotificationReason reason )
overrideprotected

Node::onNodePropertyChanged implementation.

◆ setupMaterialOverride()

template<typename TBaseClass , typename TDerivedClass >
virtual void setupMaterialOverride ( )
protectedpure virtual

Implemented in AppView2D, and AppView3D.