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

GL2D Clipping Texture object. More...

#include <gl2d_clipping_texture_interface.h>

Inheritance diagram for IGL2DClipTexture:
IGL2DTexture

Public Member Functions

virtual IGL2DTextureSP SDK_CALLTYPE GetClippingTexture () const =0 throw ()
 Returns clipping GL2D texture instance.
 
virtual SDKColorF SDK_CALLTYPE GetClipColor () const =0 throw ()
 Returns clip color value (if texture pixel has given color at object's pivot point position, rendering of given object will be skipped)
 
virtual SDKColorF SDK_CALLTYPE GetNoClipColor () const =0 throw ()
 Returns no-clip color value (if texture pixel has given color at object's pivot point position, given object will be rendered)
 
virtual float SDK_CALLTYPE GetClipColorThreshold () const =0 throw ()
 Returns no/no-clip threshold.
 
- Public Member Functions inherited from IGL2DTexture
virtual void SDK_CALLTYPE Dump () const =0 throw ()
 Dumps given object.
 
virtual IGL2DCanvasSP SDK_CALLTYPE GetParent () const =0 throw ()
 Returns parent canvas object.
 
virtual SDKSize SDK_CALLTYPE GetSize () const =0 throw ()
 Returns texture dimensions.
 
virtual GL2DTextureFormat SDK_CALLTYPE GetFormat () const =0 throw ()
 Returns texture format.
 
virtual GL2DNativeTextureFormat SDK_CALLTYPE GetNativeFormat () const =0 throw ()
 Returns native (internal) texture format.
 
virtual bool SDK_CALLTYPE IsPremultipliedColors () const =0 throw ()
 Returns pre-multiplied/non pre-multiplied colors flag.
 
virtual SDKUInt32 SDK_CALLTYPE GetMemSize () const =0 throw ()
 Returns texture memory size.
 
virtual SDKInt32 SDK_CALLTYPE GetID () const =0 throw ()
 Returns texture OpenGL ID.
 
virtual SDKResult SDK_CALLTYPE GetBits (void *const data) const =0 throw ()
 Returns texture bits Bottom-left corner pixel color is a first byte, strides goes from bottom to top NOTE: Not all of textures support bits extraction due of it's format. Mostly it's about OpenGL ES2 and formats like BGRA/RGB/RGB16. At least for RGBA texture GetBits operation is always supported See IGL2DCaps::IsCanvasOperationSupported method VERY SLOW METHOD, USE FOR DEBUG PURPOSE ONLY!!!
 
virtual SDKResult SDK_CALLTYPE Clone (IGL2DTextureSP &cloned_tex)=0 throw ()
 Clones given texture NOTE: Not all of textures can be cloned due of it's format. Mostly it's about OpenGL ES2 and formats like BGRA/RGB/RGB16. At least for RGBA texture cloning operation is always supported See IGL2DCaps::IsCanvasOperationSupported method.
 
virtual SDKResult SDK_CALLTYPE CopyTo (const SDKRect2D &src_tex_rect, const SDKPointI2D &dst_pos, const IGL2DTextureSP &dst_tex)=0 throw ()
 Copies requested part of given texture to destination texture src_tex_rect - Describes rectangle of source (given) texture to copy (0, 0) - bottom left corner of given texture dst_pos - Destination position of bottom left corner of source texture in destination texture, (0,0) - bottom left corner of dest. tex. dst_tex - Destination texture, should have proper size to be able to fit source texture rectangle See IGL2DCaps::IsCanvasOperationSupported method.
 
SDKResult SDK_CALLTYPE CopyTo (const SDKPointI2D &dst_pos, const IGL2DTextureSP &dst_tex)
 Copies whole source texture to destination texture.
 
virtual SDKResult SDK_CALLTYPE SaveTexture (const SDKAny &file_path, const GL2DImageFormat &format) const =0 throw ()
 Saves given texture in requested format See IGL2DCanvasUtils::SaveTexture.
 

Detailed Description

GL2D Clipping Texture object.


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