Panda3D
Public Member Functions | List of all members
TextureStageCollection Class Reference

Public Member Functions

 __init__ ()
 
 __init__ (const TextureStageCollection copy)
 
 addTextureStage (TextureStage node_texture_stage)
 Adds a new TextureStage to the collection. More...
 
 addTextureStagesFrom (const TextureStageCollection other)
 Adds all the TextureStages indicated in the other collection to this texture_stage. More...
 
 clear ()
 Removes all TextureStages from the collection. More...
 
TextureStage findTextureStage (str name)
 Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_stage has that name. More...
 
int getNumTextureStages ()
 Returns the number of TextureStages in the collection. More...
 
TextureStage getTextureStage (int index)
 Returns the nth TextureStage in the collection. More...
 
list getTextureStages ()
 
bool hasTextureStage (TextureStage texture_stage)
 Returns true if the indicated TextureStage appears in this collection, false otherwise. More...
 
TextureStage operator [] (int index)
 Returns the nth TextureStage in the collection. More...
 
TextureStageCollection operator+ (const TextureStageCollection other)
 
TextureStageCollection operator+= (const TextureStageCollection other)
 
TextureStageCollection operator= (const TextureStageCollection copy)
 
 output (Ostream out)
 Writes a brief one-line description of the TextureStageCollection to the indicated output stream. More...
 
 removeDuplicateTextureStages ()
 Removes any duplicate entries of the same TextureStages on this collection. More...
 
bool removeTextureStage (TextureStage node_texture_stage)
 Removes the indicated TextureStage from the collection. More...
 
 removeTextureStagesFrom (const TextureStageCollection other)
 Removes from this collection all of the TextureStages listed in the other collection. More...
 
int size ()
 Returns the number of texture stages in the collection. More...
 
 sort ()
 Sorts the TextureStages in this collection into order by TextureStage::sort(), from lowest to highest. More...
 
 write (Ostream out, int indent_level)
 Writes a complete multi-line description of the TextureStageCollection to the indicated output stream. More...
 

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const TextureStageCollection  copy)

◆ addTextureStage()

addTextureStage ( TextureStage  node_texture_stage)

Adds a new TextureStage to the collection.

◆ addTextureStagesFrom()

addTextureStagesFrom ( const TextureStageCollection  other)

Adds all the TextureStages indicated in the other collection to this texture_stage.

The other texture_stages are simply appended to the end of the texture_stages in this list; duplicates are not automatically removed.

◆ clear()

clear ( )

Removes all TextureStages from the collection.

◆ findTextureStage()

TextureStage findTextureStage ( str  name)

Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_stage has that name.

◆ getNumTextureStages()

int getNumTextureStages ( )

Returns the number of TextureStages in the collection.

◆ getTextureStage()

TextureStage getTextureStage ( int  index)

Returns the nth TextureStage in the collection.

◆ getTextureStages()

list getTextureStages ( )

◆ hasTextureStage()

bool hasTextureStage ( TextureStage  texture_stage)

Returns true if the indicated TextureStage appears in this collection, false otherwise.

◆ operator []()

TextureStage operator [] ( int  index)

Returns the nth TextureStage in the collection.

This is the same as get_texture_stage(), but it may be a more convenient way to access it.

◆ operator+()

TextureStageCollection operator+ ( const TextureStageCollection  other)

◆ operator+=()

TextureStageCollection operator+= ( const TextureStageCollection  other)

◆ operator=()

◆ output()

output ( Ostream  out)

Writes a brief one-line description of the TextureStageCollection to the indicated output stream.

◆ removeDuplicateTextureStages()

removeDuplicateTextureStages ( )

Removes any duplicate entries of the same TextureStages on this collection.

If a TextureStage appears multiple times, the first appearance is retained; subsequent appearances are removed.

◆ removeTextureStage()

bool removeTextureStage ( TextureStage  node_texture_stage)

Removes the indicated TextureStage from the collection.

Returns true if the texture_stage was removed, false if it was not a member of the collection.

◆ removeTextureStagesFrom()

removeTextureStagesFrom ( const TextureStageCollection  other)

Removes from this collection all of the TextureStages listed in the other collection.

◆ size()

int size ( )

Returns the number of texture stages in the collection.

This is the same thing as get_num_texture_stages().

◆ sort()

sort ( )

Sorts the TextureStages in this collection into order by TextureStage::sort(), from lowest to highest.

◆ write()

write ( Ostream  out,
int  indent_level 
)

Writes a complete multi-line description of the TextureStageCollection to the indicated output stream.