NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
2d_render_target_brush_interface.h
Go to the documentation of this file.
1 #ifndef SDK_2D_RENDER_TARGET_BRUSH_INTERFACE_H_
11 #define SDK_2D_RENDER_TARGET_BRUSH_INTERFACE_H_
12 
13 #include <base/inc/platform.h>
16 #include "2d_graphics_objects.h"
17 
18 namespace sdk {
19 namespace gfx {
20 
23 class I2DRenderTargetBrush : public sdk::ISDKComponent
24 {
25  public:
27  virtual SDKResult SDK_CALLTYPE GetParent(sdk::gfx::RenderTargetSP& parent) const throw() = 0;
28 
30  virtual SDKResult SDK_CALLTYPE SetOpacity(const float& opacity) throw() = 0;
32  virtual SDKResult SDK_CALLTYPE GetOpacity(float& opacity) throw() = 0;
33 
35  virtual SDKResult SDK_CALLTYPE SetTransform(const SDKMatrix3X2& transformation_matrix) throw() = 0;
37  virtual SDKResult SDK_CALLTYPE GetTransform(SDKMatrix3X2& transformation_matrix) throw() = 0;
38 
40  SDK_IMPLEMENT_IID(I2DRenderTargetBrush)
41  SDK_END_INTERFACE(I2DRenderTargetBrush)
42 };
43 SDK_DECLARE_IID(I2DRenderTargetBrush)
44 } // namespace gfx
45 } // namespace sdk
46 
47 #endif // SDK_2D_RENDER_TARGET_BRUSH_INTERFACE_H_
sdk::gfx::I2DRenderTargetBrush::GetTransform
virtual SDKResult SDK_CALLTYPE GetTransform(SDKMatrix3X2 &transformation_matrix)=0
Returns current brush transformation matrix.
sdk::gfx::I2DRenderTargetBrush
Brush for drawing graphics path by the render target.
Definition: 2d_render_target_brush_interface.h:23
sdk::gfx::I2DRenderTargetBrush::GetParent
virtual SDKResult SDK_CALLTYPE GetParent(sdk::gfx::RenderTargetSP &parent) const =0
Returns the parent render target instance, which created the given instance.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
sdk_component_interface.h
Common base SDK interfaces.
sdk::gfx::I2DRenderTargetBrush::GetOpacity
virtual SDKResult SDK_CALLTYPE GetOpacity(float &opacity)=0
Returns current brush opacity value.
platform.h
Describes the platform constants.
matrix_base_types.h
Matrix base definitions.
sdk::gfx::I2DRenderTargetBrush::SetTransform
virtual SDKResult SDK_CALLTYPE SetTransform(const SDKMatrix3X2 &transformation_matrix)=0
Sets the transformation matrix for brush.
sdk::gfx::I2DRenderTargetBrush::SetOpacity
virtual SDKResult SDK_CALLTYPE SetOpacity(const float &opacity)=0
Sets opacity value for brush.