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

Public Member Functions

 GKTextureApplied ()
 
 GKTextureApplied (const QString &name, int horizontalReps, int verticalReps)
 
void setNameWithPath (const QString &name)
 
const QString & getNameWithPath () const
 
QString getNameWithoutPath () const
 
void setHorizontalRepetitions (int value)
 
int getHorizontalRepetitions () const
 
void setVerticalRepetitions (int value)
 
int getVerticalRepetitions () const
 

Detailed Description

Texture information used in a 3D object (extruded polygons and polyline for example). It defines both a texture (a image) and the horizontal and vertical repetitions (use 0 to use a non repeated image).

Constructor & Destructor Documentation

◆ GKTextureApplied() [1/2]

GKTextureApplied::GKTextureApplied ( )

◆ GKTextureApplied() [2/2]

GKTextureApplied::GKTextureApplied ( const QString &  name,
int  horizontalReps,
int  verticalReps 
)

Member Function Documentation

◆ getHorizontalRepetitions()

int GKTextureApplied::getHorizontalRepetitions ( ) const

Gets the number of horizontally tiled textures

◆ getNameWithoutPath()

QString GKTextureApplied::getNameWithoutPath ( ) const

Returns the texture name with ist extension but without its path

◆ getNameWithPath()

const QString & GKTextureApplied::getNameWithPath ( ) const

Returns the texture name with its complete path and extension included in the name

◆ getVerticalRepetitions()

int GKTextureApplied::getVerticalRepetitions ( ) const

Gets the number of vertically tiled textures

◆ setHorizontalRepetitions()

void GKTextureApplied::setHorizontalRepetitions ( int  value)

Sets the number of the desired horizontally tiled textures

◆ setNameWithPath()

void GKTextureApplied::setNameWithPath ( const QString &  name)

Sets the texture name, that is, the complete path to the texture with its extension included. Example: C:\textures\texture1.png

◆ setVerticalRepetitions()

void GKTextureApplied::setVerticalRepetitions ( int  value)

Sets the number of the desired vertically tiled textures

© Aimsun SLU
Aimsun ®