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

Implementation of "Intersect" clip rule. More...

#include <gl2d_clip_rule_interface.h>

Inheritance diagram for IGL2DIntersectClipRule:
IGL2DClipRule

Public Member Functions

virtual SDKResult SDK_CALLTYPE PushClippingMesh (const IGL2DMeshSP &mesh, const SDKMatrix3X2 &objects_transformation, const SDKMatrix3X2 &canvas_transformation)=0 throw ()
 Adds new clipping mesh (or meshes collection) to clipping meshes stack. objects_transformation matrix and canvas_transformation should specify appropriate mesh transformation. If canvas transformation will be changed later, it does not affects to given mesh transformation. Total number of applied clipping meshes is limited by IGL2DCaps::GetMaxNumberOfClippingMeshes method (256 at least)
 
virtual SDKResult SDK_CALLTYPE PushClippingMesh (const IGL2DMeshSP &mesh)=0 throw ()
 Applies new clipping mesh (or meshes collection) to clipping meshes stack Same as PushClippingMesh/PushClippingMeshColl, but objects_transformation and canvas_transformation matrix will be taken from canvas during call. More...
 
virtual SDKResult SDK_CALLTYPE PopClippingMesh ()=0 throw ()
 Removes latest clipping mesh (or meshes collection) from clipping mesh stack.
 
virtual SDKResult SDK_CALLTYPE Clear ()=0 throw ()
 Removes all of clipping meshes from clipping stack.
 
virtual SDKUInt32 SDK_CALLTYPE GetNumberOfAppliedClippingMeshes () const =0 throw ()
 Returns number of clipping meshes applied so far.
 
- Public Member Functions inherited from IGL2DClipRule
virtual void SDK_CALLTYPE Dump () const =0 throw ()
 Dumps given object.
 
virtual IGL2DCanvasSP SDK_CALLTYPE GetParent () const =0 throw ()
 Returns parent canvas object.
 
virtual GL2DClipRuleType SDK_CALLTYPE GetType () const =0 throw ()
 Returns clip rule type.
 
virtual bool SDK_CALLTYPE IsEmpty () const =0 throw ()
 Checks, if given clip rule is empty (does not have any clip entries)
 

Detailed Description

Implementation of "Intersect" clip rule.

Member Function Documentation

◆ PushClippingMesh()

virtual SDKResult SDK_CALLTYPE PushClippingMesh ( const IGL2DMeshSP &  mesh)
throw (
)
pure virtual

Applies new clipping mesh (or meshes collection) to clipping meshes stack Same as PushClippingMesh/PushClippingMeshColl, but objects_transformation and canvas_transformation matrix will be taken from canvas during call.

SDKResult PushClippingMesh(const IGL2DMeshSP& mesh) throw() { SDKMatrix3X2 objects_transformation; canvas->GetObjectsTransformationMatrix(objects_transformation);

SDKMatrix3X2 canvas_transformation; canvas->GetObjectsTransformationMatrix(canvas_transformation);

return PushClippingMesh(mesh, objects_transformation, canvas_transformation); }


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