Aimsun Next Scripting  22
Public Member Functions | Public Attributes | List of all members
GKDrawStyle Class Reference

Public Member Functions

 GKDrawStyle ()
 

Public Attributes

QPen pen
 
QBrush brush
 
float penSize
 
GK::SizeUnits penSizeUnits
 
float brushOpacity
 
float penOpacity
 

Detailed Description

A draw style in a layer, when used, forces objects in that layer to be drawn in that particular way.

Note that simple objects (polyline or polygons) will follow the style and complex objects (sections, nodes) will apply only part of it. For this reason it is more useful when the layer contains decoration objects.

Constructor & Destructor Documentation

◆ GKDrawStyle()

GKDrawStyle::GKDrawStyle ( )

Member Data Documentation

◆ brush

QBrush GKDrawStyle::brush

The brush to use (color and style). Default: Qt::NoBrush

◆ brushOpacity

float GKDrawStyle::brushOpacity

Brush Opacity, separated from QBrush to keep different colors with the same opacity if < 0.0 is OFF.

◆ pen

QPen GKDrawStyle::pen

The pen to use (color and style). Default: black with solidline.

Warning
Do not use the 'width' property of the QPen, as GKDrawStyle will use its own 'penSize' and 'penSizeUnits' properties.

◆ penOpacity

float GKDrawStyle::penOpacity

Pen Opacity, separated from QPen to keep different colors with the same opacity if < 0.0 is OFF.

◆ penSize

float GKDrawStyle::penSize

The pen size (units in the GKDrawStyle::penSizeUnits) Default: 0.

◆ penSizeUnits

GK::SizeUnits GKDrawStyle::penSizeUnits

The units to use in the pen size Default: GK::ePixels.

© Aimsun SLU
Aimsun ®