Aimsun Next Scripting
22
|
Public Member Functions | |
G2DViewLayer () | |
~G2DViewLayer () | |
G2DView * | getView () const |
G2DViewLayer * | findLayer (GKLayer *modelLayer, bool recursive=true) |
virtual GKBBox | minBBox () const |
GKGeoObject * | findClosestObject (const GKPoint &p, GKType *type=NULL, double maxDistance=100) |
![]() | |
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 |
Public Attributes | |
MethodCode GKGeoObject * | bestMatch = nullptr |
double | bestDistance = GK::Inf |
sipRes = sipCpp->findClosestObject( *a0, bestMatch, &bestDistance, a1, a2 ) | |
Drawer for a GKLayer and the included GKGeoObjects.
G2DViewLayer::G2DViewLayer | ( | ) |
G2DViewLayer::~G2DViewLayer | ( | ) |
GKGeoObject * G2DViewLayer::findClosestObject | ( | const GKPoint & | p, |
GKType * | type = NULL , |
||
double | maxDistance = 100 |
||
) |
Returns the closest object to a point. If a type is specified, only objects of that type will be considered. You can set a maximum distance (in meters) to scan.
G2DViewLayer * G2DViewLayer::findLayer | ( | GKLayer * | modelLayer, |
bool | recursive = true |
||
) |
G2DView * G2DViewLayer::getView | ( | ) | const |
|
virtual |
double G2DViewLayer::bestDistance = GK::Inf |
MethodCode GKGeoObject* G2DViewLayer::bestMatch = nullptr |
G2DViewLayer::sipRes = sipCpp->findClosestObject( *a0, bestMatch, &bestDistance, a1, a2 ) |