Aimsun Next Scripting  22
Public Member Functions | Public Attributes | List of all members
G2DViewLayer Class Reference
Inheritance diagram for G2DViewLayer:
G2DDrawer GDrawer

Public Member Functions

 G2DViewLayer ()
 
 ~G2DViewLayer ()
 
G2DViewgetView () const
 
G2DViewLayerfindLayer (GKLayer *modelLayer, bool recursive=true)
 
virtual GKBBox minBBox () const
 
GKGeoObjectfindClosestObject (const GKPoint &p, GKType *type=NULL, double maxDistance=100)
 
- Public Member Functions inherited from G2DDrawer
 G2DDrawer ()
 
virtual ~G2DDrawer ()
 
virtual void draw (G2DDrawContext &)=0
 
virtual GDrawerHithit (G2DDrawContext &, GKPoint &)=0
 
virtual void updateGeometry (const G2DUpdateGeometryContext &dc)=0
 
- Public Member Functions inherited from GDrawer
 GDrawer ()
 
virtual GKGeoObjectgetModel () const
 
virtual const GKBBoxgetBBox () const
 
void hide (bool v)
 
virtual bool isHidden (GView *view) const
 

Public Attributes

MethodCode GKGeoObjectbestMatch = nullptr
 
double bestDistance = GK::Inf
 
 sipRes = sipCpp->findClosestObject( *a0, bestMatch, &bestDistance, a1, a2 )
 

Detailed Description

Drawer for a GKLayer and the included GKGeoObjects.

Constructor & Destructor Documentation

◆ G2DViewLayer()

G2DViewLayer::G2DViewLayer ( )

◆ ~G2DViewLayer()

G2DViewLayer::~G2DViewLayer ( )

Member Function Documentation

◆ findClosestObject()

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.

◆ findLayer()

G2DViewLayer * G2DViewLayer::findLayer ( GKLayer modelLayer,
bool  recursive = true 
)

◆ getView()

G2DView * G2DViewLayer::getView ( ) const

◆ minBBox()

virtual GKBBox G2DViewLayer::minBBox ( ) const
virtual

Member Data Documentation

◆ bestDistance

double G2DViewLayer::bestDistance = GK::Inf

◆ bestMatch

MethodCode GKGeoObject* G2DViewLayer::bestMatch = nullptr

◆ sipRes

G2DViewLayer::sipRes = sipCpp->findClosestObject( *a0, bestMatch, &bestDistance, a1, a2 )

© Aimsun SLU
Aimsun ®