Aimsun Next Scripting
22
|
Public Member Functions | |
G2DDrawer () | |
virtual | ~G2DDrawer () |
virtual void | draw (G2DDrawContext &)=0 |
virtual GDrawerHit * | hit (G2DDrawContext &, GKPoint &)=0 |
virtual void | updateGeometry (const G2DUpdateGeometryContext &dc)=0 |
![]() | |
GDrawer () | |
virtual GKGeoObject * | getModel () const |
virtual const GKBBox & | getBBox () const |
void | hide (bool v) |
virtual bool | isHidden (GView *view) const |
G2DDrawer::G2DDrawer | ( | ) |
|
virtual |
|
pure virtual |
Draws an object in a 2D View. Called by the G2DView.
|
pure virtual |
Returns information about a possible hit over this object. This hit functions is tested after testing the hit on all the top objects of this object (if any).
If an object can have top objects then maybe the G2DDrawer::preHit method should be written.
The layer will test the hit over an object following this steps:
|
pure virtual |
Synchronizes the drawer with the object that it draws (due to a change in the object): This method syncs the dylabels so be sure to call it when overwriting the function.