KiCad PCB EDA Suite
KIGFX::VIEW::UPDATE_DEPTH_VISITOR Struct Reference

Public Member Functions

 UPDATE_DEPTH_VISITOR (int aLayer, int aDepth, GAL *aGal)
 
bool operator() (VIEW_ITEM *aItem)
 

Public Attributes

int layer
 
int depth
 
GALgal
 

Detailed Description

Definition at line 792 of file view.cpp.

Constructor & Destructor Documentation

◆ UPDATE_DEPTH_VISITOR()

KIGFX::VIEW::UPDATE_DEPTH_VISITOR::UPDATE_DEPTH_VISITOR ( int  aLayer,
int  aDepth,
GAL aGal 
)
inline

Definition at line 794 of file view.cpp.

794 :
795 layer( aLayer ),
796 depth( aDepth ),
797 gal( aGal )
798 {
799 }

Member Function Documentation

◆ operator()()

bool KIGFX::VIEW::UPDATE_DEPTH_VISITOR::operator() ( VIEW_ITEM aItem)
inline

Definition at line 801 of file view.cpp.

802 {
803 int group = aItem->viewPrivData()->getGroup( layer );
804
805 if( group >= 0 )
806 gal->ChangeGroupDepth( group, depth );
807
808 return true;
809 }
virtual void ChangeGroupDepth(int aGroupNumber, int aDepth)
Change the depth (Z-axis position) of the group.

References KIGFX::GAL::ChangeGroupDepth(), depth, gal, KIGFX::VIEW_ITEM_DATA::getGroup(), group, layer, and KIGFX::VIEW_ITEM::viewPrivData().

Member Data Documentation

◆ depth

int KIGFX::VIEW::UPDATE_DEPTH_VISITOR::depth

Definition at line 811 of file view.cpp.

Referenced by operator()().

◆ gal

GAL* KIGFX::VIEW::UPDATE_DEPTH_VISITOR::gal

Definition at line 812 of file view.cpp.

Referenced by operator()().

◆ layer

int KIGFX::VIEW::UPDATE_DEPTH_VISITOR::layer

Definition at line 811 of file view.cpp.

Referenced by operator()().


The documentation for this struct was generated from the following file: