Aimsun Next Scripting  24.0
Public Member Functions | List of all members
GKGeoObjectCutCmd Class Referenceabstract
Inheritance diagram for GKGeoObjectCutCmd:
GKPolylineCutCmd GKBezierCurveCutCmd GKSectionCutCmd

Public Member Functions

 GKGeoObjectCutCmd ()
 
virtual bool init (GKGeoObject *, const GKPoint &, const GKPoint &, bool)=0
 
bool isDone () const
 
virtual void setDone (bool avalue)
 
void doit ()
 
void undoit ()
 
virtual void commandToBeDone ()
 
virtual void commandDone ()
 
virtual void commandToBeUndone ()
 
virtual void commandUndone ()
 

Constructor & Destructor Documentation

◆ GKGeoObjectCutCmd()

GKGeoObjectCutCmd::GKGeoObjectCutCmd ( )

Member Function Documentation

◆ commandDone()

virtual void GKGeoObjectCutCmd::commandDone ( )
virtual

Called after do command.

◆ commandToBeDone()

virtual void GKGeoObjectCutCmd::commandToBeDone ( )
virtual

Called before do command.

◆ commandToBeUndone()

virtual void GKGeoObjectCutCmd::commandToBeUndone ( )
virtual

Called before undo command.

◆ commandUndone()

virtual void GKGeoObjectCutCmd::commandUndone ( )
virtual

Called after undo command.

◆ doit()

void GKGeoObjectCutCmd::doit ( )

◆ init()

virtual bool GKGeoObjectCutCmd::init ( GKGeoObject ,
const GKPoint ,
const GKPoint ,
bool   
)
pure virtual

Init the cmd, it return true if the object can be cutted and false otherwise (maybe the object is locked?). This functions receives the object to be cutted and the segment uses to cut the object.

If keepConnection the cutted object will try to keep both parts connected (using a connector) if possible.

Implemented in GKBezierCurveCutCmd, GKPolylineCutCmd, and GKSectionCutCmd.

◆ isDone()

bool GKGeoObjectCutCmd::isDone ( ) const

Returns whether the command has been performed or not.

◆ setDone()

virtual void GKGeoObjectCutCmd::setDone ( bool  avalue)
virtual

Sets the "done" attribute to the specfied value.

◆ undoit()

void GKGeoObjectCutCmd::undoit ( )

© Aimsun SLU
Aimsun ®