MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLCustomFeedback Class Referenceabstract

Detailed Description

This interface class allows an application to accept feedback about what the operations are doing with entities within the MapLink Editor SDK.

An instance of an application class, derived from this class, may be passed to the TSLEditor. MapLink will take ownership of the class and will destroy it when the TSLEditor is deleted.

All methods should be overridden and implemented. See the individual method documentation for further details. Typically this class is used to allow update of a tree control displaying the contents of the edit layer.

Public Member Functions

 TSLCustomFeedback ()
 
virtual ~TSLCustomFeedback ()
 
virtual void attributesChanged (const TSLEntityReferenceSet *entities, const char *name)=0
 
virtual void created (const TSLEntityReferenceSet *entities, bool replacingOtherEntities, const char *name)=0
 
virtual void deleting (const TSLEntityReferenceSet *entities, bool willBeReplaced, const char *name)=0
 
virtual void deselected (const TSLEntityReferenceSet *entities, const char *name)=0
 
virtual void geometryChanged (const TSLEntityReferenceSet *entities, const char *name)=0
 
virtual void reordered (const TSLEntityReferenceSet *entities, const char *name)=0
 
virtual void reparented (const TSLEntityReferenceSet *entities, const char *name)=0
 
virtual void selected (const TSLEntityReferenceSet *entities, const char *name)=0
 
virtual void undeleted (const TSLEntityReferenceSet *entities, bool replacingOtherEntities, const char *name)=0
 

Constructor & Destructor Documentation

◆ TSLCustomFeedback()

TSLCustomFeedback::TSLCustomFeedback ( )

◆ ~TSLCustomFeedback()

virtual TSLCustomFeedback::~TSLCustomFeedback ( )
virtual

Virtual destructor

Member Function Documentation

◆ attributesChanged()

virtual void TSLCustomFeedback::attributesChanged ( const TSLEntityReferenceSet * entities,
const char * name )
pure virtual

Called when entities have their attributes changed, typically rendering attributes.

Parameters
entitiesThe reference set of entities being acted upon.
nameThe name of the operation performing the action.

◆ created()

virtual void TSLCustomFeedback::created ( const TSLEntityReferenceSet * entities,
bool replacingOtherEntities,
const char * name )
pure virtual

Called when entities are created.

Note that this may be triggered even when the entities being created are be replacements for others that have been deleted. This is necessary since the ordering and parenting of entities is important and cannot be maintained using a simple replacing(x with y) call.

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
replacingOtherEntitiesThis flag indicates whether the entities being created are replacing other entities that have just be deleted.
nameThe name of the operation performing the action.

◆ deleting()

virtual void TSLCustomFeedback::deleting ( const TSLEntityReferenceSet * entities,
bool willBeReplaced,
const char * name )
pure virtual

Called just before entities are deleted.

Note that this may be triggered even when the entities being deleted will be replaced by others. This is necessary since the ordering and parenting of entities is important and cannot be maintained using a simple replacing(x with y) call.

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
willBeReplacedThis flag indicates whether the entities being deleted will subsequently be replaced by new entities. These new entities will be notified using the created or undeleted methods.
nameThe name of the operation performing the action.

◆ deselected()

virtual void TSLCustomFeedback::deselected ( const TSLEntityReferenceSet * entities,
const char * name )
pure virtual

Called when entities are removed from the select list.

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
nameThe name of the operation performing the action.

◆ geometryChanged()

virtual void TSLCustomFeedback::geometryChanged ( const TSLEntityReferenceSet * entities,
const char * name )
pure virtual

Called when entities have their geometry changed - e.g. move/scale/addpoint etc.

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
nameThe name of the operation performing the action.

◆ reordered()

virtual void TSLCustomFeedback::reordered ( const TSLEntityReferenceSet * entities,
const char * name )
pure virtual

Called when entities are reordered beneath their current parent, (back/front)

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
nameThe name of the operation performing the action.

◆ reparented()

virtual void TSLCustomFeedback::reparented ( const TSLEntityReferenceSet * entities,
const char * name )
pure virtual

Called when objects are moved up or down the entity hierarchy, e.g. grouped/ungrouped.

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
nameThe name of the operation performing the action.

◆ selected()

virtual void TSLCustomFeedback::selected ( const TSLEntityReferenceSet * entities,
const char * name )
pure virtual

Called when entities are added to the select list.

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
nameThe name of the operation performing the action.

◆ undeleted()

virtual void TSLCustomFeedback::undeleted ( const TSLEntityReferenceSet * entities,
bool replacingOtherEntities,
const char * name )
pure virtual

Called when an operation that deletes entities is undone.

Parameters
entitiesThe reference set of entities being acted upon. Must not be destroyed.
replacingOtherEntitiesThis flag indicates whether the entities being created are replacing other entities that have just be deleted.
nameThe name of the operation performing the action.