LuciadCPillar C# 2023.1.04
Luciad.Create.Geometries.IGeometryCreator Interface Reference

A geometry creator can create geometry instances, based on input events. More...

Inheritance diagram for Luciad.Create.Geometries.IGeometryCreator:
Luciad.Create.Geometries.PatchCreator Luciad.Create.Geometries.PointCreator Luciad.Create.Geometries.PolylineCreator Luciad.Create.Geometries.PolylineRingCreator

Public Member Functions

Luciad.Controllers.EventResult OnEvent (Luciad.Input.IInputEvent inputEvent, Luciad.Create.Features.FeatureCreateContext context)
 Handles the given event, and returns if the event was handled or not. More...
 
void Start (Luciad.Create.Geometries.IGeometryCreateCallback callback, Luciad.Create.Features.FeatureCreateContext context)
 This method is called to start creation. More...
 

Detailed Description

A geometry creator can create geometry instances, based on input events.

It uses a callback to signal changes to the geometry or to signal that the creation has finished. Users of this class need to explicitly start creation send events to the creator listen to geometry changes stop sending events when creation has finished

IGeometryCreator instances can be used multiple times. Creating a new instance should only start after the last one has finished. 2020.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::IGeometryCreator.

Member Function Documentation

◆ OnEvent()

Luciad.Controllers.EventResult Luciad.Create.Geometries.IGeometryCreator.OnEvent ( Luciad.Input.IInputEvent  inputEvent,
Luciad.Create.Features.FeatureCreateContext  context 
)

Handles the given event, and returns if the event was handled or not.

context

the context, cannot be nullptr

inputEvent

an event, cannot be nullptr

if the event was consumed or not

NullArgumentException

when nullptr is passed.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::IGeometryCreator::onEvent.

Implemented in Luciad.Create.Geometries.PatchCreator, Luciad.Create.Geometries.PointCreator, Luciad.Create.Geometries.PolylineCreator, and Luciad.Create.Geometries.PolylineRingCreator.

◆ Start()

void Luciad.Create.Geometries.IGeometryCreator.Start ( Luciad.Create.Geometries.IGeometryCreateCallback  callback,
Luciad.Create.Features.FeatureCreateContext  context 
)

This method is called to start creation.

After this call, IGeometryCreator::onEvent can be called. When a IGeometryCreator was started, it can not be started again until it has finished. Implementations of this method are encouraged to throw an exception in that case to signal a programming error by the caller of this method.

context

the context, cannot be nullptr

callback

the callback to signal geometry changes, and whether creation for the geometry has finished, cannot be nullptr.

NullArgumentException

when nullptr is passed.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::IGeometryCreator::start.

Implemented in Luciad.Create.Geometries.PatchCreator, Luciad.Create.Geometries.PointCreator, Luciad.Create.Geometries.PolylineCreator, and Luciad.Create.Geometries.PolylineRingCreator.