Aimsun Next Scripting
24.0
|
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 () |
GKGeoObjectCutCmd::GKGeoObjectCutCmd | ( | ) |
|
virtual |
Called after do command.
|
virtual |
Called before do command.
|
virtual |
Called before undo command.
|
virtual |
Called after undo command.
void GKGeoObjectCutCmd::doit | ( | ) |
|
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.
bool GKGeoObjectCutCmd::isDone | ( | ) | const |
Returns whether the command has been performed or not.
|
virtual |
Sets the "done" attribute to the specfied value.
void GKGeoObjectCutCmd::undoit | ( | ) |