Vlk interface.
Interfaces | |
| virtual ni::iConsole * | GetConsole () const =0 |
| Get the iConsole interface. {Property}. More... | |
| virtual ni::iGraphics * | GetGraphics () const =0 |
| Get the iGraphics interface. {Property}. More... | |
| virtual ni::iGraphicsContext * | GetGraphicsContext () const =0 |
| Get the iGraphicsContext interface. {Property}. More... | |
| virtual ni::iCharacterFactory * | GetCharacterFactory () const =0 |
| Get the character factory interface. {Property}. More... | |
| virtual ni::iPainter * | GetPainter () const =0 |
| Get the painter interface. {Property}. More... | |
| virtual ni::iCollide * | GetCollide () const =0 |
| Get the collide interface. {Property}. More... | |
| virtual ni::iViz * | GetViz () const =0 |
| Get the viz interface. {Property}. More... | |
| virtual ni::iSoundFactory * | GetSoundFactory () const =0 |
| Get the Sound Factory interface. {Property}. More... | |
Camera | |
| virtual void | SetCamera (iVlkCamera *apCamera)=0 |
| Set the active camera. {Property}. More... | |
| virtual iVlkCamera * | GetCamera () const =0 |
| Get the active camera. {Property}. More... | |
| virtual iVlkCamera * | GetTimelineCamera () const =0 |
| Get the camera determined by the timeline. {Property}. More... | |
| virtual ni::tBool | GetIsForcedCamera () const =0 |
| Get whether the camera to use has been 'forced', aka it's not the timeline camera. {Property}. More... | |
Entities | |
| virtual iVlkEntity * | CreateEntity (ni::iDataTable *apDT)=0 |
| Create a new entity. More... | |
| virtual iVlkEntity * | CreateEntityEx (const ni::achar *aaszName, const ni::achar *aaszClassName)=0 |
| Create an entity manually. More... | |
| virtual iVlkEntity * | CreateEntityRaw (const ni::achar *aaszName, const ni::achar *aaszClassName)=0 |
| Create an entity without attaching any sink. More... | |
| virtual iVlkEntity * | CreateEntitySerialize (ni::iDataTable *apDesc, tVlkEntitySerializeFlags aFlags, ni::iRegex *apFilter)=0 |
| Create an entity by loading/serializing the specified datatable. More... | |
| virtual iVlkEntitySink * | CreateEntitySink (const ni::achar *aaszClassName)=0 |
| Create an entity sink for the specified entity class. More... | |
| virtual iVlkEntitySink * | CreateEntitySinkFromScript (const ni::achar *aaszScriptPath, const ni::achar *aaszClassName)=0 |
| Create an entity sink for the specified script file. More... | |
| virtual ni::tBool | RecreateEntity (iVlkEntity *apEntity)=0 |
| Recreate an entity in-place. More... | |
| virtual ni::tU32 | GetNumEntities () const =0 |
| Get the number of entities created. {Property}. More... | |
| virtual iVlkEntity * | GetEntityFromName (ni::iHString *ahspName) const =0 |
| Get the entity from the specified name. {Property}. More... | |
| virtual ni::tBool | SerializeEntity (iVlkEntity *apEntity, ni::iDataTable *apDT, tVlkEntitySerializeFlags anFlags)=0 |
| Serialize the specified entity. More... | |
| virtual ni::tBool | SerializeTransform (ni::iDataTable *apDT, ni::iTransform *apTransform, vlk::tVlkEntitySerializeFlags anFlags)=0 |
| Serialize the specified transform. More... | |
Actions | |
| virtual ni::tBool | SerializeAction (vlk::iVlkAction *apAction, ni::iDataTable *apDT, ni::tSerializeFlags aFlags)=0 |
| Serialize the specified action. More... | |
| virtual vlk::iVlkActionSink * | CreateActionSink (const ni::achar *aaszName)=0 |
| Create an action sink from the specified name. More... | |
| virtual vlk::iVlkActionSink * | CreateActionSinkFromScript (const ni::achar *aaszPath, const ni::achar *aaszName)=0 |
| Create an action sink from the specified script. More... | |
Events | |
| virtual vlk::iVlkEventClass * | CreateEventClass (const ni::achar *aaszName)=0 |
| Create an event class. More... | |
| virtual vlk::iVlkEventClass * | CreateEventClassFromScript (const ni::achar *aaszPath, const ni::achar *aaszName)=0 |
| Create an event class from the specified script. More... | |
Scene management | |
| virtual ni::tBool | SetState (eVlkState aState, ni::tU32 anValue)=0 |
| Set a vlk state. {Property}. More... | |
| virtual ni::tU32 | GetState (eVlkState aState) const =0 |
| Get a vlk state. {Property}. More... | |
| virtual void | SetRoot (iVlkEntity *apRoot)=0 |
| Set the active root entity. {Property}. More... | |
| virtual iVlkEntity * | GetRoot () const =0 |
| Get the root entity. {Property}. More... | |
| virtual void | SetRootLevel (iVlkEntity *apRootLevel)=0 |
| Set the root level entity. {Property}. More... | |
| virtual iVlkEntity * | GetRootLevel () const =0 |
| Get the root level entity. {Property}. More... | |
| virtual iVlkTimeline * | GetRootTimeline () const =0 |
| Get the root timeline. {Property}. More... | |
| virtual ni::tF32 | GetRootTime () const =0 |
| Get the root time. {Property}. More... | |
| virtual void | Update (ni::tF32 afFrameTime)=0 |
| Standard local vlk update sequence. More... | |
| virtual ni::tBool | RenderEntity (ni::iCanvas *apCanvas, vlk::iVlkCamera *apCamera, vlk::iVlkEntity *apRoot, ni::iPainterRenderContext *apRC, ni::tU32 anPainterRTToPaintFlags)=0 |
| Render the scene. More... | |
| virtual void | SendUIMessage (ni::eUIMessage aMsg, const ni::Var &avarA, const ni::Var &avarB)=0 |
| Send a UI message to vlk's input targets. More... | |
| virtual void | SetFingerIDFlags (tVlkFingerIDFlags anFingerIDFlags)=0 |
| Set the current finger flags which indicate which fingers are currently down. {Property}. More... | |
| virtual tVlkFingerIDFlags | GetFingerIDFlags () const =0 |
| Get the current finger flags which indicate which fingers are currently down. {Property}. More... | |
| virtual void | SetRayCastViewport (const ni::sRectf &aRect)=0 |
| Set the screen viewport used for ray casts derived from a screen position. {Property}. More... | |
| virtual ni::sRectf | GetRayCastViewport () const =0 |
| Get the screen viewport used for ray casts derived from a screen position. {Property}. More... | |
| virtual eVlkPlaybackOrientation | GetPlaybackOrientation () const =0 |
| Get the playback orientation as derived from the RayCastViewport {Property}. More... | |
| virtual ni::sRectf | ComputeRayCastViewport (iVlkEntity *apEntity)=0 |
| Compute the final raycast viewport for the specified entity. More... | |
| virtual vlk::iVlkEntity * | PickEntity (ni::iHString *ahspRayClass, const ni::tF32 afX, const ni::tF32 afY, const ni::tF32 afMaxParam, const ni::sRectf &aRectVP, vlk::iVlkCamera *apForcedCamera, ni::iCollideResponseTable *apRespTable)=0 |
| Pick an entity from screen coordinates. More... | |
Games | |
| virtual ni::tBool | SetGame (ni::iDataTable *apGameDT)=0 |
| Set the current game. {Property}. More... | |
| virtual iVlkGame * | GetGame () const =0 |
| Get the current game. {Property}. More... | |
| virtual iVlkGame * | LoadGame (ni::iDataTable *apGameDT) const =0 |
| Load a game from the specified datatable. More... | |
Statistics | |
| virtual ni::tU32 | GetNumDrawPrimitives () const =0 |
| Get the number of draw primitives last frame. {Property}. More... | |
| virtual ni::tF32 | GetFrameTime () const =0 |
| Get the last frame time. {Property}. More... | |
| virtual ni::tF64 | GetElapsedTime () const =0 |
| Get the time since the first update. {Property}. More... | |
| virtual ni::tU32 | GetNumUpdate () const =0 |
| Get the number of Update sent. {Property}. More... | |
| virtual ni::tU32 | GetNumUpdateFrame () const =0 |
| Get the number of UpdateFrame sent. {Property}. More... | |
Entity creation from resources and templates | |
| virtual iVlkEntity * | CreateEntityFromResource (ni::iHString *ahspResource, ni::iHString *ahspCreateClass)=0 |
| Create an entity from a resource. More... | |
| virtual ni::tU32 | GetNumResourceTypes () const =0 |
| Get the number of entity resource types. {Property}. More... | |
| virtual ni::iHString * | GetEntityResourceType (ni::tU32 anIndex) const =0 |
| Get the entity resource type at the specified index. {Property}. More... | |
| virtual ni::iHString * | GetEntityResourceTypeClass (ni::tU32 anIndex) const =0 |
| Get the entity resource type class at the specified index. {Property}. More... | |
| virtual ni::iHString * | GetEntityResourceTypePathProperty (ni::tU32 anIndex) const =0 |
| Get the entity resource type path property at the specified index. {Property}. More... | |
| virtual ni::tBool | RegisterEntityResourceType (ni::iHString *ahspType, ni::iHString *ahspEntityClass, ni::iHString *ahspEntityPathProperty)=0 |
| Register a resource type. More... | |
| virtual ni::tBool | UnregisterEntityResourceType (ni::iHString *ahspType)=0 |
| Unregister a resource type. More... | |
| virtual ni::tU32 | GetEntityResourceTypeFromPath (ni::iHString *ahspPath) const =0 |
| Get the registered resource type associated with the specified file path. More... | |
| virtual ni::Ptr< ni::iHString > | GenerateUniqueActionDesc (vlk::iVlkTimeline *apTL, ni::iHString *ahspBaseName)=0 |
| Generate a unique action description. More... | |
| virtual ni::Ptr< ni::iHString > | GenerateUniqueTimelineName (vlk::iVlkEntity *apEntity, ni::iHString *ahspBaseName)=0 |
| Generate a unique timeline name. More... | |
| virtual iVlkEntity * | CreateEntityFromTemplate (iVlkEntity *apParent, ni::tU32 anIndex, ni::iDataTable *apDT)=0 |
| Create an entity from a template. More... | |
| virtual iVlkAction * | CreateActionFromTemplate (iVlkTimeline *apTL, ni::tU32 anIndex, ni::iDataTable *apDT)=0 |
| Create an action from a template. More... | |
| virtual iVlkTimeline * | CreateTimelineFromTemplate (iVlkEntity *apE, ni::tU32 anIndex, ni::iDataTable *apDT)=0 |
| Create a timeline from a template. More... | |
| virtual ni::tIUnknownCVec * | CreateObjectsFromTemplate (iVlkEntity *apParent, ni::tU32 anEntityIndex, iVlkTimeline *apTL, ni::tU32 anTLIndex, ni::iDataTable *apDT)=0 |
| Create a new objects from a template. More... | |
| virtual ni::Ptr< ni::iDataTable > | MakeUniqueEntityNamedDataTable (const ni::iDataTable *apDT)=0 |
| Use the specified datatable to create a new one which contains uniquely named entities. The other node reference the renamed entites are updated including entity paths, etc.. More... | |
Root timeline playback control | |
| virtual ni::tBool | StartPlaybackRoot (ni::tF32 afStartTime)=0 |
| Start the root playback if its not already playing. More... | |
| virtual void | SetPlaybackRoot (vlk::eVlkPlayback aPlayback)=0 |
| Set the root playback state. {Property}. More... | |
| virtual vlk::eVlkPlayback | GetPlaybackRoot () const =0 |
| Get the root playback state. {Property}. More... | |
Path | |
| virtual ni::Var | ResolvePathToVar (ni::iHString *ahspPath, vlk::iVlkEntity *apEntity, vlk::iVlkTimeline *apTimeline, const ni::Var &aDefault) const =0 |
| Resolve the specified path to a variant type. More... | |
| virtual ni::Ptr< ni::iHString > | ResolvePathToString (ni::iHString *ahspPath, vlk::iVlkEntity *apEntity, vlk::iVlkTimeline *apTimeline) const =0 |
| Resolve the specified path to a string type. More... | |
| virtual iVlkEntity * | FindActionTarget (iVlkAction *apAction, ni::iHString *ahspName) const =0 |
| Find the entity targeted by the specified string for the specified action. More... | |
| virtual iVlkTimeline * | FindActionTimeline (iVlkAction *apAction, iVlkEntity *apEntity, ni::iHString *ahspName) const =0 |
| Find the timeline targeted by the specified string for the specified action. More... | |
| virtual ni::Var | GetActionEventVarA (vlk::iVlkAction *apAction) const =0 |
| Get the VarA value of an event that triggered an event. More... | |
| virtual ni::Var | GetActionEventVarB (vlk::iVlkAction *apAction) const =0 |
| Get the VarB value of an event that triggered an event. More... | |
| virtual ni::iExpressionContext * | CreateVlkExpressionContext (ni::eDataTablePropertyType aType, vlk::iVlkEntity *apEntity, vlk::iVlkTimeline *apTimeline, vlk::iVlkAction *apAction, ni::iRunnable *apGetThis) const =0 |
| Create an expression context which eval value linked to the specified objects. More... | |
| virtual ni::Var | ExpressionVariableToVar (ni::eDataTablePropertyType aType, ni::iExpressionVariable *apStartVar, ni::iExpressionVariable *apEndVar=NULL, ni::tF32 afT=0) const =0 |
| Return a variant from start/end expression variables. More... | |
| virtual ni::eExpressionVariableType | VarTypeToExpressionType (ni::eDataTablePropertyType aType) const =0 |
| Return the the expression variable type matching the specified variant type. More... | |
Observers | |
| virtual ni::cString | SetGlobalObserver (iVlkEntity *apEntity, const ni::achar *aObserved)=0 |
| Set a global observer. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Get the iConsole interface. {Property}.
|
pure virtual |
Get the iGraphics interface. {Property}.
|
pure virtual |
Get the iGraphicsContext interface. {Property}.
|
pure virtual |
Get the character factory interface. {Property}.
|
pure virtual |
Get the painter interface. {Property}.
|
pure virtual |
Get the collide interface. {Property}.
|
pure virtual |
Get the viz interface. {Property}.
|
pure virtual |
Get the Sound Factory interface. {Property}.
|
pure virtual |
Set the active camera. {Property}.
|
pure virtual |
Get the active camera. {Property}.
|
pure virtual |
Get the camera determined by the timeline. {Property}.
|
pure virtual |
Get whether the camera to use has been 'forced', aka it's not the timeline camera. {Property}.
|
pure virtual |
Create a new entity.
|
pure virtual |
Create an entity manually.
|
pure virtual |
Create an entity without attaching any sink.
|
pure virtual |
Create an entity by loading/serializing the specified datatable.
|
pure virtual |
Create an entity sink for the specified entity class.
|
pure virtual |
Create an entity sink for the specified script file.
|
pure virtual |
Recreate an entity in-place.
|
pure virtual |
Get the number of entities created. {Property}.
|
pure virtual |
Get the entity from the specified name. {Property}.
|
pure virtual |
Serialize the specified entity.
| apEntity | is the entity to serialize. |
| apDT | is the source/destination data table. |
| anFlags | is the serialization flags. |
|
pure virtual |
Serialize the specified transform.
|
pure virtual |
Serialize the specified action.
| apAction | is the acton to serialize. |
| apDT | is the source/destination data table. |
| aFlags | are the serialize flags. |
|
pure virtual |
Create an action sink from the specified name.
|
pure virtual |
Create an action sink from the specified script.
|
pure virtual |
Create an event class.
|
pure virtual |
Create an event class from the specified script.
Set a vlk state. {Property}.
|
pure virtual |
Set the active root entity. {Property}.
|
pure virtual |
Get the root entity. {Property}.
|
pure virtual |
Set the root level entity. {Property}.
|
pure virtual |
Get the root level entity. {Property}.
|
pure virtual |
Get the root timeline. {Property}.
|
pure virtual |
Get the root time. {Property}.
|
pure virtual |
Render the scene.
|
pure virtual |
Send a UI message to vlk's input targets.
|
pure virtual |
Set the current finger flags which indicate which fingers are currently down. {Property}.
|
pure virtual |
Get the current finger flags which indicate which fingers are currently down. {Property}.
|
pure virtual |
Set the screen viewport used for ray casts derived from a screen position. {Property}.
|
pure virtual |
Get the screen viewport used for ray casts derived from a screen position. {Property}.
|
pure virtual |
Get the playback orientation as derived from the RayCastViewport {Property}.
|
pure virtual |
Compute the final raycast viewport for the specified entity.
|
pure virtual |
Pick an entity from screen coordinates.
| ahspRayClass | is the class to use for the QueryRayCast |
| afX | is the X screen coordinate |
| afY | is the Y screen coordinate |
| afMaxParam | is the max param passed to QueryRayCast (use 1.0 if you're not sure what to use) |
| aRectVP | is the screen viewport |
| apForcedCamera | if not NULL is a camera that will override the layer cameras and be used to do the picking. |
| apRespTable | if not NULL is a response table that can override the default layer query response sink. This is usefull for example if you want to do a "pick all on ray" ray cast (instead of the default "pick nearest"). |
|
pure virtual |
Set the current game. {Property}.
|
pure virtual |
Get the current game. {Property}.
|
pure virtual |
Load a game from the specified datatable.
|
pure virtual |
Get the number of draw primitives last frame. {Property}.
|
pure virtual |
Get the last frame time. {Property}.
|
pure virtual |
Get the time since the first update. {Property}.
|
pure virtual |
Get the number of Update sent. {Property}.
|
pure virtual |
Get the number of UpdateFrame sent. {Property}.
|
pure virtual |
Create an entity from a resource.
|
pure virtual |
Get the number of entity resource types. {Property}.
|
pure virtual |
Get the entity resource type at the specified index. {Property}.
|
pure virtual |
Get the entity resource type class at the specified index. {Property}.
|
pure virtual |
Get the entity resource type path property at the specified index. {Property}.
|
pure virtual |
Register a resource type.
|
pure virtual |
Unregister a resource type.
|
pure virtual |
Get the registered resource type associated with the specified file path.
|
pure virtual |
Generate a unique action description.
|
pure virtual |
Generate a unique timeline name.
|
pure virtual |
Create an entity from a template.
|
pure virtual |
Create an action from a template.
|
pure virtual |
Create a timeline from a template.
|
pure virtual |
Create a new objects from a template.
|
pure virtual |
Use the specified datatable to create a new one which contains uniquely named entities. The other node reference the renamed entites are updated including entity paths, etc..
Start the root playback if its not already playing.
| afStartTime | if >= 0 sets the current time set before starting to play, else (< 0) it will just continue playing from the current time. |
|
pure virtual |
Set the root playback state. {Property}.
|
pure virtual |
Get the root playback state. {Property}.
|
pure virtual |
Resolve the specified path to a variant type.
| ahspPath | is the path to process |
| apEntity | is the entity used as base for relative path (ex: './') |
| apTimeline | is the timeline used to fetch VarA & VarB |
| aDefault | is the value returned if the property can't be found or if ahspPath is not a dt path. |
|
pure virtual |
Resolve the specified path to a string type.
| ahspPath | is the path to process. ahspPath is returned if the path is not a dt path or if the property cannot be found. |
| apEntity | is the entity used as base for relative path (ex: './') |
| apTimeline | is the timeline used to fetch VarA & VarB |
|
pure virtual |
Find the entity targeted by the specified string for the specified action.
|
pure virtual |
Find the timeline targeted by the specified string for the specified action.
|
pure virtual |
Get the VarA value of an event that triggered an event.
|
pure virtual |
Get the VarB value of an event that triggered an event.
|
pure virtual |
Create an expression context which eval value linked to the specified objects.
| aType | is the expected return type of the expression. |
| apEntity | is the entity for the context, which is used to access bound properties with relative path (dt://./). |
| apTimeline | is the timeline for the context, which is used for VarA & VarB. |
| apAction | is the action for the context. |
| apGetThis | is a runnable that returns the value of the 'This' variable. |
|
pure virtual |
Return a variant from start/end expression variables.
| aType | is the variant type to return. |
| apStartVar | is the first expression variable. |
| apEndVar | is the second expression variable. |
| afT | is the lerp factor between the two expression variables. |
|
pure virtual |
Return the the expression variable type matching the specified variant type.
|
pure virtual |
Set a global observer.
| apEntity | is the observer entity that will receive the ObserverNotify messages. |
| aObserved | is the mask specifying which message to receive, if NULL or empty the observer is removed. |
1.8.7