Aimsun Next Scripting  24.0
Public Member Functions | List of all members
GKSectionJoinCmd Class Reference
Inheritance diagram for GKSectionJoinCmd:
GKCommand

Public Member Functions

 GKSectionJoinCmd ()
 
 ~GKSectionJoinCmd ()
 
void setSelection (GKObject *target, const QVector< GKSection * > &sections)
 
void doit ()
 
void undoit ()
 
- Public Member Functions inherited from GKCommand
 if (base)
 
Py_END_ALLOW_THREADS End GKCommand ()
 
void setName (const QString &)
 
const QString & getName () const
 
void setModel (GKModel *)
 
GKModelgetModel () const
 
virtual GKCommandReportinit (GKModel *)
 
virtual bool isEqual (GKCommand *) const
 
virtual void merge (GKCommand *)
 
virtual void doit ()=0
 
virtual void undoit ()=0
 
void setUndoable (bool)
 
bool isUndoable () const
 
bool isDone () const
 
virtual void setDone (bool)
 
virtual void commandToBeDone ()
 
virtual void commandDone ()
 
virtual void commandToBeUndone ()
 
virtual void commandUndone ()
 
virtual GKObjectcreatedObject () const
 
virtual bool createdObjectRequiresEdition () const
 
virtual QVector< int > getTargets () const
 

Additional Inherited Members

- Public Attributes inherited from GKCommand
ConvertToSubClassCode Py_BEGIN_ALLOW_THREADS GKCommandbase = (GKCommand*)sipCpp
 
 sipType = 0
 

Detailed Description

Tries to join two sections either creating one section or creating a node between them. This command will try first to create a unique section if:

If a node previously joined both sections, and the node had only the turn movement joining them, then the node will be removed.

If a unique section cannot be created then it will try to join them using a node. In this case both sections:

Constructor & Destructor Documentation

◆ GKSectionJoinCmd()

GKSectionJoinCmd::GKSectionJoinCmd ( )

◆ ~GKSectionJoinCmd()

GKSectionJoinCmd::~GKSectionJoinCmd ( )

Member Function Documentation

◆ doit()

void GKSectionJoinCmd::doit ( )
virtual

Do not use this function. Available just for compatibility issues.

Implements GKCommand.

◆ setSelection()

void GKSectionJoinCmd::setSelection ( GKObject target,
const QVector< GKSection * > &  sections 
)

Sets the source and the target sections before executing the command.

◆ undoit()

void GKSectionJoinCmd::undoit ( )
virtual

Do not use this function. Available just for compatibility issues.

Implements GKCommand.

© Aimsun SLU
Aimsun ®