NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
IGL2DSprite Class Referenceabstract

Set of GL2D sprite entries, based on same texture fragment. More...

#include <gl2d_sprites_interface.h>

Inherits ISDKProperties.

Public Member Functions

virtual void SDK_CALLTYPE Dump () const =0 throw ()
 Dumps given object.
 
virtual IGL2DCanvasSP SDK_CALLTYPE GetCanvas () const =0 throw ()
 Returns parent canvas object.
 
virtual SDKResult SDK_CALLTYPE GetID (SDKString &id) const =0 throw ()
 Returns sprite ID.
 
virtual SDKRect2D SDK_CALLTYPE GetTextureRect () const =0 throw ()
 Returns texture fragment rectangle to use as a sprite image.
 
virtual SDKPointF2D SDK_CALLTYPE GetPivotPoint () const =0 throw ()
 Returns sprite pivot point.
 
virtual SDKResult SDK_CALLTYPE SetDefaultSpritePositionTransform (const SDKMatrix3X2 &sprite_transform)=0 throw ()
 Sets default sprite position transformation matrix Given matrix will be set for all of new sprite positions.
 
virtual SDKMatrix3X2 SDK_CALLTYPE GetDefaultSpritePositionTransform () const =0 throw ()
 Returns current default sprite position transformation matrix.
 
virtual SDKResult SDK_CALLTYPE SetDefaultSpriteSizeFixedFlag (const bool &is_sprite_size_fixed)=0 throw ()
 Sets default sprite size fixed flag Given flag will be set for all of new sprite positions.
 
virtual bool SDK_CALLTYPE GetDefaultSpriteSizeFixedFlag () const =0 throw ()
 Returns current default sprite size fixed flag.
 
virtual SDKResult SDK_CALLTYPE SetDefaultSpriteRotationFixedFlag (const bool &is_sprite_rotation_fixed)=0 throw ()
 Sets default sprite rotation fixed flag Given flag will be set for all of new sprite positions.
 
virtual bool SDK_CALLTYPE GetDefaultSpriteRotationFixedFlag () const =0 throw ()
 Returns current default sprite rotation fixed flag.
 
virtual SDKResult SDK_CALLTYPE ApplySpritePositionTransform (const SDKMatrix3X2 &sprite_transform)=0 throw ()
 Applies given sprite position transformation matrix to all of sprite positions in given sprite IGL2DSprites::StartEdit method should be called before calling this one.
 
virtual SDKResult SDK_CALLTYPE ApplySpriteSizeFixedFlag (const bool &is_sprite_size_fixed)=0 throw ()
 Applies given sprite size fixed flag to all of sprite positions in given sprite IGL2DSprites::StartEdit method should be called before calling this one.
 
virtual SDKResult SDK_CALLTYPE ApplySpriteRotationFixedFlag (const bool &is_sprite_rotation_fixed)=0 throw ()
 Applies given sprite rotation fixed flag to all of sprite positions in given sprite IGL2DSprites::StartEdit method should be called before calling this one.
 
virtual IGL2DSpritePosSP SDK_CALLTYPE AddPosition (const SDKString &id, const SDKPointF2D &position)=0 throw ()
 Adds new sprite position to given sprite id - Sprite position ID, if sprite position with given ID already exist - it will be replaced If empty ID specified - ID will be auto-generated position - Sprite position, position of appropriate sprite pivot point IGL2DSprites::StartEdit method should be called before calling this one.
 
virtual SDKResult SDK_CALLTYPE RemovePosition (const SDKString &id)=0 throw ()
 Removes sprite position from sprite by it's ID IGL2DSprites::StartEdit method should be called before calling this one.
 
virtual SDKUInt32 SDK_CALLTYPE GetPositionsCount () const =0 throw ()
 Returns total number of sprite positions in sprite.
 
virtual IGL2DSpritePosSP SDK_CALLTYPE GetPositionByIndex (const SDKUInt32 &index) const =0 throw ()
 Returns sprite position by it's index.
 
virtual IGL2DSpritePosSP SDK_CALLTYPE GetPositionByID (const SDKString &id) const =0 throw ()
 Returns sprite position by it's ID.
 

Detailed Description

Set of GL2D sprite entries, based on same texture fragment.


The documentation for this class was generated from the following file: